Skip to content

Commit 54b2547

Browse files
jbescoslukasj
authored andcommitted
Json.createObjectBuilder(Map) has impractical type bounds
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
1 parent e865594 commit 54b2547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/src/main/java/jakarta/json/Json.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public static JsonObjectBuilder createObjectBuilder(JsonObject object) {
299299
*
300300
* @since 1.1
301301
*/
302-
public static JsonObjectBuilder createObjectBuilder(Map<String, Object> map) {
302+
public static JsonObjectBuilder createObjectBuilder(Map<String, ?> map) {
303303
return JsonProvider.provider().createObjectBuilder(map);
304304
}
305305

api/src/main/java/jakarta/json/spi/JsonProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public JsonObjectBuilder createObjectBuilder(JsonObject object) {
253253
*
254254
* @since 1.1
255255
*/
256-
public JsonObjectBuilder createObjectBuilder(Map<String, Object> map) {
256+
public JsonObjectBuilder createObjectBuilder(Map<String, ?> map) {
257257
throw new UnsupportedOperationException();
258258
}
259259

0 commit comments

Comments
 (0)