Skip to content

Commit 219b3c7

Browse files
[GR-52514] Add FeatureHandler.containsFeature().
PullRequest: graal/17184
2 parents 9170f3b + 0652b20 commit 219b3c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ public void forEachGraalFeature(Consumer<InternalFeature> consumer) {
105105
}
106106
}
107107

108+
public boolean containsFeature(Class<?> c) {
109+
return registeredFeatures.contains(c);
110+
}
111+
108112
@SuppressWarnings("unchecked")
109113
public void registerFeatures(ImageClassLoader loader, DebugContext debug) {
110114
IsInConfigurationAccessImpl access = new IsInConfigurationAccessImpl(this, loader, debug);

0 commit comments

Comments
 (0)