Fixing findbugs error due to PR #755 merge

issue: Boxing/unboxing to parse a primitive
This commit is contained in:
Rajani Karuturi 2015-09-07 10:33:29 +05:30
parent b6e212f2c7
commit b69a69def7

View File

@ -85,7 +85,7 @@ public class ADLdapUserManagerImpl extends OpenLdapUserManagerImpl implements Ld
boolean isDisabledUser = false;
String userAccountControl = LdapUtils.getAttributeValue(result.getAttributes(), _ldapConfiguration.getUserAccountControlAttribute());
if (userAccountControl != null) {
int control = Integer.valueOf(userAccountControl);
int control = Integer.parseInt(userAccountControl);
// second bit represents disabled user flag in AD
if ((control & 2) > 0) {
isDisabledUser = true;