Skip to content

Commit 4599004

Browse files
changed BaseSchema.java and StringSchema.java
1 parent c2fb2e5 commit 4599004

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public final boolean isValid(T value) {
2626
.allMatch(t -> t.test(value));
2727
}
2828

29-
30-
protected BaseSchema required() {
29+
public BaseSchema required() {
3130
addValidation("required", Objects::nonNull);
3231
return this;
3332
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
public final class StringSchema extends BaseSchema<String> {
55

6-
@Override
76
public StringSchema required() {
87
addValidation("required", s -> s != null && !s.equals(""));
98
return this;

0 commit comments

Comments
 (0)