Skip to content

Commit 62f80ee

Browse files
deleted method 'required()'
1 parent 40cdc71 commit 62f80ee

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
package hexlet.code.schemas;
22

3-
import java.util.Objects;
43

54
public final class NumberSchema extends BaseSchema<Integer> {
65

7-
public NumberSchema required() {
8-
addValidation("required", Objects::nonNull);
9-
return this;
10-
}
11-
126
public NumberSchema range(int begin, int end) {
137
addValidation("range", i -> begin <= i && i <= end);
148
return this;

0 commit comments

Comments
 (0)