@Test public void testSanitizeAttributeKey() throws Exception { assertNull(KitUtils.sanitizeAttributeKey(null)); assertEquals("", KitUtils.sanitizeAttributeKey("")); assertEquals("TestTest", KitUtils.sanitizeAttributeKey("$TestTest")); assertEquals("$", KitUtils.sanitizeAttributeKey("$$")); assertEquals("", KitUtils.sanitizeAttributeKey("$")); }
public static String sanitizeAttributeKey(String key) { if (MPUtility.isEmpty(key)) { return key; } if (key.startsWith("$")) { return key.substring(1); } return key; }
KitUtils { public static String sanitizeAttributeKey(String key) { if (MPUtility.isEmpty(key)) { return key; } if (key.startsWith("$")) { return key.substring(1); } return key; } }
KitUtils { public static String sanitizeAttributeKey(String key) { if (MPUtility.isEmpty(key)) { return key; } if (key.startsWith("$")) { return key.substring(1); } return key; }  }
KitUtils { public static String sanitizeAttributeKey(String key) { if (MPUtility.isEmpty(key)) { return key; } if (key.startsWith("$")) { return key.substring(1); } return key; }  static String sanitizeAttributeKey(String key); static BigInteger hashFnv1a(byte[] bytes); static int hashForFiltering(String input); static boolean isEmpty(CharSequence str); static String join(List<String> list); static String join(List<String> list, String delimiter); static boolean isServiceAvailable(Context context, Class<?> service); static boolean parseBooleanSetting(Map<String, String> settings, String key, boolean defaultValue); static boolean parseBooleanSetting(Map<String, String> settings, String key); }
KitUtils { public static String sanitizeAttributeKey(String key) { if (MPUtility.isEmpty(key)) { return key; } if (key.startsWith("$")) { return key.substring(1); } return key; }  static String sanitizeAttributeKey(String key); static BigInteger hashFnv1a(byte[] bytes); static int hashForFiltering(String input); static boolean isEmpty(CharSequence str); static String join(List<String> list); static String join(List<String> list, String delimiter); static boolean isServiceAvailable(Context context, Class<?> service); static boolean parseBooleanSetting(Map<String, String> settings, String key, boolean defaultValue); static boolean parseBooleanSetting(Map<String, String> settings, String key);  }