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

@@ -31,7 +31,7 @@ import org.springframework.util.ObjectUtils;
*/
public final class Range<T> {
private final static Range<?> UNBOUNDED = Range.of(Bound.unbounded(), Bound.unbounded());
private static final Range<?> UNBOUNDED = Range.of(Bound.unbounded(), Bound.unbounded());
/**
* The lower bound of the range.