style: enable FinalClass in checkstyle (#5154)

This commit is contained in:
Godwill Christopher
2024-05-11 00:50:05 -06:00
committed by GitHub
parent 52f15b2b08
commit bbe4a025df
12 changed files with 12 additions and 12 deletions

View File

@ -13,7 +13,7 @@ public class Bag<Element> implements Iterable<Element> {
private Node<Element> firstElement; // first element of the bag
private int size; // size of bag
private static class Node<Element> {
private static final class Node<Element> {
private Element content;
private Node<Element> nextElement;