Skip to content

Commit db4c65f

Browse files
committed
Update README.md
1 parent a8e66e6 commit db4c65f

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

README.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,15 @@ It is intended to be used as a **foundation** for other libraries or application
3838
import io.github.malczuuu.problem4j.core.Problem;
3939
import io.github.malczuuu.problem4j.core.ProblemException;
4040

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

5852
## Usage

0 commit comments

Comments
 (0)