Merge pull request #779 from karuturi/findbugs-pr-755

Fixing findbugs error due to PR #755 mergeissue: Boxing/unboxing to parse a primitive

* pr/779:
  Fixing findbugs error due to PR #755 merge

Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
Daan Hoogland 2015-09-07 08:05:51 +02:00
commit 8442bd87d7
1 changed files with 1 additions and 1 deletions

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;