Skip to content

Commit e690f50

Browse files
committed
Update README.md
1 parent b595d40 commit e690f50

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ It is intended to be used as a **foundation** for other libraries or application
4040
import io.github.malczuuu.problem4j.Problem;
4141
import io.github.malczuuu.problem4j.ProblemException;
4242

43-
public class Class {
44-
45-
public void method() {
46-
Problem problem =
47-
Problem.builder()
48-
.type("https://example.com/errors/invalid-request")
49-
.title("Invalid Request")
50-
.status(400)
51-
.detail("not a valid json")
52-
.instance("https://example.com/instances/1234")
53-
.build();
54-
55-
throw new ProblemException(problem);
56-
}
43+
public class ExampleClass {
44+
45+
public void method() {
46+
Problem problem =
47+
Problem.builder()
48+
.type("https://example.com/errors/invalid-request")
49+
.title("Invalid Request")
50+
.status(400)
51+
.detail("not a valid json")
52+
.instance("https://example.com/instances/1234")
53+
.build();
54+
55+
throw new ProblemException(problem);
56+
}
5757
}
5858
```
5959

0 commit comments

Comments
 (0)