From 7001fc2b1fade0998b3fb5fd3c87fad975b3c21f Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Thu, 25 Apr 2024 17:34:36 -0700 Subject: [PATCH] Add type parameters (#33) --- src/main/java/net/sf/json/JSONObject.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/sf/json/JSONObject.java b/src/main/java/net/sf/json/JSONObject.java index 94ec4e9..73d3991 100644 --- a/src/main/java/net/sf/json/JSONObject.java +++ b/src/main/java/net/sf/json/JSONObject.java @@ -1412,7 +1412,7 @@ private static void setValue( /** * The Map where the JSONObject's properties are kept. */ - private Map properties; + private Map properties; /** * Construct an empty JSONObject. @@ -1799,7 +1799,7 @@ public JSONObject elementOpt(String key, Object value, JsonConfig jsonConfig) { } @Override - public Set entrySet() { + public Set> entrySet() { return Collections.unmodifiableSet(properties.entrySet()); } @@ -2102,13 +2102,13 @@ public boolean isNullObject() { * * @return An iterator of the keys. */ - public Iterator keys() { + public Iterator keys() { verifyIsNull(); return keySet().iterator(); } @Override - public Set keySet() { + public Set keySet() { return Collections.unmodifiableSet(properties.keySet()); }