From 01cb9f504c860bc1c037a44f3a76bf342a293d46 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 22 Mar 2016 12:28:35 -0400 Subject: General formatting cleanup and documentation update --- BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java index 8bca490..614cf33 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java @@ -14,17 +14,23 @@ public class SimpleJList { /** * Create a new JList from a given list. * + * @param + * The type of data in the JList + * * @param ls * The list to populate the JList with. * @return A JList populated with the elements from ls. */ public static JList buildFromList(Iterable ls) { - return new JList(buildModel(ls)); + return new JList<>(buildModel(ls)); } /** * Create a new list model from a given list. * + * @param + * The type of data in the list model + * * @param ls * The list to fill the list model from. * @return A list model populated with the elements from ls. -- cgit v1.2.3