Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] pseudo code in writing-extensions guide does not match the description #40341

Closed
gaol opened this issue Apr 29, 2024 · 0 comments · Fixed by #40342
Closed

[Doc] pseudo code in writing-extensions guide does not match the description #40341

gaol opened this issue Apr 29, 2024 · 0 comments · Fixed by #40342
Milestone

Comments

@gaol
Copy link
Contributor

gaol commented Apr 29, 2024

In the writting-extensions guide[1], there is an pseudo code snippet:

if (capabilities.isMissing(Capability.RESTEASY_REACTIVE)
&& capabilities.isMissing(Capability.RESTEASY_CLASSIC)) {
validationErrors.produce(new ValidationErrorBuildItem(
new ConfigurationException("Cannot use both RESTEasy Classic and Reactive extensions at the same time")));

to show the usage of ValidationErrorBuildItem on the deployment module, but the sentence of Cannot use both RESTEasy Classic and Reactive extensions at the same time does not match the code of isMissing() invocations, I guess they should be isPresent() for the checkings.

[1] https://quarkus.io/guides/writing-extensions#validation-error-build-item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants