Order modifiers to align with JLS
This commit also applies Checkstyle ModifierOrder to enforce it. See gh-31368
This commit is contained in:
committed by
Stéphane Nicoll
parent
f60791a8e2
commit
919faa2ce2
@@ -44,7 +44,7 @@ class DefaultClientRequestObservationConventionTests {
|
||||
|
||||
private final MockClientHttpRequest request = new MockClientHttpRequest(HttpMethod.GET, "/test");
|
||||
|
||||
private final static MockClientHttpResponse response = new MockClientHttpResponse();
|
||||
private static final MockClientHttpResponse response = new MockClientHttpResponse();
|
||||
|
||||
private final DefaultClientRequestObservationConvention observationConvention = new DefaultClientRequestObservationConvention();
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ import static org.springframework.http.MediaType.APPLICATION_JSON;
|
||||
*/
|
||||
public class Jackson2CborDecoderTests extends AbstractDecoderTests<Jackson2CborDecoder> {
|
||||
|
||||
private final static MimeType CBOR_MIME_TYPE = new MimeType("application", "cbor");
|
||||
private static final MimeType CBOR_MIME_TYPE = new MimeType("application", "cbor");
|
||||
|
||||
private Pojo pojo1 = new Pojo("f1", "b1");
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ import static org.springframework.http.MediaType.APPLICATION_XML;
|
||||
*/
|
||||
public class Jackson2CborEncoderTests extends AbstractLeakCheckingTests {
|
||||
|
||||
private final static MimeType CBOR_MIME_TYPE = new MimeType("application", "cbor");
|
||||
private static final MimeType CBOR_MIME_TYPE = new MimeType("application", "cbor");
|
||||
|
||||
private final ObjectMapper mapper = Jackson2ObjectMapperBuilder.cbor().build();
|
||||
|
||||
|
||||
@@ -41,8 +41,8 @@ import static org.springframework.http.MediaType.APPLICATION_JSON;
|
||||
*/
|
||||
public class Jackson2SmileDecoderTests extends AbstractDecoderTests<Jackson2SmileDecoder> {
|
||||
|
||||
private final static MimeType SMILE_MIME_TYPE = new MimeType("application", "x-jackson-smile");
|
||||
private final static MimeType STREAM_SMILE_MIME_TYPE = new MimeType("application", "stream+x-jackson-smile");
|
||||
private static final MimeType SMILE_MIME_TYPE = new MimeType("application", "x-jackson-smile");
|
||||
private static final MimeType STREAM_SMILE_MIME_TYPE = new MimeType("application", "stream+x-jackson-smile");
|
||||
|
||||
private Pojo pojo1 = new Pojo("f1", "b1");
|
||||
|
||||
|
||||
@@ -48,8 +48,8 @@ import static org.springframework.http.MediaType.APPLICATION_XML;
|
||||
*/
|
||||
public class Jackson2SmileEncoderTests extends AbstractEncoderTests<Jackson2SmileEncoder> {
|
||||
|
||||
private final static MimeType SMILE_MIME_TYPE = new MimeType("application", "x-jackson-smile");
|
||||
private final static MimeType STREAM_SMILE_MIME_TYPE = new MimeType("application", "stream+x-jackson-smile");
|
||||
private static final MimeType SMILE_MIME_TYPE = new MimeType("application", "x-jackson-smile");
|
||||
private static final MimeType STREAM_SMILE_MIME_TYPE = new MimeType("application", "stream+x-jackson-smile");
|
||||
|
||||
private final Jackson2SmileEncoder encoder = new Jackson2SmileEncoder();
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ import static org.springframework.core.ResolvableType.forClass;
|
||||
*/
|
||||
public class ProtobufEncoderTests extends AbstractEncoderTests<ProtobufEncoder> {
|
||||
|
||||
private final static MimeType PROTOBUF_MIME_TYPE = new MimeType("application", "x-protobuf");
|
||||
private static final MimeType PROTOBUF_MIME_TYPE = new MimeType("application", "x-protobuf");
|
||||
|
||||
private Msg msg1 =
|
||||
Msg.newBuilder().setFoo("Foo").setBlah(SecondMsg.newBuilder().setBlah(123).build()).build();
|
||||
|
||||
@@ -272,7 +272,7 @@ public class Jaxb2XmlDecoderTests extends AbstractLeakCheckingTests {
|
||||
|
||||
@jakarta.xml.bind.annotation.XmlType
|
||||
@XmlSeeAlso(Child.class)
|
||||
public static abstract class Parent {
|
||||
public abstract static class Parent {
|
||||
|
||||
private String foo;
|
||||
|
||||
|
||||
@@ -333,7 +333,7 @@ public class ControllerAdviceBeanTests {
|
||||
|
||||
static class ImplementationController implements ControllerInterface {}
|
||||
|
||||
static abstract class AbstractController {}
|
||||
abstract static class AbstractController {}
|
||||
|
||||
static class InheritanceController extends AbstractController {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user