File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hivemq-edge/src/main/java/com/hivemq Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ private HttpErrorFactory() {
100100 public static @ NotNull RequestBodyParameterMissingError requestBodyParameterMissingError (final @ NotNull String parameter ) {
101101 return RequestBodyParameterMissingError .builder ()
102102 .type (type (RequestBodyParameterMissingError .class ))
103- .title (OpenAPIHttpError .HTTP_ERROR_400_REQUEST_BODY_PARAMETER_MISSING_TITLE .getKey ())
103+ .title (OpenAPIHttpError .HTTP_ERROR_400_REQUEST_BODY_PARAMETER_MISSING_TITLE .get ())
104104 .detail (OpenAPIHttpError .HTTP_ERROR_400_REQUEST_BODY_PARAMETER_MISSING_DETAIL .get (Map .of ("parameter" , parameter )))
105105 .parameter (parameter )
106106 .status (HttpStatus .BAD_REQUEST_400 )
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ public enum OpenAPIHttpError implements I18nTemplate {
4141 HTTP_ERROR_507_TITLE ,
4242 ;
4343
44- private static final String RESOURCE_NAME_PREFIX = "/templates/openapi-errors-" ;
45- private static final String RESOURCE_NAME_SUFFIX = ".properties" ;
44+ private static final @ NotNull String RESOURCE_NAME_PREFIX = "/templates/openapi-errors-" ;
45+ private static final @ NotNull String RESOURCE_NAME_SUFFIX = ".properties" ;
4646
4747 OpenAPIHttpError () {
4848 }
You can’t perform that action at this time.
0 commit comments