From 16d557a109468b06c7acb6157a2ff4618ca8027e Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 12 May 2019 10:46:11 -0400 Subject: [PATCH] Fix checkstyle --- .../com/velocitypowered/proxy/util/collect/CappedSet.java | 3 ++- .../velocitypowered/proxy/util/collect/CappedSetTest.java | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java b/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java index eeacda6a0..6b3453134 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/collect/CappedSet.java @@ -38,7 +38,8 @@ public class CappedSet extends ForwardingSet { @Override public boolean add(T element) { 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); return false; } diff --git a/proxy/src/test/java/com/velocitypowered/proxy/util/collect/CappedSetTest.java b/proxy/src/test/java/com/velocitypowered/proxy/util/collect/CappedSetTest.java index 8444961d0..2315c82c4 100644 --- a/proxy/src/test/java/com/velocitypowered/proxy/util/collect/CappedSetTest.java +++ b/proxy/src/test/java/com/velocitypowered/proxy/util/collect/CappedSetTest.java @@ -1,6 +1,9 @@ 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 java.util.Collection;