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

@ -17,7 +17,7 @@ public class LFUCache<K, V> {
private Node previous;
private Node next;
public Node(K key, V value, int frequency) {
Node(K key, V value, int frequency) {
this.key = key;
this.value = value;
this.frequency = frequency;

View File

@ -126,10 +126,10 @@ public class LRUCache<K, V> {
private I key;
private J value;
public Entry() {
Entry() {
}
public Entry(Entry<I, J> preEntry, Entry<I, J> nextEntry, I key, J value) {
Entry(Entry<I, J> preEntry, Entry<I, J> nextEntry, I key, J value) {
this.preEntry = preEntry;
this.nextEntry = nextEntry;
this.key = key;

View File

@ -124,10 +124,10 @@ public class MRUCache<K, V> {
private I key;
private J value;
public Entry() {
Entry() {
}
public Entry(Entry<I, J> preEntry, Entry<I, J> nextEntry, I key, J value) {
Entry(Entry<I, J> preEntry, Entry<I, J> nextEntry, I key, J value) {
this.preEntry = preEntry;
this.nextEntry = nextEntry;
this.key = key;