Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 23:30:26 +01:00
Fix checkstyle
Dieser Commit ist enthalten in:
Ursprung
b5fcf685be
Commit
16d557a109
@ -38,7 +38,8 @@ public class CappedSet<T> extends ForwardingSet<T> {
|
|||||||
@Override
|
@Override
|
||||||
public boolean add(T element) {
|
public boolean add(T element) {
|
||||||
if (this.delegate.size() >= upperSize) {
|
if (this.delegate.size() >= upperSize) {
|
||||||
Preconditions.checkState(this.delegate.contains(element), "collection is too large (%s >= %s)",
|
Preconditions.checkState(this.delegate.contains(element),
|
||||||
|
"collection is too large (%s >= %s)",
|
||||||
this.delegate.size(), this.upperSize);
|
this.delegate.size(), this.upperSize);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
package com.velocitypowered.proxy.util.collect;
|
package com.velocitypowered.proxy.util.collect;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren