style: enable RedundantModifier in checkstyle (#5140)

This commit is contained in:
Piotr Idzik
2024-05-03 21:10:49 +02:00
committed by GitHub
parent 1e2d7e9431
commit b3903f5768
38 changed files with 59 additions and 59 deletions

View File

@@ -47,7 +47,7 @@ public class BinaryTree {
*
* @param value Value to put in the node
*/
public Node(int value) {
Node(int value) {
data = value;
left = null;
right = null;

View File

@@ -68,7 +68,7 @@ public class KDTree {
return coordinates.length;
}
public Point(int[] coordinates) {
Point(int[] coordinates) {
this.coordinates = coordinates;
}

View File

@@ -15,7 +15,7 @@ public class LazySegmentTree {
private int lazy; // lazied value that should be added to children nodes
Node left, right; // left and right children
public Node(int start, int end, int value) {
Node(int start, int end, int value) {
this.start = start;
this.end = end;
this.value = value;

View File

@@ -13,7 +13,7 @@ class TreeNode {
TreeNode left, right;
// Constructor
public TreeNode(int key) {
TreeNode(int key) {
this.key = key;
left = right = null;
}
@@ -27,7 +27,7 @@ class QItem {
TreeNode node;
int hd;
public QItem(TreeNode n, int h) {
QItem(TreeNode n, int h) {
node = n;
hd = h;
}
@@ -39,11 +39,11 @@ class Tree {
TreeNode root;
// Constructors
public Tree() {
Tree() {
root = null;
}
public Tree(TreeNode n) {
Tree(TreeNode n) {
root = n;
}

View File

@@ -53,13 +53,13 @@ class NRKTree {
public NRKTree right;
public int data;
public NRKTree(int x) {
NRKTree(int x) {
this.left = null;
this.right = null;
this.data = x;
}
public NRKTree(NRKTree right, NRKTree left, int x) {
NRKTree(NRKTree right, NRKTree left, int x) {
this.left = left;
this.right = right;
this.data = x;