JAL-2038 ensure bare Strings are lowercased before equals called
authorJim Procter <jprocter@issues.jalview.org>
Wed, 1 Jun 2016 15:51:31 +0000 (16:51 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 1 Jun 2016 15:51:31 +0000 (16:51 +0100)
src/jalview/analysis/SequenceIdMatcher.java

index f744ed1..3fd0581 100755 (executable)
@@ -314,13 +314,13 @@ public class SequenceIdMatcher
       }
       if (s instanceof SeqIdName)
       {
-        return this.equals(((SeqIdName) s).id);
+        return this.stringequals(((SeqIdName) s).id);
       }
       else
       {
         if (s instanceof String)
         {
-          return this.equals((String) s);
+          return this.stringequals(((String) s).toLowerCase());
         }
       }
 
@@ -344,7 +344,7 @@ public class SequenceIdMatcher
      * @param s
      * @return boolean
      */
-    public boolean equals(String s)
+    private boolean stringequals(String s)
     {
       if (id.length() > s.length())
       {