JAL-3397 skip instanceof check for JS's benefit
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 26 Sep 2019 08:52:47 +0000 (09:52 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 26 Sep 2019 08:52:47 +0000 (09:52 +0100)
src/jalview/analysis/CrossRef.java

index 080f3e2..ecdd11e 100644 (file)
@@ -640,8 +640,7 @@ public class CrossRef
                     @Override
                     public boolean equals(Object o)
                     {
-                      return o instanceof SequenceFeature
-                              && equals((SequenceFeature) o, true);
+                      return equals((SequenceFeature) o, true);
                     }
                   };
                   matched.addSequenceFeature(newFeature);