From 6b31053b582be2b0f8109b076da8e0fff2787750 Mon Sep 17 00:00:00 2001 From: Matej Novotny Date: Wed, 5 Jan 2022 10:50:29 +0100 Subject: [PATCH] Change parameter type of SkipIfPortableExtensionPresent from String to Class. --- .../spi/SkipIfPortableExtensionPresent.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SkipIfPortableExtensionPresent.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SkipIfPortableExtensionPresent.java index 6b623029..f044b703 100644 --- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SkipIfPortableExtensionPresent.java +++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SkipIfPortableExtensionPresent.java @@ -1,5 +1,7 @@ package jakarta.enterprise.inject.build.compatible.spi; +import jakarta.enterprise.inject.spi.Extension; + import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -21,12 +23,10 @@ @Retention(RetentionPolicy.RUNTIME) public @interface SkipIfPortableExtensionPresent { /** - * Binary name of a portable extension class, as defined by The Java™ Language Specification; - * in other words, the class name as returned by {@link Class#getName()}. - *

- * Non-portable behavior occurs if given class exists but is not a portable extension. + * A class implementing {@link Extension} that is expected to mirror the functionality of the annotated + * build compatible extension. * - * @return binary name of a portable extension class + * @return a portable extension class */ - String value(); + Class value(); }