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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user