Commit 368e3c1
authored
refactor: Resolve open SonarCloud issues (#112)
Clear the open issues reported on the default branch:
- java:S8714 (assertDoesNotThrow): replace try/catch + fail() blocks in
OpenApiServerIT and ServerBaseTest with assertDoesNotThrow(...).
- java:S8694 (Month enum): use java.time.Month constants in
GsonJsonMapperTest instead of int month literals.
- java:S109 (magic numbers): name the 4xx status bounds in
BadRequestException (MIN/MAX_CLIENT_ERROR_STATUS).
- java:S8433 (validation before super()): validate the status range
before the super() call using a flexible constructor body.
No behaviour change; test-only refactors plus an equivalent constructor
reordering covered by BadRequestExceptionTest.1 parent 87cd339 commit 368e3c1
4 files changed
Lines changed: 488 additions & 551 deletions
File tree
- src
- main/java/com/retailsvc/http
- test/java/com/retailsvc/http
- internal/gson
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments