Imrpove reading system property for ignoreCaseSensitivityBasedHashing
@@ -38,12 +38,13 @@ public class User implements Serializable {
protected String userStoreDomain;
protected String userName;
private static boolean ignoreCaseSensitivityBasedHashing = false;
+ private static final String IGNORE_CASE_SENSITIVITY_BASED_HASHING = "ignoreCaseSensitivityBasedHashing";
static {
- if (StringUtils.isNotBlank(System.getProperty("ignoreCaseSensitivityBasedHashing"))) {
- ignoreCaseSensitivityBasedHashing = Boolean
- .parseBoolean(System.getProperty("ignoreCaseSensitivityBasedHashing"));
+ String propertyToIgnoreCaseSensitivityBasedHashing = System.getProperty(IGNORE_CASE_SENSITIVITY_BASED_HASHING);
+ if (StringUtils.isNotBlank(propertyToIgnoreCaseSensitivityBasedHashing)) {
+ ignoreCaseSensitivityBasedHashing = Boolean.parseBoolean(propertyToIgnoreCaseSensitivityBasedHashing);
}
}
