Skip to content

Commit 40cdc71

Browse files
deleted method 'required()'
1 parent 7c59d18 commit 40cdc71

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22

33

44
import java.util.Map;
5-
import java.util.Objects;
65

76
public final class MapSchema extends BaseSchema<Map<?, ?>> {
87

9-
public MapSchema required() {
10-
addValidation("required", Objects::nonNull);
11-
return this;
12-
}
13-
148
public MapSchema sizeof(int limitSize) {
159
addValidation("sizeof", m -> m.size() == limitSize);
1610
return this;

0 commit comments

Comments
 (0)