Skip to content

Commit 0aa5af3

Browse files
authored
Remove unused getter methods in ValidationResponse
Removed unused getter methods from ValidationResponse.
1 parent 2c16b20 commit 0aa5af3

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

http-inject-plugin/src/main/java/io/avaje/http/inject/ValidationResponse.java

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,7 @@ public ValidationResponse(int status, List<Violation> errors, String instance) {
2222
this.errors = errors;
2323
this.instance = instance;
2424
}
25-
26-
public String type() {
27-
return type;
28-
}
29-
30-
public String title() {
31-
return title;
32-
}
33-
34-
public String detail() {
35-
return detail;
36-
}
37-
38-
public String instance() {
39-
return instance;
40-
}
41-
42-
public int status() {
43-
return status;
44-
}
45-
46-
public List<Violation> errors() {
47-
return errors;
48-
}
49-
25+
5026
// custom serialize as this is a simple class
5127
public void toJson(OutputStream os) throws IOException {
5228
try (Writer writer = new OutputStreamWriter(os, "UTF-8")) {

0 commit comments

Comments
 (0)