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

@@ -29,7 +29,7 @@ import org.springframework.util.ClassUtils;
*/
public class QTypeContributor {
private final static Log logger = LogFactory.getLog(QTypeContributor.class);
private static final Log logger = LogFactory.getLog(QTypeContributor.class);
public static void contributeEntityPath(Class<?> type, GenerationContext context, @Nullable ClassLoader classLoader) {