Skip to content

Commit b595d40

Browse files
committed
Update README.md
1 parent 10cd096 commit b595d40

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ import io.github.malczuuu.problem4j.Problem;
4141
import io.github.malczuuu.problem4j.ProblemException;
4242

4343
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-
}
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

@@ -91,8 +91,7 @@ manager.
9191
9292
## Other Libraries
9393
94-
- [`problem4j-jackson`][problem4j-spring-web] - Jackson module for serializing and deserializing `Problem`.
95-
objects.
94+
- [`problem4j-jackson`][problem4j-jackson] - Jackson module for serializing and deserializing `Problem` objects.
9695
- [`problem4j-spring-web`][problem4j-spring-web] - Spring Web module extending `ResponseEntityExceptionHandler` for
9796
handling exceptions and returning `Problem` responses.
9897

0 commit comments

Comments
 (0)