Fix misordered modifiers 'final static'.
Per the Java Language Specification (Java 17; https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.3.1), 'static' should appear before 'final'. This is also consistent with source code analysis tools, like Checkstyle, rules: https://checkstyle.sourceforge.io/apidocs/com/puppycrawl/tools/checkstyle/checks/modifier/ModifierOrderCheck.html. Fixes #2881.
This commit is contained in:
committed by
Oliver Drotbohm
parent
2bfa58d329
commit
91093780dc
@@ -215,7 +215,7 @@ public class ClassGeneratingPropertyAccessorFactory implements PersistentPropert
|
||||
|
||||
/**
|
||||
* Generates {@link PersistentPropertyAccessor} classes to access properties of a {@link PersistentEntity}. This code
|
||||
* uses {@code private final static} held method handles which perform about the speed of native method invocations
|
||||
* uses {@code private static final} held method handles which perform about the speed of native method invocations
|
||||
* for property access which is restricted due to Java rules (such as private fields/methods) or private inner
|
||||
* classes. All other scoped members (package default, protected and public) are accessed via field or property access
|
||||
* to bypass reflection overhead. That's only possible if the type and the member access is possible from another
|
||||
|
||||
Reference in New Issue
Block a user