@Test public void hasSpecialCharacters() { assertFalse(AcmSolrUtil.hasSpecialCharacters("noSpecialCharacters")); for (char c : AcmSolrUtil.getSolrSpecialCharacters().toCharArray()) { assertTrue(AcmSolrUtil.hasSpecialCharacters("test" + c)); assertTrue(AcmSolrUtil.hasSpecialCharacters(c + "test")); assertTrue(AcmSolrUtil.hasSpecialCharacters("test" + c + "test ")); } }
public static boolean hasSpecialCharacters(String value) { for (char c : value.toCharArray()) { if (solrSpecialCharacters.contains(String.valueOf(c))) { return true; } } return false; }
AcmSolrUtil { public static boolean hasSpecialCharacters(String value) { for (char c : value.toCharArray()) { if (solrSpecialCharacters.contains(String.valueOf(c))) { return true; } } return false; } }
AcmSolrUtil { public static boolean hasSpecialCharacters(String value) { for (char c : value.toCharArray()) { if (solrSpecialCharacters.contains(String.valueOf(c))) { return true; } } return false; }  }
AcmSolrUtil { public static boolean hasSpecialCharacters(String value) { for (char c : value.toCharArray()) { if (solrSpecialCharacters.contains(String.valueOf(c))) { return true; } } return false; }  static boolean hasSpecialCharacters(String value); static String getSolrSpecialCharacters(); static String getCharEncodingForACL(char c); static String encodeSpecialCharactersForACL(String s); }
AcmSolrUtil { public static boolean hasSpecialCharacters(String value) { for (char c : value.toCharArray()) { if (solrSpecialCharacters.contains(String.valueOf(c))) { return true; } } return false; }  static boolean hasSpecialCharacters(String value); static String getSolrSpecialCharacters(); static String getCharEncodingForACL(char c); static String encodeSpecialCharactersForACL(String s);  }