Skip to content

Commit 3391118

Browse files
committed
Documentation fixes
1 parent 020e5ed commit 3391118

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/feature/AutomaticallyRegisteredFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* Only classes that are part of the image builder can use this annotation. Even parts of GraalVM
4343
* that are not on the image builder class path, but on the application class path, cannot use this
4444
* annotation. For example, the "driver" or our JVMTI agent implementations are part of the
45-
* application class path and therefore need to use explicit feature registrarion via a
45+
* application class path and therefore need to use explicit feature registration via a
4646
* native-image.properties file.
4747
*/
4848
@Retention(RetentionPolicy.RUNTIME)

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/feature/AutomaticallyRegisteredImageSingleton.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
Class<?>[] value() default {};
6161

6262
/**
63-
* Register only if all provided supplied booleans are true. If no supplier is registered, the
64-
* singleton is register unconditionally.
63+
* Register only if all provided {@link BooleanSupplier} objects evaluate to true. If there are
64+
* no suppliers, the singleton is registered unconditionally.
6565
*/
6666
Class<? extends BooleanSupplier>[] onlyWith() default {};
6767
}

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/FeatureHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
import com.oracle.svm.core.ClassLoaderSupport;
4545
import com.oracle.svm.core.SubstrateOptions;
4646
import com.oracle.svm.core.annotate.AutomaticFeature;
47+
import com.oracle.svm.core.feature.AutomaticallyRegisteredFeature;
48+
import com.oracle.svm.core.feature.AutomaticallyRegisteredFeatureServiceRegistration;
4749
import com.oracle.svm.core.feature.InternalFeature;
4850
import com.oracle.svm.core.option.APIOption;
4951
import com.oracle.svm.core.option.HostedOptionKey;
5052
import com.oracle.svm.core.option.LocatableMultiOptionValue;
5153
import com.oracle.svm.core.option.OptionUtils;
5254
import com.oracle.svm.core.option.SubstrateOptionsParser;
53-
import com.oracle.svm.core.feature.AutomaticallyRegisteredFeature;
54-
import com.oracle.svm.core.feature.AutomaticallyRegisteredFeatureServiceRegistration;
5555
import com.oracle.svm.core.util.UserError;
5656
import com.oracle.svm.core.util.VMError;
5757
import com.oracle.svm.hosted.FeatureImpl.IsInConfigurationAccessImpl;
@@ -73,7 +73,7 @@ private static List<String> userEnabledFeatures() {
7373
return OptionUtils.flatten(",", Options.Features.getValue());
7474
}
7575

76-
@Option(help = "A comma-separated list of fully qualified Feature implementation classes")//
76+
@Option(help = "Allow using deprecated @AutomaticFeature annotation. If set to false, an error is shown instead of a warning.")//
7777
public static final HostedOptionKey<Boolean> AllowDeprecatedAutomaticFeature = new HostedOptionKey<>(true);
7878
}
7979

0 commit comments

Comments
 (0)