From: Jim Procter Date: Mon, 15 May 2017 15:56:06 +0000 (+0100) Subject: JAL-2507 case insensitive recognition of annotation type X-Git-Tag: Release_2_10_2~3^2~88^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=29797e41803852bb0f848f7ae95fb4ff978bfe5f;p=jalview.git JAL-2507 case insensitive recognition of annotation type --- diff --git a/src/jalview/io/StockholmFile.java b/src/jalview/io/StockholmFile.java index 7f3f93b..ed50db8 100644 --- a/src/jalview/io/StockholmFile.java +++ b/src/jalview/io/StockholmFile.java @@ -820,7 +820,7 @@ public class StockholmFile extends AlignFile } boolean ss = false, posterior = false; type = id2type(type); - if (type.equals("secondary structure")) + if (type.equalsIgnoreCase("secondary structure")) { ss = true; } @@ -1200,7 +1200,7 @@ public class StockholmFile extends AlignFile while (e.hasMoreElements()) { Object ll = e.nextElement(); - if (typeIds.get(ll).toString().equals(type)) + if (typeIds.get(ll).toString().equalsIgnoreCase(type)) { key = (String) ll; break;