From f1bb65a6c0f0ce29b8557706338ff22651f0c51f Mon Sep 17 00:00:00 2001 From: Lin Gao Date: Mon, 29 Apr 2024 20:09:19 +0800 Subject: [PATCH] [issue:40341] [Doc] pseudo code in writing-extensions guide does not match the description Signed-off-by: Lin Gao --- docs/src/main/asciidoc/writing-extensions.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/writing-extensions.adoc b/docs/src/main/asciidoc/writing-extensions.adoc index 498755909afde..a01078cfe0d19 100644 --- a/docs/src/main/asciidoc/writing-extensions.adoc +++ b/docs/src/main/asciidoc/writing-extensions.adoc @@ -823,8 +823,8 @@ They represent build items with validation errors that make the build fail. Thes ---- @BuildStep void checkCompatibility(Capabilities capabilities, BuildProducer 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"))); }