Skip to content

Commit

Permalink
Json.createObjectBuilder(Map) has impractical type bounds
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
  • Loading branch information
jbescos authored and lukasj committed Sep 30, 2021
1 parent e865594 commit 54b2547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/json/Json.java
Expand Up @@ -299,7 +299,7 @@ public static JsonObjectBuilder createObjectBuilder(JsonObject object) {
*
* @since 1.1
*/
public static JsonObjectBuilder createObjectBuilder(Map<String, Object> map) {
public static JsonObjectBuilder createObjectBuilder(Map<String, ?> map) {
return JsonProvider.provider().createObjectBuilder(map);
}

Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/json/spi/JsonProvider.java
Expand Up @@ -253,7 +253,7 @@ public JsonObjectBuilder createObjectBuilder(JsonObject object) {
*
* @since 1.1
*/
public JsonObjectBuilder createObjectBuilder(Map<String, Object> map) {
public JsonObjectBuilder createObjectBuilder(Map<String, ?> map) {
throw new UnsupportedOperationException();
}

Expand Down

0 comments on commit 54b2547

Please sign in to comment.