debug comments
authorjprocter <Jim Procter>
Fri, 19 Jun 2009 09:41:04 +0000 (09:41 +0000)
committerjprocter <Jim Procter>
Fri, 19 Jun 2009 09:41:04 +0000 (09:41 +0000)
src/jalview/util/DBRefUtils.java

index 0129f6e..411a7b9 100755 (executable)
@@ -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;
           }
         }