diff --git a/src/java/com/samskivert/depot/tests/TransformTest.java b/src/java/com/samskivert/depot/tests/TransformTest.java index 4274f56..07d67e8 100644 --- a/src/java/com/samskivert/depot/tests/TransformTest.java +++ b/src/java/com/samskivert/depot/tests/TransformTest.java @@ -54,8 +54,7 @@ public class TransformTest extends TestBase } @Override public boolean equals (Object other) { - return !(other instanceof CustomType) ? false : - value.equals(((CustomType)other).value); + return (other instanceof CustomType) && value.equals(((CustomType)other).value); } @Override public int hashCode () {