Fix findBugs bug.

This commit is contained in:
Min Chen 2014-04-18 17:35:01 -07:00
parent c3a4a01781
commit 7821da66cc
1 changed files with 1 additions and 1 deletions

View File

@ -2320,7 +2320,7 @@ public class AccountManagerImpl extends ManagerBase implements AccountManager, M
domainIdRecursiveListProject.second(false); // isRecursive is only valid if only domainId is passed.
}
if (permittedDomains.isEmpty() && permittedAccounts.isEmpty() & permittedResources.isEmpty()) {
if (permittedDomains.isEmpty() && permittedAccounts.isEmpty() && permittedResources.isEmpty()) {
// if at this point, all permitted arrays are empty, that means that caller cannot see anything, we put -1 in permittedAccounts
// to distinguish this case from the case that caller can see everything
permittedAccounts.add(-1L);