From: Jim Procter Date: Wed, 1 Jun 2016 15:51:31 +0000 (+0100) Subject: JAL-2038 ensure bare Strings are lowercased before equals called X-Git-Tag: Release_2_10_0~193^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=807a7b06a2f933d220e368d96f09b4ee6c9bd98a;p=jalview.git JAL-2038 ensure bare Strings are lowercased before equals called --- diff --git a/src/jalview/analysis/SequenceIdMatcher.java b/src/jalview/analysis/SequenceIdMatcher.java index f744ed1..3fd0581 100755 --- a/src/jalview/analysis/SequenceIdMatcher.java +++ b/src/jalview/analysis/SequenceIdMatcher.java @@ -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()) {