Make class final. #1555

Fixes `NonFinalUtilityClass` inspection violation.

Description:
>Reports utility classes which are not final. Utility classes have all fields and methods declared static. Giving such classes making them final prevents them from being inadvertently subclassed.
This commit is contained in:
Michal Kordas 2015-08-08 11:52:50 +02:00 committed by Roman Ivanov
parent 8046febbdf
commit 2d246f7647
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST;
/**
* Entry point for starting the checkstyle GUI.
*/
public class Main {
public final class Main {
/**
* Main frame
*/