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:
Thach Le
2023-07-18 20:22:47 +07:00
committed by Oliver Drotbohm
parent 2bfa58d329
commit 91093780dc
11 changed files with 14 additions and 14 deletions

View File

@@ -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