We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ef31d commit 70e679cCopy full SHA for 70e679c
app/src/main/java/hexlet/code/schemas/MapSchema.java
@@ -24,8 +24,8 @@ public MapSchema sizeof(int size) {
24
return this;
25
}
26
27
- public MapSchema shape(Map<String, BaseSchema<?>> schemas) {
28
- this.shapeSchemas = schemas;
+ public MapSchema shape(Map<String, ? extends BaseSchema<?>> schemas) {
+ this.shapeSchemas = new HashMap<>(schemas);
29
30
31
0 commit comments