From 29797e41803852bb0f848f7ae95fb4ff978bfe5f Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 15 May 2017 16:56:06 +0100 Subject: [PATCH] JAL-2507 case insensitive recognition of annotation type --- src/jalview/io/StockholmFile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.2