Skip to content

Commit 1402ab9

Browse files
committed
chore: remove redundant final
1 parent 99e6f97 commit 1402ab9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/datastructures/trees/SplayTree.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private Node rotateLeft(Node x) {
177177
* @param key The key to splay around.
178178
* @return The new root of the splayed subtree.
179179
*/
180-
private final Node splay(Node root, int key) {
180+
private Node splay(Node root, int key) {
181181
if (root == null || root.key == key) {
182182
return root;
183183
}
@@ -215,7 +215,7 @@ private final Node splay(Node root, int key) {
215215
}
216216
}
217217

218-
private final Node insertRec(Node root, int key) {
218+
private Node insertRec(Node root, int key) {
219219
if (root == null) {
220220
return new Node(key);
221221
}

0 commit comments

Comments
 (0)