Fix checkstyle

This commit is contained in:
Andrew Steinborn
2019-05-12 10:46:11 -04:00
parent b5fcf685be
commit 16d557a109
2 changed files with 6 additions and 2 deletions

View File

@@ -38,7 +38,8 @@ public class CappedSet<T> extends ForwardingSet<T> {
@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;
}