Remove trailing white spaces on all lines.

This commit is contained in:
Gary Gregory 2019-12-18 15:28:39 -05:00
parent c7701470fe
commit 45763ba694
9 changed files with 15 additions and 15 deletions

View File

@ -1190,7 +1190,7 @@ public class IteratorUtils {
*/
public static <E> E forEachButLast(final Iterator<E> iterator, final Closure<? super E> closure) {
Objects.requireNonNull(closure, "closure");
if (iterator != null) {
while (iterator.hasNext()) {
final E element = iterator.next();

View File

@ -159,7 +159,7 @@ public class SetUtils {
public static <E> SetView<E> disjunction(final Set<? extends E> setA, final Set<? extends E> setB) {
Objects.requireNonNull(setA, "setA");
Objects.requireNonNull(setB, "setB");
final SetView<E> aMinusB = difference(setA, setB);
final SetView<E> bMinusA = difference(setB, setA);

View File

@ -39,7 +39,7 @@ public class TransformedCollectionTest extends AbstractCollectionTest<Object> {
return Integer.valueOf((String) input);
}
}
private static class ToLowerCase implements Transformer<Object, Object> {
@Override
public Object transform(final Object input) {

View File

@ -138,7 +138,7 @@ public class DefaultedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
} catch (NullPointerException e) {
// Expected
}
try {
DefaultedMap.defaultedMap((Map<K, V>) null, nullFactory);
fail("Expecting NullPointerException");
@ -152,7 +152,7 @@ public class DefaultedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
} catch (NullPointerException e) {
// Expected
}
try {
DefaultedMap.defaultedMap((Map<K, V>) null, nullTransformer);
fail("Expecting NullPointerException");

View File

@ -45,9 +45,9 @@ public class LazySortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
return arg1.compareTo(arg0);
}
}
private static final Factory<Integer> oneFactory = FactoryUtils.constantFactory(1);
protected final Comparator<String> reverseStringComparator = new ReverseStringComparator();
public LazySortedMapTest(final String testName) {
@ -105,7 +105,7 @@ public class LazySortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
assertTrue("natural order, so comparator should be null",
c == null);
}
public void testReverseSortOrder() {
final SortedMap<String, Number> map = lazySortedMap(new ConcurrentSkipListMap<String, Number>(reverseStringComparator), oneFactory);
map.put("A", 5);

View File

@ -41,11 +41,11 @@ public class PredicatedSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
return ((String) arg1).compareTo((String)arg0);
}
}
protected static final Predicate<Object> truePredicate = TruePredicate.truePredicate();
protected static final Predicate<Object> testPredicate = o -> o instanceof String;
protected final Comparator<K> reverseStringComparator = new ReverseStringComparator();
public PredicatedSortedMapTest(final String testName) {
@ -66,7 +66,7 @@ public class PredicatedSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
public SortedMap<K, V> makeTestMap() {
return decorateMap(new TreeMap<K, V>(), testPredicate, testPredicate);
}
public SortedMap<K, V> makeTestMapWithComparator() {
return decorateMap(new ConcurrentSkipListMap<K, V>(reverseStringComparator), testPredicate, testPredicate);
}
@ -178,7 +178,7 @@ public class PredicatedSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
assertTrue("natural order, so comparator should be null",
c == null);
}
@SuppressWarnings("unchecked")
public void testReverseSortOrder() {
final SortedMap<K, V> map = makeTestMapWithComparator();

View File

@ -215,7 +215,7 @@ public class ArrayListValuedHashMapTest<K, V> extends AbstractMultiValuedMapTest
assertEquals(3, listMap.get((K) "A").indexOf("Q"));
assertEquals(4, listMap.get((K) "A").lastIndexOf("Q"));
assertEquals(-1, listMap.get((K) "A").lastIndexOf("A"));
List<V> list2 = new ArrayList<>();
listMap.get((K) "B").addAll(0, list2);
assertEquals("{A=[W, X, F, Q, Q, L]}", listMap.toString());

View File

@ -466,7 +466,7 @@ public class CircularFifoQueueTest<E> extends AbstractQueueTest<E> {
}
fail();
}
@Override
public String getCompatibilityVersion() {
return "4";

View File

@ -105,7 +105,7 @@ public class UnmodifiableQueueTest<E> extends AbstractQueueTest<E> {
fail();
} catch (final NullPointerException ex) {}
}
public void testOffer() {
Queue<E> queue = makeFullCollection();
E e = null;