JAL-845 code/refactoring/tests related to linking DNA and protein
[jalview.git] / src / jalview / gui / AnnotationLabels.java
index 0a3423e..bb762ff 100755 (executable)
@@ -493,14 +493,14 @@ public class AnnotationLabels extends JPanel implements MouseListener,
       {
         // begin the tooltip's html fragment
         desc.append("<html>");
+        if (aa.hasScore())
+        {
+          // TODO: limit precision of score to avoid noise from imprecise
+          // doubles
+          // (64.7 becomes 64.7+/some tiny value).
+          desc.append(" Score: " + aa.score);
+        }
       }
-      if (aa.hasScore())
-      {
-        // TODO: limit precision of score to avoid noise from imprecise doubles
-        // (64.7 becomes 64.7+/some tiny value).
-        desc.append(" Score: " + aa.score);
-      }
-
       if (desc.length() > 6)
       {
         desc.append("</html>");
@@ -511,7 +511,6 @@ public class AnnotationLabels extends JPanel implements MouseListener,
         this.setToolTipText(null);
       }
     }
-
   }
 
   /**
@@ -879,8 +878,7 @@ public class AnnotationLabels extends JPanel implements MouseListener,
       hiddenColumns = new Vector();
       for (int i = 0; i < av.getColumnSelection().getHiddenColumns().size(); i++)
       {
-        int[] region = (int[]) av.getColumnSelection().getHiddenColumns()
-                .elementAt(i);
+        int[] region = av.getColumnSelection().getHiddenColumns().get(i);
 
         hiddenColumns.addElement(new int[]
         { region[0], region[1] });