@Test public void checkParameterName() throws Exception { Map<String, String> parameters = Collections.singletonMap("hello", ":*,/-._0123abcdABCD"); try { AbstractConfig.checkParameterName(parameters); } catch (Exception e) { TestCase.fail("the value should be legal."); } }
protected static void checkParameterName(Map<String, String> parameters) { if (parameters == null || parameters.size() == 0) { return; } for (Map.Entry<String, String> entry : parameters.entrySet()) { checkNameHasSymbol(entry.getKey(), entry.getValue()); } }
AbstractConfig implements Serializable { protected static void checkParameterName(Map<String, String> parameters) { if (parameters == null || parameters.size() == 0) { return; } for (Map.Entry<String, String> entry : parameters.entrySet()) { checkNameHasSymbol(entry.getKey(), entry.getValue()); } } }
AbstractConfig implements Serializable { protected static void checkParameterName(Map<String, String> parameters) { if (parameters == null || parameters.size() == 0) { return; } for (Map.Entry<String, String> entry : parameters.entrySet()) { checkNameHasSymbol(entry.getKey(), entry.getValue()); } }  }
AbstractConfig implements Serializable { protected static void checkParameterName(Map<String, String> parameters) { if (parameters == null || parameters.size() == 0) { return; } for (Map.Entry<String, String> entry : parameters.entrySet()) { checkNameHasSymbol(entry.getKey(), entry.getValue()); } }  @Parameter(excluded = true) String getId(); void setId(String id); @Override String toString(); }
AbstractConfig implements Serializable { protected static void checkParameterName(Map<String, String> parameters) { if (parameters == null || parameters.size() == 0) { return; } for (Map.Entry<String, String> entry : parameters.entrySet()) { checkNameHasSymbol(entry.getKey(), entry.getValue()); } }  @Parameter(excluded = true) String getId(); void setId(String id); @Override String toString();  }