From b0620242299e0510aaca0606ddfe8b9812803ade Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Mon, 17 Aug 2015 22:42:21 +0200 Subject: [PATCH] Mark util class as final in test code. #1555 Fixes `ClassWithOnlyPrivateConstructors` inspection violation in test code. Description: >Reports classes with only private constructors that are not extended by any nested class. Such classes can not be extended and should be declared final. --- src/test/java/com/puppycrawl/tools/checkstyle/TestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/TestUtils.java b/src/test/java/com/puppycrawl/tools/checkstyle/TestUtils.java index 62166bb61..d82fb8986 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/TestUtils.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/TestUtils.java @@ -24,7 +24,7 @@ import java.lang.reflect.Modifier; import org.junit.Assert; -public class TestUtils { +public final class TestUtils { private TestUtils() { }