@Test public void testDropSuffixWithNonEmptyString() { assertEquals("", StringUtil.dropSuffix("Oo}T^z88/U", "Oo}T^z88/U")); }
public static String dropSuffix(String str, String suffix) { if (str.endsWith(suffix)) return str.substring(0, str.length() - suffix.length()); else return str; }
StringUtil { public static String dropSuffix(String str, String suffix) { if (str.endsWith(suffix)) return str.substring(0, str.length() - suffix.length()); else return str; } }
StringUtil { public static String dropSuffix(String str, String suffix) { if (str.endsWith(suffix)) return str.substring(0, str.length() - suffix.length()); else return str; } private  StringUtil(); }
StringUtil { public static String dropSuffix(String str, String suffix) { if (str.endsWith(suffix)) return str.substring(0, str.length() - suffix.length()); else return str; } private  StringUtil(); static String[] filterSystemArgs(String[] args); static String trimSuffix(String str, String suffix); static String join(Iterable<String> parts, String separator); static void toUpperCaseArray(String[] source, String[] target); static String noBlank(String str, String dft); static String dropSuffix(String str, String suffix); static String min(Collection<String> strs); static String max(Collection<String> strs); static String min(String s1, String s2); static String max(String s1, String s2); static String[] subArray(String[] array, int start, int endExclusive); static void appendWithSeparator(StringBuilder src, String append); static String[] splitAndTrim(String str, String splitBy); static String[] split(String str, String splitBy); static String[] splitByComma(String str); static int utf8Length(CharSequence sequence); static boolean equals(String a, String b); }
StringUtil { public static String dropSuffix(String str, String suffix) { if (str.endsWith(suffix)) return str.substring(0, str.length() - suffix.length()); else return str; } private  StringUtil(); static String[] filterSystemArgs(String[] args); static String trimSuffix(String str, String suffix); static String join(Iterable<String> parts, String separator); static void toUpperCaseArray(String[] source, String[] target); static String noBlank(String str, String dft); static String dropSuffix(String str, String suffix); static String min(Collection<String> strs); static String max(Collection<String> strs); static String min(String s1, String s2); static String max(String s1, String s2); static String[] subArray(String[] array, int start, int endExclusive); static void appendWithSeparator(StringBuilder src, String append); static String[] splitAndTrim(String str, String splitBy); static String[] split(String str, String splitBy); static String[] splitByComma(String str); static int utf8Length(CharSequence sequence); static boolean equals(String a, String b);  }