Skip to content

Commit 70e679c

Browse files
committed
add
1 parent 36ef31d commit 70e679c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/hexlet/code/schemas/MapSchema.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public MapSchema sizeof(int size) {
2424
return this;
2525
}
2626

27-
public MapSchema shape(Map<String, BaseSchema<?>> schemas) {
28-
this.shapeSchemas = schemas;
27+
public MapSchema shape(Map<String, ? extends BaseSchema<?>> schemas) {
28+
this.shapeSchemas = new HashMap<>(schemas);
2929
return this;
3030
}
3131

0 commit comments

Comments
 (0)