Boolean comparisons in CharRange (closes #289)

Cleaned up comparisons to false to just use the boolean negation
operator (!).
This commit is contained in:
Allon Mureinik 2017-09-22 05:35:51 +03:00 committed by pascalschumacher
parent 1406f2a4f2
commit 7076b7408f
1 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (obj instanceof CharRange == false) {
if (!(obj instanceof CharRange)) {
return false;
}
final CharRange other = (CharRange) obj;
@ -335,7 +335,7 @@ public boolean hasNext() {
*/
@Override
public Character next() {
if (hasNext == false) {
if (!hasNext) {
throw new NoSuchElementException();
}
final char cur = current;