@Test public void test_fixKey() { final String fixKey = MessagesProvider.fixKey(name); Assert.assertEquals(expected, fixKey); }
public static String fixKey(String key) { key = key.replaceAll("[ */:,;]", "_"); key = key.replaceAll("[@#$%^&()<>\\[\\]{}'\"]", ""); key = replaceWrongUnicode(key, ""); return key; }
MessagesProvider { public static String fixKey(String key) { key = key.replaceAll("[ */:,;]", "_"); key = key.replaceAll("[@#$%^&()<>\\[\\]{}'\"]", ""); key = replaceWrongUnicode(key, ""); return key; } }
MessagesProvider { public static String fixKey(String key) { key = key.replaceAll("[ */:,;]", "_"); key = key.replaceAll("[@#$%^&()<>\\[\\]{}'\"]", ""); key = replaceWrongUnicode(key, ""); return key; }  }
MessagesProvider { public static String fixKey(String key) { key = key.replaceAll("[ */:,;]", "_"); key = key.replaceAll("[@#$%^&()<>\\[\\]{}'\"]", ""); key = replaceWrongUnicode(key, ""); return key; }  static Locale getDefaultLocale(); static void discoverExtensions(final Locale locale, final Set<Bundle> narBundles); static String fixKey(String key); static String getPropDisplayNameKey(String name); static String getPropDescKey(String name); static String getRelationshipDescKey(String name); static String getReadsAttributeDescKey(String attribute); static String getWritesAttributeDescKey(String attribute); static String getAllowableValueDisplayNameKey(String propName, String value); static String getAllowableValueDescKey(String propName, String value); static String getSystemResourceDescKey(String name); static String getRestrictionLabelKey(String name); static String getRestrictionExplanationKey(String name); static String getELScopeDescKey(String scope); static String getValue(final Locale locale, final String type, final String key); static String getDescription(Locale locale, String type); static String getTags(Locale locale, String type); static Set<String> getTagsSet(Locale locale, String type); static String getMarksVendor(final Locale locale, String type); static String getMarksCategories(final Locale locale, String type); static Set<String> getMarksCategoriesSet(final Locale locale, String type); static String getPropDisplayName(Locale locale, String type, String name); static String getPropDesc(Locale locale, String type, String name); static String getRelationshipDesc(Locale locale, String type, String name); static String getReadsAttributeDesc(Locale locale, String type, String attribute); static String getWritesAttributeDesc(Locale locale, String type, String attribute); static String getAllowableValueDisplayName(Locale locale, String type, String propName, String value); static String getAllowableValueDesc(Locale locale, String type, String propName, String value); static String getSystemResourceDesc(Locale locale, String type, String name); static String getRestrictionLabel(Locale locale, String type, String name); static String getRestrictionExplanation(Locale locale, String type, String name); static String getStatefulDesc(Locale locale, String type); static String getDeprecationReason(Locale locale, String type); static String getFrameworkValue(Locale locale, final String key); }
MessagesProvider { public static String fixKey(String key) { key = key.replaceAll("[ */:,;]", "_"); key = key.replaceAll("[@#$%^&()<>\\[\\]{}'\"]", ""); key = replaceWrongUnicode(key, ""); return key; }  static Locale getDefaultLocale(); static void discoverExtensions(final Locale locale, final Set<Bundle> narBundles); static String fixKey(String key); static String getPropDisplayNameKey(String name); static String getPropDescKey(String name); static String getRelationshipDescKey(String name); static String getReadsAttributeDescKey(String attribute); static String getWritesAttributeDescKey(String attribute); static String getAllowableValueDisplayNameKey(String propName, String value); static String getAllowableValueDescKey(String propName, String value); static String getSystemResourceDescKey(String name); static String getRestrictionLabelKey(String name); static String getRestrictionExplanationKey(String name); static String getELScopeDescKey(String scope); static String getValue(final Locale locale, final String type, final String key); static String getDescription(Locale locale, String type); static String getTags(Locale locale, String type); static Set<String> getTagsSet(Locale locale, String type); static String getMarksVendor(final Locale locale, String type); static String getMarksCategories(final Locale locale, String type); static Set<String> getMarksCategoriesSet(final Locale locale, String type); static String getPropDisplayName(Locale locale, String type, String name); static String getPropDesc(Locale locale, String type, String name); static String getRelationshipDesc(Locale locale, String type, String name); static String getReadsAttributeDesc(Locale locale, String type, String attribute); static String getWritesAttributeDesc(Locale locale, String type, String attribute); static String getAllowableValueDisplayName(Locale locale, String type, String propName, String value); static String getAllowableValueDesc(Locale locale, String type, String propName, String value); static String getSystemResourceDesc(Locale locale, String type, String name); static String getRestrictionLabel(Locale locale, String type, String name); static String getRestrictionExplanation(Locale locale, String type, String name); static String getStatefulDesc(Locale locale, String type); static String getDeprecationReason(Locale locale, String type); static String getFrameworkValue(Locale locale, final String key); static final String PATH_I18N; static final String EXT; static final String DESC_SUFFIX; static final String DISPLAY_SUFFIX; static final String KEY_DESC; static final String KEY_TAGS; static final String KEY_MARK_VENDOR; static final String KEY_MARK_CAT; static final String KEY_STATEFUL; static final String KEY_DEPRECATION; }