mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable FinalClass in checkstyle (#5154)
This commit is contained in:
committed by
GitHub
parent
52f15b2b08
commit
bbe4a025df
@@ -16,7 +16,7 @@ import java.util.Scanner;
|
||||
*/
|
||||
public class GenericTree {
|
||||
|
||||
private static class Node {
|
||||
private static final class Node {
|
||||
|
||||
int data;
|
||||
ArrayList<Node> child = new ArrayList<>();
|
||||
|
||||
@@ -26,7 +26,7 @@ import java.util.ArrayList;
|
||||
|
||||
public class TreeRandomNode {
|
||||
|
||||
private class Node {
|
||||
private final class Node {
|
||||
|
||||
int item;
|
||||
Node left, right;
|
||||
|
||||
Reference in New Issue
Block a user