File tree Expand file tree Collapse file tree 5 files changed +3
-7
lines changed
main/java/com/github/hrytsenko/jsondata/springboot Expand file tree Collapse file tree 5 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11lombok.addLombokGeneratedAnnotation = true
22lombok.fieldDefaults.defaultPrivate = true
3+ lombok.fielddefaults.defaultfinal = true
Original file line number Diff line number Diff line change 2020import com .github .hrytsenko .jsondata .springboot .web .ValidateRequestException ;
2121import com .github .hrytsenko .jsondata .springboot .web .ValidateResponseException ;
2222import lombok .AllArgsConstructor ;
23- import lombok .experimental .FieldDefaults ;
2423import lombok .experimental .UtilityClass ;
2524import lombok .extern .slf4j .Slf4j ;
2625import org .springframework .core .Ordered ;
@@ -39,7 +38,6 @@ class ExceptionAdvices {
3938 @ RequestMapping (produces = MediaType .APPLICATION_JSON_VALUE )
4039 @ Slf4j
4140 @ AllArgsConstructor
42- @ FieldDefaults (makeFinal = true )
4341 static class InternalExceptionAdvice {
4442
4543 CorrelationSource correlationSource ;
@@ -58,7 +56,6 @@ public ErrorResponse onInternalError(Exception exception) {
5856 @ Order (Ordered .HIGHEST_PRECEDENCE )
5957 @ Slf4j
6058 @ AllArgsConstructor
61- @ FieldDefaults (makeFinal = true )
6259 static class ServiceExceptionAdvice {
6360
6461 CorrelationSource correlationSource ;
@@ -112,7 +109,6 @@ public ErrorResponse onServiceUnavailable(ServiceException.ServiceUnavailable ex
112109 @ Order (Ordered .HIGHEST_PRECEDENCE )
113110 @ Slf4j
114111 @ AllArgsConstructor
115- @ FieldDefaults (makeFinal = true )
116112 static class ValidateExceptionAdvice {
117113
118114 CorrelationSource correlationSource ;
Original file line number Diff line number Diff line change 1616package com .github .hrytsenko .jsondata .springboot .error ;
1717
1818import lombok .Getter ;
19- import lombok .experimental .FieldDefaults ;
2019
21- @ FieldDefaults (makeFinal = true )
2220public class ServiceException extends RuntimeException {
2321
2422 @ Getter
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public Jackson2ObjectMapperBuilderCustomizer jsonEntityJacksonCustomizer() {
5353 @ AllArgsConstructor
5454 static class JsonEntityDeserializer extends JsonDeserializer <JsonEntity <?>> {
5555
56- private Class <?> entityClass ;
56+ Class <?> entityClass ;
5757
5858 @ SneakyThrows
5959 @ Override
Original file line number Diff line number Diff line change 1+ lombok.fieldDefaults.defaultFinal = false
You can’t perform that action at this time.
0 commit comments