style: enable HideUtilityClassConstructor in checkstyle (#5147)

This commit is contained in:
Piotr Idzik
2024-05-08 08:58:29 +02:00
committed by GitHub
parent 030bb91d05
commit d3bb691f59
285 changed files with 895 additions and 339 deletions

View File

@ -8,7 +8,9 @@ import java.util.Stack;
*
* @author Ishika Agarwal, 2021
*/
public class ReverseStack {
public final class ReverseStack {
private ReverseStack() {
}
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {

View File

@ -6,7 +6,9 @@ import java.util.NoSuchElementException;
* @author Varun Upadhyay (https://github.com/varunu28)
*/
// An implementation of a Stack using a Linked List
class StackOfLinkedList {
final class StackOfLinkedList {
private StackOfLinkedList() {
}
public static void main(String[] args) {
LinkedListStack stack = new LinkedListStack();