From 807a7b06a2f933d220e368d96f09b4ee6c9bd98a Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 1 Jun 2016 16:51:31 +0100 Subject: [PATCH] JAL-2038 ensure bare Strings are lowercased before equals called --- src/jalview/analysis/SequenceIdMatcher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()) { -- 1.7.10.2