Browse Source

Fix checkstyle.

reset
Olga MaciaszekSharma 1 year ago
parent
commit
835b9b5746
  1. 4
      spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/encoding/Invoices.java
  2. 6
      spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/test/EqualsAndHashCodeAssert.java
  3. 1
      src/checkstyle/checkstyle-suppressions.xml

4
spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/encoding/Invoices.java

@ -30,6 +30,10 @@ import org.springframework.cloud.openfeign.encoding.app.domain.Invoice;
*/ */
final class Invoices { final class Invoices {
private Invoices() {
throw new IllegalStateException("Should not instantiate utility class");
}
public static List<Invoice> createInvoiceList(int count) { public static List<Invoice> createInvoiceList(int count) {
final List<Invoice> invoices = new ArrayList<>(); final List<Invoice> invoices = new ArrayList<>();
for (int ind = 0; ind < count; ind++) { for (int ind = 0; ind < count; ind++) {

6
spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/test/EqualsAndHashCodeAssert.java

@ -25,7 +25,11 @@ import static org.assertj.core.api.Assertions.assertThat;
* *
* @author Jonatan Ivanov * @author Jonatan Ivanov
*/ */
public class EqualsAndHashCodeAssert { public final class EqualsAndHashCodeAssert {
private EqualsAndHashCodeAssert() {
throw new IllegalStateException("Should not instantiate utility class");
}
/** /**
* Checks if equals is reflexive: for any non-null reference value x, x.equals(x) * Checks if equals is reflexive: for any non-null reference value x, x.equals(x)

1
src/checkstyle/checkstyle-suppressions.xml

@ -13,6 +13,7 @@
<suppress files=".*ProtobufTest.*" checks="LineLengthCheck" /> <suppress files=".*ProtobufTest.*" checks="LineLengthCheck" />
<suppress files=".*Hello.*" checks="RedundantModifier"/> <suppress files=".*Hello.*" checks="RedundantModifier"/>
<suppress files=".*test.*" checks="JavadocStyle"/> <suppress files=".*test.*" checks="JavadocStyle"/>
<suppress files=".*test.*" checks="JavadocVariable"/>
<!-- Important --> <!-- Important -->
<suppress files=".*HttpEncoding.*" checks="InterfaceIsTypeCheck" /> <suppress files=".*HttpEncoding.*" checks="InterfaceIsTypeCheck" />
</suppressions> </suppressions>

Loading…
Cancel
Save