Skip to content
Permalink
Browse files

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
  • Loading branch information
mthl committed May 25, 2019
1 parent ad9fc62 commit b24f702c77a6052af34f99f91ccce06299a7504e
@@ -364,11 +364,6 @@ public static String removeNonNumeric(String str) {
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 void testRemoveNonNumeric() {
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() {
}

0 comments on commit b24f702

Please sign in to comment.
You can’t perform that action at this time.