@Test public void testCleanupStrDottedKeysKept() { assertEquals("addfber1241qdw!èé$", StringUtils.cleanupStr("addfber1241qdw!èé$", true)); assertEquals("abcd.abcd", StringUtils.cleanupStr("abcd.abcd", true)); assertEquals("abcd.abcd", StringUtils.cleanupStr("abcd.abcd.", true)); assertEquals(".abcd_abcd", StringUtils.cleanupStr(".abcd_abcd", true)); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd/abcd", true)); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd/abcd/", true)); assertEquals("_abcd_abcd", StringUtils.cleanupStr("/abcd_abcd", true)); assertEquals("abcd_abcd", StringUtils.cleanupStr("abcd'_abcd'", true)); assertEquals("_abcd_abcd", StringUtils.cleanupStr("/abcd\"_abcd\"", true)); assertEquals("_abcd_abcd", StringUtils.cleanupStr("/ab cd_abcd", true)); assertEquals("abcd", StringUtils.cleanupStr("\"abcd\".\"\"")); assertEquals("abcd", StringUtils.cleanupStr("\"abcd\"_\"\"")); }
public static String cleanupStr(String name) { return cleanupStr(name, false); }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } private  StringUtils(); }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } private  StringUtils(); static String cleanupStr(String name); static String cleanupStr(String name, boolean allowDottedKeys); }
StringUtils { public static String cleanupStr(String name) { return cleanupStr(name, false); } private  StringUtils(); static String cleanupStr(String name); static String cleanupStr(String name, boolean allowDottedKeys);  }