Skip to content

Commit

Permalink
[issue:40341] [Doc] pseudo code in writing-extensions guide does not …
Browse files Browse the repository at this point in the history
…match the description

Signed-off-by: Lin Gao <[email protected]>
  • Loading branch information
gaol committed Apr 29, 2024
1 parent 3b6f5c3 commit f1bb65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/writing-extensions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ They represent build items with validation errors that make the build fail. Thes
----
@BuildStep
void checkCompatibility(Capabilities capabilities, BuildProducer<ValidationErrorBuildItem> validationErrors) {
if (capabilities.isMissing(Capability.RESTEASY_REACTIVE)
&& capabilities.isMissing(Capability.RESTEASY_CLASSIC)) {
if (capabilities.isPresent(Capability.RESTEASY_REACTIVE)
&& capabilities.isPresent(Capability.RESTEASY)) {
validationErrors.produce(new ValidationErrorBuildItem(
new ConfigurationException("Cannot use both RESTEasy Classic and Reactive extensions at the same time")));
}
Expand Down

0 comments on commit f1bb65a

Please sign in to comment.