JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git] / src / jalview / datamodel / AlignmentAnnotation.java
index 2ee4503..ee9389c 100755 (executable)
@@ -991,7 +991,7 @@ public class AlignmentAnnotation
           seqPos = i + startRes;
         }
 
-        sequenceMapping.put(Integer.valueOf(seqPos), annotations[i]);
+        sequenceMapping.put(new Integer(seqPos), annotations[i]);
       }
     }
 
@@ -1030,7 +1030,7 @@ public class AlignmentAnnotation
     {
       for (a = sequenceRef.getStart(); a <= sequenceRef.getEnd(); a++)
       {
-        index = Integer.valueOf(a);
+        index = new Integer(a);
         Annotation annot = sequenceMapping.get(index);
         if (annot != null)
         {