From 6d46c473d41c6c47e6b8bd8c676d925e544bd378 Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Fri, 5 Jul 2024 12:43:13 -0400 Subject: More cleanup --- .../src/main/java/net/wotonomy/web/WODynamicElement.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODynamicElement.java') diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODynamicElement.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODynamicElement.java index 6cf7acd..8cae72c 100644 --- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODynamicElement.java +++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WODynamicElement.java @@ -39,14 +39,14 @@ public abstract class WODynamicElement extends WOElement { private static final long serialVersionUID = -5383805382837136590L; protected String name; protected WOElement rootElement; - protected NSDictionary associations; + protected NSDictionary associations; /** * The default constructor. */ protected WODynamicElement() { name = null; - associations = new NSMutableDictionary(); + associations = new NSMutableDictionary<>(); rootElement = null; } @@ -57,7 +57,7 @@ public abstract class WODynamicElement extends WOElement { * and the values are associations to be applied to the context's current * component. */ - public WODynamicElement(String aName, NSDictionary anAssociationMap, WOElement aRootElement) { + public WODynamicElement(String aName, NSDictionary anAssociationMap, WOElement aRootElement) { this(); name = aName; associations = anAssociationMap; @@ -84,9 +84,9 @@ public abstract class WODynamicElement extends WOElement { * @param c The component where the values of the properties have to be * retrieved from. */ - Map urlFields(WOComponent c) { - HashMap map = new HashMap(associations.count()); - Enumeration enumeration = associations.keyEnumerator(); + Map urlFields(WOComponent c) { + HashMap map = new HashMap<>(associations.count()); + Enumeration enumeration = associations.keyEnumerator(); while (enumeration.hasMoreElements()) { String key = (String) enumeration.nextElement(); if (key.charAt(0) == '?') { @@ -147,8 +147,8 @@ public abstract class WODynamicElement extends WOElement { * @param standardProperties An array of Strings with all the associations that * should be excluded from the resulting string. */ - String additionalHTMLProperties(WOComponent c, NSArray standardProperties) { - Enumeration enumeration = associations.keyEnumerator(); + String additionalHTMLProperties(WOComponent c, NSArray standardProperties) { + Enumeration enumeration = associations.keyEnumerator(); StringBuffer buf = new StringBuffer(); while (enumeration.hasMoreElements()) { String key = (String) enumeration.nextElement(); -- cgit v1.2.3