JAL-2507 case insensitive recognition of annotation type
authorJim Procter <jprocter@issues.jalview.org>
Mon, 15 May 2017 15:56:06 +0000 (16:56 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 15 May 2017 15:56:06 +0000 (16:56 +0100)
src/jalview/io/StockholmFile.java

index 7f3f93b..ed50db8 100644 (file)
@@ -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;