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

@@ -26,7 +26,7 @@ class GCounter {
*
* @param n The number of nodes in the cluster.
*/
public GCounter(int myId, int n) {
GCounter(int myId, int n) {
this.myId = myId;
this.n = n;
this.P = new HashMap<>();

View File

@@ -26,7 +26,7 @@ class Element {
* @param timestamp The timestamp associated with the element.
* @param bias The bias of the element (ADDS or REMOVALS).
*/
public Element(String key, int timestamp, Bias bias) {
Element(String key, int timestamp, Bias bias) {
this.key = key;
this.timestamp = timestamp;
this.bias = bias;
@@ -49,7 +49,7 @@ class LWWElementSet {
/**
* Constructs an empty LWWElementSet.
*/
public LWWElementSet() {
LWWElementSet() {
this.addSet = new HashMap<>();
this.removeSet = new HashMap<>();
}

View File

@@ -28,7 +28,7 @@ class PNCounter {
* @param myId The identifier of the current node.
* @param n The number of nodes in the cluster.
*/
public PNCounter(int myId, int n) {
PNCounter(int myId, int n) {
this.myId = myId;
this.n = n;
this.P = new HashMap<>();