diff --git a/.gitignore b/.gitignore index c0738d6..5153a75 100755 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /bin/ /target/ /.repository/ +/.flattened-pom.xml diff --git a/Zutil.iml b/Zutil.iml index 6d12f97..74f3f13 100755 --- a/Zutil.iml +++ b/Zutil.iml @@ -1,61 +1,2 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/zutil/parser/DataNode.java b/src/zutil/parser/DataNode.java index 787b1bb..892b93d 100644 --- a/src/zutil/parser/DataNode.java +++ b/src/zutil/parser/DataNode.java @@ -378,7 +378,7 @@ public class DataNode implements Iterable { * @return the long value in this map * @throws NullPointerException if the node is not of type map */ - public Map getMap(String key) { + public Map getMap(String key) { if (!this.isMap()) throw new NullPointerException("The node is not setup as a map"); @@ -425,7 +425,7 @@ public class DataNode implements Iterable { * @return a list with the items in the node * @throws NullPointerException if the node is not of type list */ - public List getList() { + public List getList() { if (!this.isList()) throw new NullPointerException("The node is not setup as a list"); List output = new ArrayList(); @@ -445,10 +445,10 @@ public class DataNode implements Iterable { * @return a map with the items in the node * @throws NullPointerException if the node is not of type map */ - public Map getMap() { + public Map getMap() { if (!this.isMap()) throw new NullPointerException("The node is not setup as a map"); - Map output = new HashMap(); + Map output = new HashMap<>(); for (String key : map.keySet()) { DataNode node = get(key); switch (node.getType()) {