I love this tool because it can find bugs that are hard to spot for humans.
for (U user : users) {
if (user.getPrefix() != null && user.getPrefix().equals(userPrefix)
&& user.getOrgName() != null & user.getOrgName().equals(orgName)) {
return user;
}
}
There is a bug in the if statement below that I wasnt able to spot and its an honest mistake on developer's part :).
There is a & instead of && in the if condition.
for (U user : users) {
if (user.getPrefix() != null && user.getPrefix().equals(userPrefix)
&& user.getOrgName() != null & user.getOrgName().equals(orgName)) {
return user;
}
}
There is a bug in the if statement below that I wasnt able to spot and its an honest mistake on developer's part :).
There is a & instead of && in the if condition.
Comments
Post a Comment