Fix checkstyle.

This commit is contained in:
Olga MaciaszekSharma
2023-09-18 15:09:31 +02:00
parent b80680e17d
commit 835b9b5746
3 changed files with 10 additions and 1 deletions

View File

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

View File

@@ -25,7 +25,11 @@ import static org.assertj.core.api.Assertions.assertThat;
*
* @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)

View File

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