Skip to content

Commit 4abfacc

Browse files
committed
Fixing checkstyle errors
1 parent d6c07aa commit 4abfacc

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/Input.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public String toString() {
225225
+ super.toString();
226226
}
227227

228-
private class ClientPatternValueDslProperty extends PatternValueDslProperty<ClientDslProperty> {
228+
private static final class ClientPatternValueDslProperty extends PatternValueDslProperty<ClientDslProperty> {
229229

230230
@Override
231231
protected ClientDslProperty createProperty(Pattern pattern, Object generatedValue) {

specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/OutputMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public String toString() {
331331
+ ", \n\tassertThat=" + assertThat + ", \n\tbodyMatchers=" + bodyMatchers + "} \n\t" + super.toString();
332332
}
333333

334-
private class ServerPatternValueDslProperty extends PatternValueDslProperty<ServerDslProperty> {
334+
private static final class ServerPatternValueDslProperty extends PatternValueDslProperty<ServerDslProperty> {
335335

336336
@Override
337337
protected ServerDslProperty createProperty(Pattern pattern, Object generatedValue) {

specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ private class ClientRequest extends Request {
786786

787787
}
788788

789-
private class ClientPatternValueDslProperty extends PatternValueDslProperty<ClientDslProperty> {
789+
private static final class ClientPatternValueDslProperty extends PatternValueDslProperty<ClientDslProperty> {
790790

791791
@Override
792792
protected ClientDslProperty createProperty(Pattern pattern, Object generatedValue) {

specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/Response.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ private class ClientResponse extends Response {
778778

779779
}
780780

781-
private class ServerPatternValueDslProperty extends PatternValueDslProperty<ServerDslProperty> {
781+
private static final class ServerPatternValueDslProperty extends PatternValueDslProperty<ServerDslProperty> {
782782

783783
@Override
784784
protected ServerDslProperty createProperty(Pattern pattern, Object generatedValue) {

spring-cloud-contract-verifier/src/main/java/org/springframework/cloud/contract/verifier/config/ContractVerifierConfigProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ public class ContractVerifierConfigProperties {
149149
* A way to override any base class mappings. The keys are regular expressions on the
150150
* package name of the contract and the values FQN to a base class for that given
151151
* expression.
152-
* </p>
152+
*
153153
* Example of a mapping
154-
* </p>
154+
*
155155
* {@code .*.com.example.v1..*} -> {@code com.example.SomeBaseClass}
156-
* </p>
156+
*
157157
* When a contract's package matches the provided regular expression then extending
158158
* class will be the one provided in the map - in this case
159159
* {@code com.example.SomeBaseClass}

spring-cloud-contract-verifier/src/main/java/org/springframework/cloud/contract/verifier/util/NamesUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static String convertIllegalMethodNameChars(String methodName) {
186186
return result.replaceAll("[^a-zA-Z_$0-9]", "_");
187187
}
188188

189-
private static class InvalidFolderRenamer extends SimpleFileVisitor<Path> {
189+
private static final class InvalidFolderRenamer extends SimpleFileVisitor<Path> {
190190

191191
private final Deque<FileAndNewName> filesToRename = new ArrayDeque<FileAndNewName>();
192192

spring-cloud-contract-verifier/src/test/java/org/springframework/cloud/contract/verifier/messaging/boot/AutoConfigureMessageVerifierTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void shouldConfigureForNoOpWhenMissingImplementation() {
5050
}
5151

5252
@AutoConfigureMessageVerifier
53-
private static class Configuration {
53+
private static final class Configuration {
5454

5555
}
5656

spring-cloud-contract-wiremock/src/main/java/org/springframework/cloud/contract/wiremock/WireMockRestServiceServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ private MediaType contentType(ResponseDefinition response) {
405405
return value == null ? MediaType.TEXT_PLAIN : MediaType.valueOf(value);
406406
}
407407

408-
private static class StubMappingComparator implements Comparator<StubMapping> {
408+
private static final class StubMappingComparator implements Comparator<StubMapping> {
409409

410410
@Override
411411
public int compare(StubMapping one, StubMapping two) {

0 commit comments

Comments
 (0)