diff --git a/framework/base/src/test/java/org/apache/ofbiz/base/util/collections/MapContextTest.java b/framework/base/src/test/java/org/apache/ofbiz/base/util/collections/MapContextTest.java index 09439aac32..cf36c916c5 100644 --- a/framework/base/src/test/java/org/apache/ofbiz/base/util/collections/MapContextTest.java +++ b/framework/base/src/test/java/org/apache/ofbiz/base/util/collections/MapContextTest.java @@ -41,11 +41,11 @@ public class MapContextTest { * * @see ControllerConfig */ - static class PNode { + static class PNode { /** The properties of the node. */ - public Map props; + public Map props; /** The included identifier of nodes. */ - private List> includes; + private List includes; /** * Constructs a node without properties. @@ -53,7 +53,7 @@ public class MapContextTest { * @param includes the included nodes */ @SafeVarargs - public PNode(PNode... includes) { + public PNode(PNode... includes) { this(Collections.emptyMap(), includes); } @@ -64,7 +64,7 @@ public class MapContextTest { * @param includes the included nodes */ @SafeVarargs - public PNode(Map props, PNode... includes) { + public PNode(Map props, PNode... includes) { this.props = props; this.includes = Arrays.asList(includes); } @@ -74,8 +74,8 @@ public class MapContextTest { * * @return a map context containing the properties of the tree. */ - public MapContext allProps() { - MapContext res = new MapContext<>(); + public MapContext allProps() { + MapContext res = new MapContext<>(); includes.forEach(inc -> res.push(inc.allProps())); res.push(props); return res; @@ -90,10 +90,10 @@ public class MapContextTest { UtilMisc.toMap(LinkedHashMap::new, "aa", "1", "ab", "1"); Map propsB = UtilMisc.toMap(LinkedHashMap::new, "ba", "3", "bb", "8", "bc", "1", "bd", "14"); - PNode pn = new PNode<>(propsA, - new PNode<>(propsB, new PNode<>(), new PNode<>()), - new PNode<>(new PNode<>()), - new PNode<>()); + PNode pn = new PNode(propsA, + new PNode(propsB, new PNode(), new PNode()), + new PNode(new PNode()), + new PNode()); MapContext mc = pn.allProps(); assertThat("insertion order of LinkedHashMap is preserved by the 'values' method",