Skip to content

Commit 0cdfb66

Browse files
override method 'required()'
1 parent 62f80ee commit 0cdfb66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

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

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

6+
@Override
67
public StringSchema required() {
78
addValidation("required", s -> s != null && !s.equals(""));
89
return this;

0 commit comments

Comments
 (0)