Use consistent class design
Update all classes so that inner classes are always last. Also ensure that utility classes are always final and have a private constructor and make exceptions final whenever possible. Issue: SPR-16968
This commit is contained in:
committed by
Juergen Hoeller
parent
0ad0f341bd
commit
eeebd51f57
@@ -78,7 +78,7 @@ public class DestinationVariableMethodArgumentResolver extends AbstractNamedValu
|
||||
}
|
||||
|
||||
|
||||
private static class DestinationVariableNamedValueInfo extends NamedValueInfo {
|
||||
private static final class DestinationVariableNamedValueInfo extends NamedValueInfo {
|
||||
|
||||
private DestinationVariableNamedValueInfo(DestinationVariable annotation) {
|
||||
super(annotation.value(), true, ValueConstants.DEFAULT_NONE);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2014 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -106,7 +106,7 @@ public class HeaderMethodArgumentResolver extends AbstractNamedValueMethodArgume
|
||||
}
|
||||
|
||||
|
||||
private static class HeaderNamedValueInfo extends NamedValueInfo {
|
||||
private static final class HeaderNamedValueInfo extends NamedValueInfo {
|
||||
|
||||
private HeaderNamedValueInfo(Header annotation) {
|
||||
super(annotation.name(), annotation.required(), annotation.defaultValue());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,7 @@ import org.springframework.validation.ObjectError;
|
||||
@SuppressWarnings("serial")
|
||||
public class MethodArgumentNotValidException extends MethodArgumentResolutionException {
|
||||
|
||||
private BindingResult bindingResult;
|
||||
private final BindingResult bindingResult;
|
||||
|
||||
|
||||
/**
|
||||
@@ -42,6 +42,7 @@ public class MethodArgumentNotValidException extends MethodArgumentResolutionExc
|
||||
*/
|
||||
public MethodArgumentNotValidException(Message<?> message, MethodParameter parameter) {
|
||||
super(message, parameter);
|
||||
this.bindingResult = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -577,7 +577,7 @@ public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
|
||||
private volatile boolean isStompConnected;
|
||||
|
||||
|
||||
private StompConnectionHandler(String sessionId, StompHeaderAccessor connectHeaders) {
|
||||
protected StompConnectionHandler(String sessionId, StompHeaderAccessor connectHeaders) {
|
||||
this(sessionId, connectHeaders, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user