From: Jim Procter Date: Fri, 15 Sep 2017 14:23:58 +0000 (+0100) Subject: JAL-1551 standard code formatting X-Git-Tag: Release_2_11_0~244^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8ef535b690c1f7225d3b4f8a5814009d046882a7;p=jalview.git JAL-1551 standard code formatting --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index bf729f6..c605378 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -1013,8 +1013,8 @@ public class Desktop extends jalview.jbgui.GDesktop // Java's Transferable for native dnd evt.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE); Transferable t = evt.getTransferable(); - List files = new ArrayList(); - List protocols = new ArrayList(); + List files = new ArrayList<>(); + List protocols = new ArrayList<>(); try { @@ -1722,7 +1722,7 @@ public class Desktop extends jalview.jbgui.GDesktop JPanel progressPanel; - ArrayList fileLoadingPanels = new ArrayList(); + ArrayList fileLoadingPanels = new ArrayList<>(); public void startLoading(final String fileName) { @@ -1814,7 +1814,7 @@ public class Desktop extends jalview.jbgui.GDesktop // TODO: verify that frames are recoverable when in headless mode return null; } - List aps = new ArrayList(); + List aps = new ArrayList<>(); AlignFrame[] frames = getAlignFrames(); if (frames == null) { @@ -1849,7 +1849,7 @@ public class Desktop extends jalview.jbgui.GDesktop */ public static AlignmentViewport[] getViewports(String sequenceSetId) { - List viewp = new ArrayList(); + List viewp = new ArrayList<>(); if (desktop != null) { AlignFrame[] frames = Desktop.getAlignFrames(); @@ -2362,7 +2362,7 @@ public class Desktop extends jalview.jbgui.GDesktop // SEQUENCE_ID which is not the default EMBL_EBI link ListIterator li = links.listIterator(); boolean check = false; - List urls = new ArrayList(); + List urls = new ArrayList<>(); while (li.hasNext()) { String link = li.next(); @@ -2547,7 +2547,7 @@ public class Desktop extends jalview.jbgui.GDesktop { return null; } - List avp = new ArrayList(); + List avp = new ArrayList<>(); // REVERSE ORDER for (int i = frames.length - 1; i > -1; i--) { @@ -2592,7 +2592,7 @@ public class Desktop extends jalview.jbgui.GDesktop { return null; } - List avp = new ArrayList(); + List avp = new ArrayList<>(); // REVERSE ORDER for (int i = frames.length - 1; i > -1; i--) { @@ -2735,8 +2735,8 @@ public class Desktop extends jalview.jbgui.GDesktop { if (progressBars == null) { - progressBars = new Hashtable(); - progressBarHandlers = new Hashtable(); + progressBars = new Hashtable<>(); + progressBarHandlers = new Hashtable<>(); } if (progressBars.get(new Long(id)) != null)