commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [17/50] [abbrv] commons-collections git commit: Add missing @Overrides
Date Tue, 11 Jul 2017 17:22:07 GMT
http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java b/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
index 110422f..17cc8c6 100644
--- a/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
@@ -43,6 +43,7 @@ public class SplitMapUtilsTest {
     private TransformedSplitMap<String, String, String, Integer> transformedMap;
 
     private final Transformer<String, Integer> stringToInt = new Transformer<String,
Integer>() {
+        @Override
         public Integer transform(final String input) {
             return Integer.valueOf(input);
         }
@@ -85,6 +86,7 @@ public class SplitMapUtilsTest {
         int sz = map.size();
 
         attemptPutOperation(new Runnable() {
+            @Override
             public void run() {
                 map.clear();
             }
@@ -93,6 +95,7 @@ public class SplitMapUtilsTest {
         assertEquals(sz, map.size());
 
         attemptPutOperation(new Runnable() {
+            @Override
             public void run() {
                 map.put("foo", 100);
             }
@@ -103,6 +106,7 @@ public class SplitMapUtilsTest {
         m.put("bar", 200);
         m.put("baz", 300);
         attemptPutOperation(new Runnable() {
+            @Override
             public void run() {
                 map.putAll(m);
             }
@@ -133,46 +137,55 @@ public class SplitMapUtilsTest {
     public void testWritableMap() {
         final Map<String, String> map = SplitMapUtils.writableMap(transformedMap);
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.get(null);
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.entrySet();
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.keySet();
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.values();
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.size();
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.isEmpty();
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.containsKey(null);
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.containsValue(null);
             }
         });
         attemptGetOperation(new Runnable() {
+            @Override
             public void run() {
                 map.remove(null);
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java b/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
index cb7a70c..fe30f26 100644
--- a/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/PredicatedBagTest.java
@@ -46,6 +46,7 @@ public class PredicatedBagTest<T> extends AbstractBagTest<T>
{
 
     protected Predicate<T> stringPredicate() {
         return new Predicate<T>() {
+            @Override
             public boolean evaluate(final T o) {
                 return o instanceof String;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
b/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
index c7fb92d..71dc53f 100644
--- a/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/PredicatedSortedBagTest.java
@@ -48,6 +48,7 @@ public class PredicatedSortedBagTest<T> extends AbstractSortedBagTest<T>
{
 
     protected Predicate<T> stringPredicate() {
         return new Predicate<T>() {
+            @Override
             public boolean evaluate(final T o) {
                 return o instanceof String;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java b/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
index 838d1e0..ff64bed 100644
--- a/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
+++ b/src/test/java/org/apache/commons/collections4/bag/TreeBagTest.java
@@ -77,6 +77,7 @@ public class TreeBagTest<T> extends AbstractSortedBagTest<T>
{
         }
         
         final Bag<String> bag2 = new TreeBag<String>(new Comparator<String>()
{
+            @Override
             public int compare(String o1, String o2) {
                 return o1.compareTo(o2);
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
index c597149..9dcc4b8 100644
--- a/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
+++ b/src/test/java/org/apache/commons/collections4/bidimap/DualTreeBidiMap2Test.java
@@ -100,6 +100,7 @@ public class DualTreeBidiMap2Test<K extends Comparable<K>, V
extends Comparable<
 
     private static class IntegerComparator implements Comparator<Integer>, Serializable{
         private static final long serialVersionUID = 1L;
+        @Override
         public int compare(final Integer o1, final Integer o2) {
             return o1.compareTo(o2);
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
b/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
index a72117e..4632057 100644
--- a/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java
@@ -127,6 +127,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
         setUpTest();
         c.setMutator(new CompositeCollection.CollectionMutator<E>() {
 
+            @Override
             public boolean add(final CompositeCollection<E> composite, final List<Collection<E>>
collections, final E obj) {
                 for (final Collection<E> coll : collections) {
                     coll.add(obj);
@@ -134,6 +135,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
                 return true;
             }
 
+            @Override
             public boolean addAll(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final Collection<?
extends E> coll) {
                 for (final Collection<E> collection : collections) {
@@ -142,6 +144,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
                 return true;
             }
 
+            @Override
             public boolean remove(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final Object obj)
{
                 for (final Collection<E> collection : collections) {
@@ -243,6 +246,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
     public void testAddAllMutator() {
         setUpTest();
         c.setMutator(new CompositeCollection.CollectionMutator<E>() {
+            @Override
             public boolean add(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final E obj) {
                 for (final Collection<E> collection : collections) {
@@ -251,6 +255,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
                 return true;
             }
 
+            @Override
             public boolean addAll(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final Collection<?
extends E> coll) {
                 for (final Collection<E> collection : collections) {
@@ -259,6 +264,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
                 return true;
             }
 
+            @Override
             public boolean remove(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final Object obj)
{
                 return false;
@@ -276,6 +282,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
     public void testAddMutator() {
         setUpTest();
         c.setMutator(new CompositeCollection.CollectionMutator<E>() {
+            @Override
             public boolean add(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final E obj) {
                 for (final Collection<E> collection : collections) {
@@ -284,6 +291,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
                 return true;
             }
 
+            @Override
             public boolean addAll(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final Collection<?
extends E> coll) {
                 for (final Collection<E> collection : collections) {
@@ -292,6 +300,7 @@ public class CompositeCollectionTest<E> extends AbstractCollectionTest<E>
{
                 return true;
             }
 
+            @Override
             public boolean remove(final CompositeCollection<E> composite,
                     final List<Collection<E>> collections, final Object obj)
{
                 return false;

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
b/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
index 7a71a71..f49d4a4 100644
--- a/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/IndexedCollectionTest.java
@@ -53,6 +53,7 @@ public class IndexedCollectionTest extends AbstractCollectionTest<String>
{
     private static final class IntegerTransformer implements Transformer<String, Integer>,
Serializable {
         private static final long serialVersionUID = 809439581555072949L;
 
+        @Override
         public Integer transform(final String input) {
             return Integer.valueOf(input);
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java
b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java
index c1196e6..9e65488 100644
--- a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionBuilderTest.java
@@ -137,6 +137,7 @@ public class PredicatedCollectionBuilderTest {
     }
 
     private static class OddPredicate implements Predicate<Integer> {
+        @Override
         public boolean evaluate(Integer value) {
             return value % 2 == 1;
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
index 53d42b9..ae1adcd 100644
--- a/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/PredicatedCollectionTest.java
@@ -78,6 +78,7 @@ public class PredicatedCollectionTest<E> extends AbstractCollectionTest<E>
{
     //-----------------------------------------------------------------------
     protected Predicate<E> testPredicate =
         new Predicate<E>() {
+            @Override
             public boolean evaluate(final E o) {
                 return o instanceof String;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
b/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
index b59f1cc..9a3cac4 100644
--- a/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
+++ b/src/test/java/org/apache/commons/collections4/collection/TransformedCollectionTest.java
@@ -35,6 +35,7 @@ import org.apache.commons.collections4.TransformerUtils;
 public class TransformedCollectionTest extends AbstractCollectionTest<Object> {
 
     private static class StringToInteger implements Transformer<Object, Object> {
+        @Override
         public Object transform(final Object input) {
             return Integer.valueOf((String) input);
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/comparators/ComparatorChainTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/comparators/ComparatorChainTest.java
b/src/test/java/org/apache/commons/collections4/comparators/ComparatorChainTest.java
index 24502fd..bf44d7d 100644
--- a/src/test/java/org/apache/commons/collections4/comparators/ComparatorChainTest.java
+++ b/src/test/java/org/apache/commons/collections4/comparators/ComparatorChainTest.java
@@ -105,6 +105,7 @@ public class ComparatorChainTest extends AbstractComparatorTest<ComparatorChainT
         // test that ComparatorChain handles this edge case correctly
         final ComparatorChain<Integer> chain = new ComparatorChain<Integer>();
         chain.addComparator(new Comparator<Integer>() {
+            @Override
             public int compare(final Integer a, final Integer b) {
                 final int result = a.compareTo(b);
                 if (result < 0) {
@@ -201,6 +202,7 @@ public class ComparatorChainTest extends AbstractComparatorTest<ComparatorChainT
             this.colIndex = colIndex;
         }
 
+        @Override
         public int compare(final PseudoRow o1, final PseudoRow o2) {
 
             final int col1 = o1.getColumn(colIndex);

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/functors/ComparatorPredicateTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/functors/ComparatorPredicateTest.java
b/src/test/java/org/apache/commons/collections4/functors/ComparatorPredicateTest.java
index 1b0bb33..2bdb650 100644
--- a/src/test/java/org/apache/commons/collections4/functors/ComparatorPredicateTest.java
+++ b/src/test/java/org/apache/commons/collections4/functors/ComparatorPredicateTest.java
@@ -26,6 +26,7 @@ import org.junit.Test;
 
 public class ComparatorPredicateTest extends AbstractPredicateTest {
     private class TestComparator<T extends Comparable<T>> implements Comparator<T>
{
+        @Override
         public int compare(final T first, final T second) {
             return first.compareTo(second);
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/BoundedIteratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/BoundedIteratorTest.java
b/src/test/java/org/apache/commons/collections4/iterators/BoundedIteratorTest.java
index cec3e66..ca016cb 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/BoundedIteratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/BoundedIteratorTest.java
@@ -353,6 +353,7 @@ public class BoundedIteratorTest<E> extends AbstractIteratorTest<E>
{
     @Test
     public void testRemoveUnsupported() {
         Iterator<E> mockIterator = new AbstractIteratorDecorator<E>(testList.iterator())
{
+            @Override
             public void remove() {
                 throw new UnsupportedOperationException();
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java
b/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java
index 6087c3d..7e4af43 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/FilterIteratorTest.java
@@ -159,6 +159,7 @@ public class FilterIteratorTest<E> extends AbstractIteratorTest<E>
{
 
     private void verifyElementsInPredicate(final String[] elements) {
         final Predicate<E> pred = new Predicate<E>() {
+            @Override
             public boolean evaluate(final E x) {
                 for (final String element : elements) {
                     if (element.equals(x)) {
@@ -200,6 +201,7 @@ public class FilterIteratorTest<E> extends AbstractIteratorTest<E>
{
      */
     protected FilterIterator<E> makePassThroughFilter(final Iterator<E> i) {
         final Predicate<E> pred = new Predicate<E>() {
+                @Override
                 public boolean evaluate(final E x) { return true; }
         };
         return new FilterIterator<E>(i, pred);
@@ -214,6 +216,7 @@ public class FilterIteratorTest<E> extends AbstractIteratorTest<E>
{
      */
     protected FilterIterator<E> makeBlockAllFilter(final Iterator<E> i) {
         final Predicate<E> pred = new Predicate<E>() {
+                @Override
                 public boolean evaluate(final E x) { return false; }
         };
         return new FilterIterator<E>(i, pred);

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java
b/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java
index 8ad9480..ef8a9cf 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/FilterListIteratorTest.java
@@ -68,36 +68,42 @@ public class FilterListIteratorTest extends TestCase {
         }
 
         truePred = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer x) {
                 return true;
             }
         };
 
         falsePred = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer x) {
                 return true;
             }
         };
 
         evenPred = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer x) {
                 return x % 2 == 0;
             }
         };
 
         oddPred = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer x) {
                 return x % 2 != 0; //works for all numbers, not just >= 0 as is the case
for "x % 2 == 1"
             }
         };
 
         threePred = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer x) {
                 return x % 3 == 0;
             }
         };
 
         fourPred = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer x) {
                 return x % 4 == 0;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
b/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
index 60e030a..b5ed6b6 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/IteratorChainTest.java
@@ -93,6 +93,7 @@ public class IteratorChainTest extends AbstractIteratorTest<String>
{
     public void testRemoveFromFilteredIterator() {
 
         final Predicate<Integer> myPredicate = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer i) {
                 return i.compareTo(Integer.valueOf(4)) < 0;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java
b/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java
index 9573cca..70aefbb 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/LazyIteratorChainTest.java
@@ -107,6 +107,7 @@ public class LazyIteratorChainTest extends AbstractIteratorTest<String>
{
     public void testRemoveFromFilteredIterator() {
 
         final Predicate<Integer> myPredicate = new Predicate<Integer>() {
+            @Override
             public boolean evaluate(final Integer i) {
                 return i.compareTo(Integer.valueOf(4)) < 0;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java
b/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java
index 6593132..8a5da1f 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/NodeListIteratorTest.java
@@ -68,9 +68,11 @@ public class NodeListIteratorTest extends AbstractIteratorTest<Node>
{
     @Override
     public Iterator<Node> makeEmptyIterator() {
         final NodeList emptyNodeList = new NodeList() {
+            @Override
             public Node item(final int index) {
                 throw new IndexOutOfBoundsException();
             }
+            @Override
             public int getLength() {
                 return 0;
             }
@@ -90,9 +92,11 @@ public class NodeListIteratorTest extends AbstractIteratorTest<Node>
{
     @Override
     public Iterator<Node> makeObject() {
         final NodeList nodeList = new NodeList() {
+            @Override
             public Node item(final int index) {
                 return nodes[index];
             }
+            @Override
             public int getLength() {
                 return nodes.length;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/iterators/ObjectGraphIteratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/iterators/ObjectGraphIteratorTest.java
b/src/test/java/org/apache/commons/collections4/iterators/ObjectGraphIteratorTest.java
index afe4f80..9372efb 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/ObjectGraphIteratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/ObjectGraphIteratorTest.java
@@ -353,6 +353,7 @@ public class ObjectGraphIteratorTest extends AbstractIteratorTest<Object>
{
 
     //-----------------------------------------------------------------------
     static class LeafFinder implements Transformer<Object, Object> {
+        @Override
         public Object transform(final Object input) {
             if (input instanceof Forest) {
                 return ((Forest) input).treeIterator();

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java b/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java
index fedaed8..8a5a6b7 100644
--- a/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java
+++ b/src/test/java/org/apache/commons/collections4/list/PredicatedListTest.java
@@ -58,6 +58,7 @@ public class PredicatedListTest<E> extends AbstractListTest<E>
{
 
     protected Predicate<E> testPredicate =
         new Predicate<E>() {
+            @Override
             public boolean evaluate(final E o) {
                 return o instanceof String;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java b/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java
index ae73a96..ecaafdc 100644
--- a/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/CompositeMapTest.java
@@ -133,6 +133,7 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
             new CompositeMap.MapMutator<K, V>() {
             private static final long serialVersionUID = 1L;
 
+            @Override
             public void resolveCollision(final CompositeMap<K, V> composite,
             final Map<K, V> existing,
             final Map<K, V> added,
@@ -140,11 +141,13 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
                 pass = true;
             }
 
+            @Override
             public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited,
final K key,
                 final V value) {
                 throw new UnsupportedOperationException();
             }
 
+            @Override
             public void putAll(final CompositeMap<K, V> map, final Map<K, V>[]
composited, final Map<? extends K, ? extends V> t) {
                 throw new UnsupportedOperationException();
             }
@@ -159,6 +162,7 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(),
             new CompositeMap.MapMutator<K, V>() {
             private static final long serialVersionUID = 1L;
+            @Override
             public void resolveCollision(final CompositeMap<K, V> composite,
             final Map<K, V> existing,
             final Map<K, V> added,
@@ -166,12 +170,14 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
                 throw new UnsupportedOperationException();
             }
 
+            @Override
             public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited,
final K key,
                 final V value) {
                 pass = true;
                 return (V) "foo";
             }
 
+            @Override
             public void putAll(final CompositeMap<K, V> map, final Map<K, V>[]
composited, final Map<? extends K, ? extends V> t) {
                 throw new UnsupportedOperationException();
             }
@@ -185,6 +191,7 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
         final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo(),
             new CompositeMap.MapMutator<K, V>() {
             private static final long serialVersionUID = 1L;
+            @Override
             public void resolveCollision(final CompositeMap<K, V> composite,
             final Map<K, V> existing,
             final Map<K, V> added,
@@ -192,11 +199,13 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
                 throw new UnsupportedOperationException();
             }
 
+            @Override
             public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited,
final K key,
                 final V value) {
                 throw new UnsupportedOperationException();
             }
 
+            @Override
             public void putAll(final CompositeMap<K, V> map, final Map<K, V>[]
composited, final Map<? extends K, ? extends V> t) {
                 pass = true;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java b/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java
index 2ddcd80..32321d2 100644
--- a/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/DefaultedMapTest.java
@@ -106,6 +106,7 @@ public class DefaultedMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
     public void testMapGet4() {
         final HashMap<K, V> base = new HashMap<K, V>();
         final Map<K, V> map = DefaultedMap.defaultedMap(base, new Transformer<K,
V>() {
+            @Override
             public V transform(final K input) {
                 if (input instanceof String) {
                     return (V) "NULL";

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java b/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java
index f46fdd9..1ccf61e 100644
--- a/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java
+++ b/src/test/java/org/apache/commons/collections4/map/EmptyMapMutator.java
@@ -28,6 +28,7 @@ class EmptyMapMutator<K,V> implements CompositeMap.MapMutator<K,V>
{
     /** Serialization version */
     private static final long serialVersionUID = -2729718980002476794L;
 
+    @Override
     public void resolveCollision(final CompositeMap<K,V> composite,
     final Map<K,V> existing,
     final Map<K,V> added,
@@ -35,10 +36,12 @@ class EmptyMapMutator<K,V> implements CompositeMap.MapMutator<K,V>
{
         // Do nothing
     }
 
+    @Override
     public V put(final CompositeMap<K, V> map, final Map<K, V>[] composited,
final K key, final V value) {
         return composited[0].put(key, value);
     }
 
+    @Override
     public void putAll(final CompositeMap<K, V> map, final Map<K, V>[] composited,
final Map<? extends K, ? extends V> t) {
         composited[0].putAll(t);
     }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java b/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java
index 4e233ab..756ae95 100644
--- a/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/LazyMapTest.java
@@ -74,6 +74,7 @@ public class LazyMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
     @Test
     public void mapGetWithTransformer() {
         final Transformer<Number, Integer> intConverter = new Transformer<Number,
Integer>(){
+            @Override
             public Integer transform(final Number input) {
                 return input.intValue();
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java
b/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java
index edb44bd..c78b744 100644
--- a/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/PassiveExpiringMapTest.java
@@ -38,6 +38,7 @@ public class PassiveExpiringMapTest<K, V> extends AbstractMapTest<K,
V> {
 
         private static final long serialVersionUID = 1L;
 
+        @Override
         public long expirationTime(final Integer key, final String value) {
             // odd keys expire immediately, even keys never expire
             if (key == null) {

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java b/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java
index 6dce129..23b5567 100644
--- a/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/PredicatedMapTest.java
@@ -36,6 +36,7 @@ public class PredicatedMapTest<K, V> extends AbstractIterableMapTest<K,
V> {
     protected static final Predicate<Object> truePredicate = TruePredicate.<Object>truePredicate();
 
     protected static final Predicate<Object> testPredicate = new Predicate<Object>()
{
+        @Override
         public boolean evaluate(final Object o) {
             return o instanceof String;
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/map/PredicatedSortedMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/map/PredicatedSortedMapTest.java
b/src/test/java/org/apache/commons/collections4/map/PredicatedSortedMapTest.java
index 287ca10..df77bec 100644
--- a/src/test/java/org/apache/commons/collections4/map/PredicatedSortedMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/map/PredicatedSortedMapTest.java
@@ -38,6 +38,7 @@ public class PredicatedSortedMapTest<K, V> extends AbstractSortedMapTest<K,
V> {
     protected static final Predicate<Object> truePredicate = TruePredicate.truePredicate();
 
     protected static final Predicate<Object> testPredicate = new Predicate<Object>()
{
+        @Override
         public boolean evaluate(final Object o) {
             return o instanceof String;
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java
b/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java
index 14b8a23..5171e4a 100644
--- a/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java
+++ b/src/test/java/org/apache/commons/collections4/queue/PredicatedQueueTest.java
@@ -75,6 +75,7 @@ public class PredicatedQueueTest<E> extends AbstractQueueTest<E>
{
 
     protected Predicate<E> testPredicate =
             new Predicate<E>() {
+                @Override
                 public boolean evaluate(final E o) {
                     return o instanceof String;
                 }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/sequence/SequencesComparatorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/sequence/SequencesComparatorTest.java
b/src/test/java/org/apache/commons/collections4/sequence/SequencesComparatorTest.java
index 9e453ae..63c90b9 100644
--- a/src/test/java/org/apache/commons/collections4/sequence/SequencesComparatorTest.java
+++ b/src/test/java/org/apache/commons/collections4/sequence/SequencesComparatorTest.java
@@ -162,14 +162,17 @@ public class SequencesComparatorTest {
             index = 0;
         }
 
+        @Override
         public void visitInsertCommand(final T object) {
             v.add(index++, object);
         }
 
+        @Override
         public void visitKeepCommand(final T object) {
             ++index;
         }
 
+        @Override
         public void visitDeleteCommand(final T object) {
             v.remove(index);
         }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/set/CompositeSetTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/set/CompositeSetTest.java b/src/test/java/org/apache/commons/collections4/set/CompositeSetTest.java
index 047bc88..178a4cf 100644
--- a/src/test/java/org/apache/commons/collections4/set/CompositeSetTest.java
+++ b/src/test/java/org/apache/commons/collections4/set/CompositeSetTest.java
@@ -97,16 +97,19 @@ public class CompositeSetTest<E> extends AbstractSetTest<E>
{
         set.setMutator(new SetMutator<E>() {
             private static final long serialVersionUID = 1L;
 
+            @Override
             public void resolveCollision(final CompositeSet<E> comp, final Set<E>
existing,
                 final Set<E> added, final Collection<E> intersects) {
                 //noop
             }
 
+            @Override
             public boolean add(final CompositeSet<E> composite,
                     final List<Set<E>> collections, final E obj) {
                 throw new UnsupportedOperationException();
             }
 
+            @Override
             public boolean addAll(final CompositeSet<E> composite,
                     final List<Set<E>> collections, final Collection<? extends
E> coll) {
                 throw new UnsupportedOperationException();

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java b/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java
index 7a25fd6..f998f16 100644
--- a/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java
+++ b/src/test/java/org/apache/commons/collections4/set/EmptySetMutator.java
@@ -36,14 +36,17 @@ class EmptySetMutator<E> implements CompositeSet.SetMutator<E>
{
         this.contained = set;
     }
 
+    @Override
     public void resolveCollision(final CompositeSet<E> comp, final Set<E> existing,
final Set<E> added, final Collection<E> intersects) {
         throw new IllegalArgumentException();
     }
 
+    @Override
     public boolean add(final CompositeSet<E> composite, final List<Set<E>>
collections, final E obj) {
         return contained.add(obj);
     }
 
+    @Override
     public boolean addAll(final CompositeSet<E> composite, final List<Set<E>>
collections, final Collection<? extends E> coll) {
         return contained.addAll(coll);
     }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/set/PredicatedNavigableSetTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/set/PredicatedNavigableSetTest.java
b/src/test/java/org/apache/commons/collections4/set/PredicatedNavigableSetTest.java
index 055749d..1fef276 100644
--- a/src/test/java/org/apache/commons/collections4/set/PredicatedNavigableSetTest.java
+++ b/src/test/java/org/apache/commons/collections4/set/PredicatedNavigableSetTest.java
@@ -64,6 +64,7 @@ public class PredicatedNavigableSetTest<E> extends AbstractNavigableSetTest<E>
{
 //--------------------------------------------------------------------
     protected Predicate<E> testPredicate =
         new Predicate<E>() {
+            @Override
             public boolean evaluate(final E o) {
                 return o instanceof String && ((String) o).startsWith("A");
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java b/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java
index 6df0b07..5e196cf 100644
--- a/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java
+++ b/src/test/java/org/apache/commons/collections4/set/PredicatedSetTest.java
@@ -58,6 +58,7 @@ public class PredicatedSetTest<E> extends AbstractSetTest<E>
{
 
     protected Predicate<E> testPredicate =
         new Predicate<E>() {
+            @Override
             public boolean evaluate(final E o) {
                 return o instanceof String;
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/set/PredicatedSortedSetTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/set/PredicatedSortedSetTest.java
b/src/test/java/org/apache/commons/collections4/set/PredicatedSortedSetTest.java
index 278f226..a605898 100644
--- a/src/test/java/org/apache/commons/collections4/set/PredicatedSortedSetTest.java
+++ b/src/test/java/org/apache/commons/collections4/set/PredicatedSortedSetTest.java
@@ -64,6 +64,7 @@ public class PredicatedSortedSetTest<E> extends AbstractSortedSetTest<E>
{
 //--------------------------------------------------------------------
     protected Predicate<E> testPredicate =
         new Predicate<E>() {
+            @Override
             public boolean evaluate(final E o) {
                 return o instanceof String && ((String) o).startsWith("A");
             }

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5250fdfd/src/test/java/org/apache/commons/collections4/splitmap/TransformedSplitMapTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/splitmap/TransformedSplitMapTest.java
b/src/test/java/org/apache/commons/collections4/splitmap/TransformedSplitMapTest.java
index 4fd0208..1e08e2a 100644
--- a/src/test/java/org/apache/commons/collections4/splitmap/TransformedSplitMapTest.java
+++ b/src/test/java/org/apache/commons/collections4/splitmap/TransformedSplitMapTest.java
@@ -37,18 +37,21 @@ import org.apache.commons.collections4.functors.NOPTransformer;
 public class TransformedSplitMapTest extends BulkTest {
 
     private final Transformer<Integer, String> intToString = new Transformer<Integer,
String>() {
+        @Override
         public String transform(final Integer input) {
             return String.valueOf(input);
         }
     };
 
     private final Transformer<Object, Class<?>> objectToClass = new Transformer<Object,
Class<?>>() {
+        @Override
         public java.lang.Class<?> transform(final Object input) {
             return input == null ? null : input.getClass();
         }
     };
 
     private final Transformer<String, Integer> stringToInt = new Transformer<String,
Integer>() {
+        @Override
         public Integer transform(final String input) {
             return Integer.valueOf(input);
         }


Mime
View raw message