Skip to content

Commit b42cf93

Browse files
committed
Minor improvements.
1 parent faa36b5 commit b42cf93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/github/hrytsenko/jsondata/springboot/error/ServiceException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
import lombok.Getter;
1919

20+
@Getter
2021
public class ServiceException extends RuntimeException {
2122

22-
@Getter
2323
String code;
2424

2525
private ServiceException(String code) {
@@ -34,7 +34,7 @@ private ServiceException(String code, Throwable cause) {
3434
public static class BadRequest extends ServiceException {
3535

3636
public BadRequest(String code) {
37-
super(code);
37+
this(code, null);
3838
}
3939

4040
public BadRequest(String code, Throwable cause) {
@@ -82,7 +82,7 @@ public NotFound(Throwable cause) {
8282
public static class InternalError extends ServiceException {
8383

8484
public InternalError(String code) {
85-
super(code);
85+
this(code, null);
8686
}
8787

8888
public InternalError(String code, Throwable cause) {

src/test/java/com/github/hrytsenko/jsondata/springboot/web/JacksonConfigurationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void serialize() {
4646

4747
Map<String, ?> expectedObject = stringToMap("{'foo':'FOO'}");
4848
Mockito.verify(sourceGenerator)
49-
.writeObject(Mockito.eq(expectedObject));
49+
.writeObject(expectedObject);
5050
}
5151

5252
@Test

0 commit comments

Comments
 (0)