Code simplifications

This commit is contained in:
Fredrik Fornwall
2015-11-29 00:20:45 +01:00
parent 1aa439311b
commit 95fbb810e2
3 changed files with 9 additions and 25 deletions

View File

@@ -130,9 +130,8 @@ public abstract class TerminalTestCase extends TestCase {
@Override
public boolean equals(Object o) {
if (!(o instanceof LineWrapper)) return false;
return ((LineWrapper) o).mLine == mLine;
}
return o instanceof LineWrapper && ((LineWrapper) o).mLine == mLine;
}
}
protected TerminalTestCase assertInvariants() {