Skip to content

Commit

Permalink
HHH-15555 Renaming GraalVMStaticAutofeature to GraalVMStaticFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Sep 27, 2022
1 parent 41bbd5d commit ee08830
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* </p>
* @author Sanne Grinovero
*/
public class GraalVMStaticAutofeature implements Feature {
public class GraalVMStaticFeature implements Feature {

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

@Override
//@Override Method overridden in later API versions of GraalVM
public String getDescription() {
return "Hibernate ORM GraalVM static reflection registration";
return "Hibernate ORM's static reflection registrations for GraalVM";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* This registers all ANTLR parser nodes for reflection, something that is necessary
* as the HQL parser's inner workings are based on reflection.
* This is different than the "static" registrations of {@link GraalVMStaticAutofeature}
* This is different than the "static" registrations of {@link GraalVMStaticFeature}
* as we only register these if the HQL parser is actually reachable: some particularly
* simple applications might not need dynamic queries being expressed in string form,
* and for such cases the reflective registrations can be skipped.
Expand Down Expand Up @@ -49,9 +49,9 @@ public void beforeAnalysis(BeforeAnalysisAccess access) {
access.registerReachabilityHandler(this::enableHQLSupport, parserClazz);
}

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

@AllowSysOut
Expand Down

0 comments on commit ee08830

Please sign in to comment.