We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0690264 commit 72a2085Copy full SHA for 72a2085
app/src/main/java/hexlet/code/schemas/MapSchema.java
@@ -14,7 +14,7 @@ public MapSchema required() {
14
}
15
16
public MapSchema sizeof(int size) {
17
- addRequirement("sizeof", map -> map == null || map instanceof Map && ((Map<?, ?>) map).size() == size);
+ addRequirement("sizeof", map -> map == null || map instanceof Map && size == ((Map<?, ?>) map).size());
18
return this;
19
20
0 commit comments