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:
parent
8046febbdf
commit
2d246f7647
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue