Fix misordered 'final static' modifiers.
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. Original pull request: #2640
This commit is contained in:
@@ -34,7 +34,7 @@ import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
|
||||
*/
|
||||
public abstract class SettingsUtils {
|
||||
|
||||
private final static Properties DEFAULTS = new Properties();
|
||||
private static final Properties DEFAULTS = new Properties();
|
||||
private static final Properties SETTINGS;
|
||||
|
||||
static {
|
||||
|
||||
@@ -54,7 +54,7 @@ import org.springframework.data.redis.test.extension.parametrized.ParameterizedR
|
||||
@MethodSource("testParams")
|
||||
public class LegacyRedisCacheTests {
|
||||
|
||||
private final static String CACHE_NAME = "testCache";
|
||||
private static final String CACHE_NAME = "testCache";
|
||||
private ObjectFactory<Object> keyFactory;
|
||||
private ObjectFactory<Object> valueFactory;
|
||||
private RedisConnectionFactory connectionFactory;
|
||||
|
||||
@@ -25,7 +25,7 @@ import com.thoughtworks.xstream.security.AnyTypePermission;
|
||||
*/
|
||||
public final class XstreamOxmSerializerSingleton {
|
||||
|
||||
private final static XstreamOxmSerializerSingleton instance = new XstreamOxmSerializerSingleton();
|
||||
private static final XstreamOxmSerializerSingleton instance = new XstreamOxmSerializerSingleton();
|
||||
|
||||
private final OxmSerializer serializer;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.data.redis.ConnectionFactoryTracker.Managed;
|
||||
*/
|
||||
class MethodArgumentsProvider implements ArgumentsProvider, AnnotationConsumer<MethodSource> {
|
||||
|
||||
private final static Namespace NAMESPACE = Namespace.create(MethodArgumentsProvider.class);
|
||||
private static final Namespace NAMESPACE = Namespace.create(MethodArgumentsProvider.class);
|
||||
private String[] methodNames = new String[0];
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user