From: kjvdheide Date: Fri, 24 Nov 2017 11:39:37 +0000 (+0000) Subject: JAL-2838 made getAssociatedPanels public X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=66a53ac8f1816e4e6b08ac6909066a867048e286;p=jalview.git JAL-2838 made getAssociatedPanels public --- diff --git a/src/jalview/gui/PaintRefresher.java b/src/jalview/gui/PaintRefresher.java index ced5544..06a2f65 100755 --- a/src/jalview/gui/PaintRefresher.java +++ b/src/jalview/gui/PaintRefresher.java @@ -39,7 +39,7 @@ import java.util.Map; */ public class PaintRefresher { - static Map> components = new HashMap>(); + static Map> components = new HashMap<>(); /** * Add the given component to those registered under the given sequence set @@ -60,7 +60,7 @@ public class PaintRefresher } else { - List vcoms = new ArrayList(); + List vcoms = new ArrayList<>(); vcoms.add(comp); components.put(seqSetId, vcoms); } @@ -233,14 +233,14 @@ public class PaintRefresher } } - static AlignmentPanel[] getAssociatedPanels(String id) + public static AlignmentPanel[] getAssociatedPanels(String id) { List comps = components.get(id); if (comps == null) { return new AlignmentPanel[0]; } - List tmp = new ArrayList(); + List tmp = new ArrayList<>(); for (Component comp : comps) { if (comp instanceof AlignmentPanel)