JAL-3541 selectively merged build.gradle and gradle.properties
[jalview.git] / src / jalview / appletgui / PaintRefresher.java
index fe99187..ddf590e 100755 (executable)
@@ -52,7 +52,7 @@ public class PaintRefresher
   {
     if (components == null)
     {
-      components = new Hashtable<String, Vector<Component>>();
+      components = new Hashtable<>();
     }
 
     if (components.containsKey(seqSetId))
@@ -191,8 +191,8 @@ public class PaintRefresher
         {
           // TODO: the following does not trigger any recalculation of
           // height/etc, or maintain the dataset
-          List<SequenceI> alsq;
-          synchronized (alsq = comp.getSequences())
+          List<SequenceI> alsq = comp.getSequences();
+          synchronized (alsq)
           {
             alsq.add(i, a1[i]);
           }