From 66a53ac8f1816e4e6b08ac6909066a867048e286 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Fri, 24 Nov 2017 11:39:37 +0000 Subject: [PATCH] JAL-2838 made getAssociatedPanels public --- src/jalview/gui/PaintRefresher.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 1.7.10.2