From 889fac2bdf993dc86f64a8893c0260fdcf848acb Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Mon, 10 Apr 2017 16:40:33 -0400 Subject: Cleanup --- BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (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 e469f2f..411d0db 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java +++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java @@ -21,8 +21,8 @@ public class SimpleJList { * The list to populate the JList with. * @return A JList populated with the elements from ls. */ - public static JList buildFromList(Iterable source) { - if(source == null) throw new NullPointerException("Source must not be null"); + public static JList buildFromList(final Iterable source) { + if (source == null) throw new NullPointerException("Source must not be null"); return new JList<>(buildModel(source)); } @@ -37,10 +37,10 @@ public class SimpleJList { * The list to fill the list model from. * @return A list model populated with the elements from ls. */ - public static ListModel buildModel(Iterable source) { - if(source == null) throw new NullPointerException("Source must not be null"); + public static ListModel buildModel(final Iterable source) { + if (source == null) throw new NullPointerException("Source must not be null"); - DefaultListModel defaultModel = new DefaultListModel<>(); + final DefaultListModel defaultModel = new DefaultListModel<>(); source.forEach(defaultModel::addElement); -- cgit v1.2.3