mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable RedundantModifier in checkstyle (#5140)
This commit is contained in:
@@ -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<>();
|
||||
|
||||
@@ -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<>();
|
||||
}
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user