Fix checkstyle method order issues
Fix checkstyle issues with method ordering following the spring-javaformat upgrade. See gh-13932
This commit is contained in:
@@ -382,11 +382,6 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.key.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
@@ -398,6 +393,11 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
|
||||
return this.key.equals(((OperationKey) obj).key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.key.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.description.get();
|
||||
|
||||
@@ -88,32 +88,6 @@ public final class WebOperationRequestPredicate {
|
||||
return Collections.unmodifiableCollection(this.produces);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder result = new StringBuilder(
|
||||
this.httpMethod + " to path '" + this.path + "'");
|
||||
if (!CollectionUtils.isEmpty(this.consumes)) {
|
||||
result.append(" consumes: "
|
||||
+ StringUtils.collectionToCommaDelimitedString(this.consumes));
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(this.produces)) {
|
||||
result.append(" produces: "
|
||||
+ StringUtils.collectionToCommaDelimitedString(this.produces));
|
||||
}
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + this.consumes.hashCode();
|
||||
result = prime * result + this.httpMethod.hashCode();
|
||||
result = prime * result + this.canonicalPath.hashCode();
|
||||
result = prime * result + this.produces.hashCode();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
@@ -131,4 +105,30 @@ public final class WebOperationRequestPredicate {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + this.consumes.hashCode();
|
||||
result = prime * result + this.httpMethod.hashCode();
|
||||
result = prime * result + this.canonicalPath.hashCode();
|
||||
result = prime * result + this.produces.hashCode();
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder result = new StringBuilder(
|
||||
this.httpMethod + " to path '" + this.path + "'");
|
||||
if (!CollectionUtils.isEmpty(this.consumes)) {
|
||||
result.append(" consumes: "
|
||||
+ StringUtils.collectionToCommaDelimitedString(this.consumes));
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(this.produces)) {
|
||||
result.append(" produces: "
|
||||
+ StringUtils.collectionToCommaDelimitedString(this.produces));
|
||||
}
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-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.
|
||||
@@ -102,16 +102,6 @@ public final class Status {
|
||||
return this.description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.code.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == this) {
|
||||
@@ -123,4 +113,14 @@ public final class Status {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.code.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user