Skip to content

Commit 835b9b5

Browse files
committed
Fix checkstyle.
1 parent b80680e commit 835b9b5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
*/
3131
final class Invoices {
3232

33+
private Invoices() {
34+
throw new IllegalStateException("Should not instantiate utility class");
35+
}
36+
3337
public static List<Invoice> createInvoiceList(int count) {
3438
final List<Invoice> invoices = new ArrayList<>();
3539
for (int ind = 0; ind < count; ind++) {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
*
2626
* @author Jonatan Ivanov
2727
*/
28-
public class EqualsAndHashCodeAssert {
28+
public final class EqualsAndHashCodeAssert {
29+
30+
private EqualsAndHashCodeAssert() {
31+
throw new IllegalStateException("Should not instantiate utility class");
32+
}
2933

3034
/**
3135
* Checks if equals is reflexive: for any non-null reference value x, x.equals(x)

src/checkstyle/checkstyle-suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<suppress files=".*ProtobufTest.*" checks="LineLengthCheck" />
1414
<suppress files=".*Hello.*" checks="RedundantModifier"/>
1515
<suppress files=".*test.*" checks="JavadocStyle"/>
16+
<suppress files=".*test.*" checks="JavadocVariable"/>
1617
<!-- Important -->
1718
<suppress files=".*HttpEncoding.*" checks="InterfaceIsTypeCheck" />
1819
</suppressions>

0 commit comments

Comments
 (0)