sequence groups carry their own conservation and consensus annotation rows
[jalview.git] / src / jalview / util / DBRefUtils.java
index 9704170..411a7b9 100755 (executable)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
  * 
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -362,6 +362,8 @@ public class DBRefUtils
   {
     public boolean matches(DBRefEntry refa, DBRefEntry refb)
     {
+//      System.err.println("Comparing A: "+refa.getSrcAccString()+(refa.hasMap()?" has map.":"."));
+//      System.err.println("Comparing B: "+refb.getSrcAccString()+(refb.hasMap()?" has map.":"."));
       if (refa.getSource() != null && refb.getSource() != null
               && refb.getSource().equals(refa.getSource()))
       {
@@ -380,9 +382,9 @@ public class DBRefUtils
                   && (refb.getMap().getMap() == null && refa.getMap()
                           .getMap() == null)
                   || (refb.getMap().getMap() != null
-                          && refa.getMap().getMap() != null && refb
-                          .getMap().getMap().equals(refa.getMap().getMap())))
-          {
+                          && refa.getMap().getMap() != null && 
+                          (refb
+                          .getMap().getMap().equals(refa.getMap().getMap())))) { // getMap().getMap().containsEither(false,refa.getMap().getMap())
             return true;
           }
         }