Skip to content

Commit ee08830

Browse files
committed
HHH-15555 Renaming GraalVMStaticAutofeature to GraalVMStaticFeature
1 parent 41bbd5d commit ee08830

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

hibernate-graalvm/src/main/java/org/hibernate/graalvm/internal/GraalVMStaticAutofeature.java renamed to hibernate-graalvm/src/main/java/org/hibernate/graalvm/internal/GraalVMStaticFeature.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* </p>
3434
* @author Sanne Grinovero
3535
*/
36-
public class GraalVMStaticAutofeature implements Feature {
36+
public class GraalVMStaticFeature implements Feature {
3737

3838
public void beforeAnalysis(Feature.BeforeAnalysisAccess before) {
3939
final Class<?>[] needsHavingSimpleConstructors = StaticClassLists.typesNeedingDefaultConstructorAccessible();
@@ -54,8 +54,8 @@ public void beforeAnalysis(Feature.BeforeAnalysisAccess before) {
5454
RuntimeReflection.register( executables.toArray(new Executable[0]) );
5555
}
5656

57-
@Override
57+
//@Override Method overridden in later API versions of GraalVM
5858
public String getDescription() {
59-
return "Hibernate ORM GraalVM static reflection registration";
59+
return "Hibernate ORM's static reflection registrations for GraalVM";
6060
}
6161
}

hibernate-graalvm/src/main/java/org/hibernate/graalvm/internal/QueryParsingSupport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* This registers all ANTLR parser nodes for reflection, something that is necessary
2222
* as the HQL parser's inner workings are based on reflection.
23-
* This is different than the "static" registrations of {@link GraalVMStaticAutofeature}
23+
* This is different than the "static" registrations of {@link GraalVMStaticFeature}
2424
* as we only register these if the HQL parser is actually reachable: some particularly
2525
* simple applications might not need dynamic queries being expressed in string form,
2626
* and for such cases the reflective registrations can be skipped.
@@ -49,9 +49,9 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
4949
access.registerReachabilityHandler(this::enableHQLSupport, parserClazz);
5050
}
5151

52-
@Override
52+
//@Override Method overridden in later API versions of GraalVM
5353
public String getDescription() {
54-
return "Hibernate ORM HQL Parser Support";
54+
return "Hibernate ORM's support for HQL Parser in GraalVM";
5555
}
5656

5757
@AllowSysOut

0 commit comments

Comments
 (0)