Skip to content

Commit

Permalink
Add type parameters (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Apr 26, 2024
1 parent a035cbe commit 7001fc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/sf/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ private static void setValue(
/**
* The Map where the JSONObject's properties are kept.
*/
private Map properties;
private Map<String, Object> properties;

/**
* Construct an empty JSONObject.
Expand Down Expand Up @@ -1799,7 +1799,7 @@ public JSONObject elementOpt(String key, Object value, JsonConfig jsonConfig) {
}

@Override
public Set entrySet() {
public Set<Map.Entry<String, Object>> entrySet() {
return Collections.unmodifiableSet(properties.entrySet());
}

Expand Down Expand Up @@ -2102,13 +2102,13 @@ public boolean isNullObject() {
*
* @return An iterator of the keys.
*/
public Iterator keys() {
public Iterator<String> keys() {
verifyIsNull();
return keySet().iterator();
}

@Override
public Set keySet() {
public Set<String> keySet() {
return Collections.unmodifiableSet(properties.keySet());
}

Expand Down

0 comments on commit 7001fc2

Please sign in to comment.