Skip to content

Commit

Permalink
Rename suggested extensions in contextualizers' hints
Browse files Browse the repository at this point in the history
(cherry picked from commit fefafd3)
  • Loading branch information
danilopiazza authored and gsmet committed Aug 1, 2024
1 parent 06a11d4 commit 3e33252
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected void handleAdditionalMethodProcessing(ResourceMethod method, ClassInfo
protected void logMissingJsonWarning(MethodInfo info) {
LOGGER.warnf("Quarkus detected the use of JSON in REST Client method '" + info.declaringClass().name() + "#"
+ info.name()
+ "' but no JSON extension has been added. Consider adding 'quarkus-rest-client-reactive-jackson' (recommended) or 'quarkus-rest-client-reactive-jsonb'.");
+ "' but no JSON extension has been added. Consider adding 'quarkus-rest-client-jackson' (recommended) or 'quarkus-rest-client-jsonb'.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class JsonMissingMessageBodyReaderErrorMessageContextualizer implements
@Override
public String provideContextMessage(Input input) {
if ((input.mediaType() != null) && input.mediaType().isCompatible(MediaType.APPLICATION_JSON_TYPE)) {
return "Consider adding one the 'quarkus-rest-client-reactive-jackson' or 'quarkus-rest-client-reactive-jsonb' extensions";
return "Consider adding one the 'quarkus-rest-client-jackson' or 'quarkus-rest-client-jsonb' extensions";
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class XmlMissingMessageBodyReaderErrorMessageContextualizer implements
@Override
public String provideContextMessage(Input input) {
if ((input.mediaType() != null) && input.mediaType().isCompatible(MediaType.APPLICATION_XML_TYPE)) {
return "Consider adding the 'quarkus-rest-client-reactive-jaxb' extension";
return "Consider adding the 'quarkus-rest-client-jaxb' extension";
}
return null;
}
Expand Down

0 comments on commit 3e33252

Please sign in to comment.