Description
In UserSync.java, there are some duplicate codes.
if (groupName == null || groupName.isEmpty()) { // Perform basic user search and get the group name from the user's group attribute name. findBasicUserProperties(ldapContext, false); } if (groupName == null || groupName.isEmpty()) { // Perform adv user search and get the group name from the user's group attribute name. findAdvUserProperties(ldapContext, false); }
We checked if the groupName is null twice, IMO, we can put them together.