Fix errorprone warning about precedence
The condition looks suspicious, as in case of (hasElement==null && hasNext()) the check will generate a NPE Change-Id: I267f9df6746393d72f5102bd5271441422550968
This commit is contained in:
parent
c353645a09
commit
ba8f3cb1f2
|
@ -466,7 +466,7 @@ public boolean hasNext() {
|
|||
|
||||
@Override
|
||||
public KeyAgentIdentity next() {
|
||||
if (hasElement == null && !hasNext()
|
||||
if ((hasElement == null && !hasNext())
|
||||
|| !hasElement.booleanValue()) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue