Polish: reorder the modifiers to comply with the Java Language Specification.

This commit is contained in:
igor-suhorukov
2018-03-08 19:36:00 +03:00
committed by Juergen Hoeller
parent a02aafe5fe
commit 0f7485b01d
50 changed files with 124 additions and 124 deletions

View File

@@ -205,7 +205,7 @@ public abstract class ConvertingEncoderDecoderSupport<T, M> {
* to Spring's conversion service. See {@link ConvertingEncoderDecoderSupport} for details.
* @param <T> the type that this Encoder can convert to
*/
public static abstract class BinaryEncoder<T> extends ConvertingEncoderDecoderSupport<T, ByteBuffer>
public abstract static class BinaryEncoder<T> extends ConvertingEncoderDecoderSupport<T, ByteBuffer>
implements Encoder.Binary<T> {
}
@@ -215,7 +215,7 @@ public abstract class ConvertingEncoderDecoderSupport<T, M> {
* to Spring's conversion service. See {@link ConvertingEncoderDecoderSupport} for details.
* @param <T> the type that this Decoder can convert from
*/
public static abstract class BinaryDecoder<T> extends ConvertingEncoderDecoderSupport<T, ByteBuffer>
public abstract static class BinaryDecoder<T> extends ConvertingEncoderDecoderSupport<T, ByteBuffer>
implements Decoder.Binary<T> {
}
@@ -226,7 +226,7 @@ public abstract class ConvertingEncoderDecoderSupport<T, M> {
* details.
* @param <T> the type that this Encoder can convert to
*/
public static abstract class TextEncoder<T> extends ConvertingEncoderDecoderSupport<T, String>
public abstract static class TextEncoder<T> extends ConvertingEncoderDecoderSupport<T, String>
implements Encoder.Text<T> {
}
@@ -236,7 +236,7 @@ public abstract class ConvertingEncoderDecoderSupport<T, M> {
* to Spring's conversion service. See {@link ConvertingEncoderDecoderSupport} for details.
* @param <T> the type that this Decoder can convert from
*/
public static abstract class TextDecoder<T> extends ConvertingEncoderDecoderSupport<T, String>
public abstract static class TextDecoder<T> extends ConvertingEncoderDecoderSupport<T, String>
implements Decoder.Text<T> {
}

View File

@@ -47,7 +47,7 @@ import org.springframework.web.socket.server.HandshakeFailureException;
*/
public class WebSphereRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy {
private final static Method upgradeMethod;
private static final Method upgradeMethod;
static {
ClassLoader loader = WebSphereRequestUpgradeStrategy.class.getClassLoader();

View File

@@ -152,7 +152,7 @@ public class RestTemplateXhrTransport extends AbstractXhrTransport {
/**
* A simple ResponseExtractor that reads the body into a String.
*/
private final static ResponseExtractor<ResponseEntity<String>> textResponseExtractor =
private static final ResponseExtractor<ResponseEntity<String>> textResponseExtractor =
response -> {
String body = StreamUtils.copyToString(response.getBody(), SockJsFrame.CHARSET);
return ResponseEntity.status(response.getRawStatusCode()).headers(response.getHeaders()).body(body);