Boolean comparisons in CharRange (closes #289)
Cleaned up comparisons to false to just use the boolean negation operator (!).
This commit is contained in:
parent
1406f2a4f2
commit
7076b7408f
|
@ -206,7 +206,7 @@ final class CharRange implements Iterable<Character>, Serializable {
|
|||
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 @@ final class CharRange implements Iterable<Character>, Serializable {
|
|||
*/
|
||||
@Override
|
||||
public Character next() {
|
||||
if (hasNext == false) {
|
||||
if (!hasNext) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
final char cur = current;
|
||||
|
|
Loading…
Reference in New Issue