Improved: Remove unused ‘StringUtil#removeNumeric’ method
(OFBIZ-11014) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -364,11 +364,6 @@ public class StringUtil {
|
||||
return removeRegex(str,"[\\D]");
|
||||
}
|
||||
|
||||
/** Removes all numbers from str */
|
||||
public static String removeNumeric(String str) {
|
||||
return removeRegex(str,"[\\d]");
|
||||
}
|
||||
|
||||
/**
|
||||
* @param str
|
||||
* @param regex
|
||||
|
||||
@@ -196,10 +196,6 @@ public class StringUtilTests extends GenericTestCaseBase {
|
||||
assertEquals("just numbers", "12345", StringUtil.removeNonNumeric("a1'2;3]4!5("));
|
||||
}
|
||||
|
||||
public void testRemoveNumeric() {
|
||||
assertEquals("only numbers", "a';]!(", StringUtil.removeNumeric("a1'2;3]4!5("));
|
||||
}
|
||||
|
||||
public void testRemoveRegex() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user