commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r966327 [5/5] - in /commons/proper/collections/trunk/src: java/org/apache/commons/collections/ java/org/apache/commons/collections/bag/ java/org/apache/commons/collections/bidimap/ java/org/apache/commons/collections/buffer/ java/org/apache...
Date Wed, 21 Jul 2010 17:39:55 GMT
Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLRUMap.java
Wed Jul 21 17:39:49 2010
@@ -51,6 +51,7 @@ public class TestLRUMap<K, V> extends Ab
         return BulkTest.makeSuite(TestLRUMap.class);
     }
 
+    @Override
     public LRUMap<K, V> makeObject() {
         return new LRUMap<K, V>();
     }
@@ -63,10 +64,12 @@ public class TestLRUMap<K, V> extends Ab
         return (LRUMap<K, V>) super.makeFullMap();
     }
 
+    @Override
     public boolean isGetStructuralModify() {
         return true;
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3";
     }
@@ -262,6 +265,7 @@ public class TestLRUMap<K, V> extends Ab
             super(size);
         }
 
+        @Override
         protected boolean removeLRU(LinkEntry<K, V> entry) {
             this.entry = entry;
             this.key = entry.getKey();
@@ -308,6 +312,7 @@ public class TestLRUMap<K, V> extends Ab
             super(size, scanUntilRemove);
         }
 
+        @Override
         protected boolean removeLRU(LinkEntry<K, V> entry) {
             return false;
         }
@@ -335,6 +340,7 @@ public class TestLRUMap<K, V> extends Ab
             super(size, true);
         }
 
+        @Override
         protected boolean removeLRU(LinkEntry<K, V> entry) {
             if ("a".equals(entry.getValue())) {
                 return false;
@@ -350,11 +356,13 @@ public class TestLRUMap<K, V> extends Ab
         SingleHashCode(String code) {
             this.code = code;
         }
+        @Override
         public int hashCode() {
             // always return the same hashcode
             // that way, it will end up in the same bucket
             return 12;
         }
+        @Override
         public String toString() {
             return "SingleHashCode:" + code;
         }
@@ -480,6 +488,7 @@ public class TestLRUMap<K, V> extends Ab
         
         final Map exceptions = new HashMap();
         final ThreadGroup tg = new ThreadGroup(getName()) {
+            @Override
             public void uncaughtException(Thread t, Throwable e) {
                 exceptions.put(e, t.getName());
                 super.uncaughtException(t, e);
@@ -492,6 +501,7 @@ public class TestLRUMap<K, V> extends Ab
         for (int i = 0; i < threads.length; ++i) {
             threads[i] = new Thread(tg, "JUnit Thread " + i) {
 
+                @Override
                 public void run() {
                     int i = 0;
                     try {
@@ -561,6 +571,7 @@ public class TestLRUMap<K, V> extends Ab
         
         final Map exceptions = new HashMap();
         final ThreadGroup tg = new ThreadGroup(getName()) {
+            @Override
             public void uncaughtException(Thread t, Throwable e) {
                 exceptions.put(e, t.getName());
                 super.uncaughtException(t, e);
@@ -573,6 +584,7 @@ public class TestLRUMap<K, V> extends Ab
         for (int i = 0; i < threads.length; ++i) {
             threads[i] = new Thread(tg, "JUnit Thread " + i) {
 
+                @Override
                 public void run() {
                     int i = 0;
                     try {
@@ -643,6 +655,7 @@ public class TestLRUMap<K, V> extends Ab
         
         final Map exceptions = new HashMap();
         final ThreadGroup tg = new ThreadGroup(getName()) {
+            @Override
             public void uncaughtException(Thread t, Throwable e) {
                 exceptions.put(e, t.getName());
                 super.uncaughtException(t, e);
@@ -655,6 +668,7 @@ public class TestLRUMap<K, V> extends Ab
         for (int i = 0; i < threads.length; ++i) {
             threads[i] = new Thread(tg, "JUnit Thread " + i) {
 
+                @Override
                 public void run() {
                     int i = 0;
                     try {
@@ -724,6 +738,7 @@ public class TestLRUMap<K, V> extends Ab
         
         final Map exceptions = new HashMap();
         final ThreadGroup tg = new ThreadGroup(getName()) {
+            @Override
             public void uncaughtException(Thread t, Throwable e) {
                 exceptions.put(e, t.getName());
                 super.uncaughtException(t, e);
@@ -736,6 +751,7 @@ public class TestLRUMap<K, V> extends Ab
         for (int i = 0; i < threads.length; ++i) {
             threads[i] = new Thread(tg, "JUnit Thread " + i) {
 
+                @Override
                 public void run() {
                     int i = 0;
                     try {

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLinkedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLinkedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLinkedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestLinkedMap.java
Wed Jul 21 17:39:49 2010
@@ -51,6 +51,7 @@ public class TestLinkedMap<K, V> extends
         return BulkTest.makeSuite(TestLinkedMap.class);
     }
 
+    @Override
     public LinkedMap<K, V> makeObject() {
         return new LinkedMap<K, V>();
     }
@@ -63,6 +64,7 @@ public class TestLinkedMap<K, V> extends
         return (LinkedMap<K, V>) super.makeFullMap();
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3";
     }
@@ -240,29 +242,37 @@ public class TestLinkedMap<K, V> extends
             super("TestListView");
         }
 
+        @Override
         public List<K> makeObject() {
             return TestLinkedMap.this.makeObject().asList();
         }
 
+        @Override
         public List<K> makeFullCollection() {
             return TestLinkedMap.this.makeFullMap().asList();
         }
 
+        @Override
         public K[] getFullElements() {
             return TestLinkedMap.this.getSampleKeys();
         }
+        @Override
         public boolean isAddSupported() {
             return false;
         }
+        @Override
         public boolean isRemoveSupported() {
             return false;
         }
+        @Override
         public boolean isSetSupported() {
             return false;
         }
+        @Override
         public boolean isNullSupported() {
             return TestLinkedMap.this.isAllowNullKey();
         }
+        @Override
         public boolean isTestSerialization() {
             return false;
         }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap.java
Wed Jul 21 17:39:49 2010
@@ -52,6 +52,7 @@ public class TestListOrderedMap<K, V> ex
         junit.textui.TestRunner.main(testCaseName);
     }
 
+    @Override
     public ListOrderedMap<K, V> makeObject() {
         return (ListOrderedMap<K, V>) ListOrderedMap.decorate(new HashMap<K, V>());
     }
@@ -382,28 +383,36 @@ public class TestListOrderedMap<K, V> ex
             super("TestKeyListView");
         }
 
+        @Override
         public List<K> makeObject() {
             return TestListOrderedMap.this.makeObject().keyList();
         }
+        @Override
         public List<K> makeFullCollection() {
             return TestListOrderedMap.this.makeFullMap().keyList();
         }
 
+        @Override
         public K[] getFullElements() {
             return TestListOrderedMap.this.getSampleKeys();
         }
+        @Override
         public boolean isAddSupported() {
             return false;
         }
+        @Override
         public boolean isRemoveSupported() {
             return false;
         }
+        @Override
         public boolean isSetSupported() {
             return false;
         }
+        @Override
         public boolean isNullSupported() {
             return TestListOrderedMap.this.isAllowNullKey();
         }
+        @Override
         public boolean isTestSerialization() {
             return false;
         }
@@ -415,34 +424,43 @@ public class TestListOrderedMap<K, V> ex
             super("TestValueListView");
         }
 
+        @Override
         public List<V> makeObject() {
             return TestListOrderedMap.this.makeObject().valueList();
         }
+        @Override
         public List<V> makeFullCollection() {
             return TestListOrderedMap.this.makeFullMap().valueList();
         }
 
+        @Override
         public V[] getFullElements() {
             return TestListOrderedMap.this.getSampleValues();
         }
+        @Override
         public boolean isAddSupported() {
             return false;
         }
+        @Override
         public boolean isRemoveSupported() {
             return true;
         }
+        @Override
         public boolean isSetSupported() {
             return true;
         }
+        @Override
         public boolean isNullSupported() {
             return TestListOrderedMap.this.isAllowNullKey();
         }
+        @Override
         public boolean isTestSerialization() {
             return false;
         }
     }
 
     //-----------------------------------------------------------------------
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap2.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap2.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap2.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestListOrderedMap2.java
Wed Jul 21 17:39:49 2010
@@ -49,6 +49,7 @@ public class TestListOrderedMap2<K, V> e
         junit.textui.TestRunner.main(testCaseName);
     }
 
+    @Override
     public ListOrderedMap<K, V> makeObject() {
         return new ListOrderedMap<K, V>();
     }
@@ -171,34 +172,43 @@ public class TestListOrderedMap2<K, V> e
             super("TestListView");
         }
 
+        @Override
         public List<K> makeObject() {
             return TestListOrderedMap2.this.makeObject().asList();
         }
 
+        @Override
         public List<K> makeFullCollection() {
             return TestListOrderedMap2.this.makeFullMap().asList();
         }
 
+        @Override
         public K[] getFullElements() {
             return TestListOrderedMap2.this.getSampleKeys();
         }
+        @Override
         public boolean isAddSupported() {
             return false;
         }
+        @Override
         public boolean isRemoveSupported() {
             return false;
         }
+        @Override
         public boolean isSetSupported() {
             return false;
         }
+        @Override
         public boolean isNullSupported() {
             return TestListOrderedMap2.this.isAllowNullKey();
         }
+        @Override
         public boolean isTestSerialization() {
             return false;
         }
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java
Wed Jul 21 17:39:49 2010
@@ -55,10 +55,12 @@ public class TestMultiKeyMap<K, V> exten
         return BulkTest.makeSuite(TestMultiKeyMap.class);
     }
 
+    @Override
     public MultiKeyMap<K, V> makeObject() {
         return new MultiKeyMap<K, V>();
     }
 
+    @Override
     public MultiKey<K>[] getSampleKeys() {
         return getMultiKeyKeys();
     }
@@ -81,6 +83,7 @@ public class TestMultiKeyMap<K, V> exten
         };
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public V[] getSampleValues() {
         return (V[]) new Object[] {
@@ -91,6 +94,7 @@ public class TestMultiKeyMap<K, V> exten
         };
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public V[] getNewSampleValues() {
         return (V[]) new Object[] {
@@ -101,6 +105,7 @@ public class TestMultiKeyMap<K, V> exten
         };
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public MultiKey<K>[] getOtherKeys() {
         return (MultiKey<K>[]) new MultiKey[] {
@@ -111,6 +116,7 @@ public class TestMultiKeyMap<K, V> exten
         };
     }
 
+    @Override
     public boolean isAllowNullKey() {
         return false;
     }
@@ -441,6 +447,7 @@ public class TestMultiKeyMap<K, V> exten
     }
 
     //-----------------------------------------------------------------------
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestMultiValueMap.java
Wed Jul 21 17:39:49 2010
@@ -379,10 +379,12 @@ public class TestMultiValueMap<K, V> ext
     // extend the AbstractTestMap
     //-----------------------------------------------------------------------
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.3";
     }
 
+    @Override
     public Object makeObject() {
         Map m = makeEmptyMap();
         m.put("a", "1");

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedMap.java
Wed Jul 21 17:39:49 2010
@@ -65,6 +65,7 @@ public class TestPredicatedMap<K, V> ext
         return PredicatedMap.decorate(map, keyPredicate, valuePredicate);
     }
 
+    @Override
     public IterableMap<K, V> makeObject() {
         return decorateMap(new HashMap<K, V>(), truePredicate, truePredicate);
     }
@@ -136,6 +137,7 @@ public class TestPredicatedMap<K, V> ext
 
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedSortedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedSortedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedSortedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestPredicatedSortedMap.java
Wed Jul 21 17:39:49 2010
@@ -67,6 +67,7 @@ public class TestPredicatedSortedMap<K, 
         return PredicatedSortedMap.decorate(map, keyPredicate, valuePredicate);
     }
 
+    @Override
     public SortedMap<K, V> makeObject() {
         return decorateMap(new TreeMap<K, V>(), truePredicate, truePredicate);
     }
@@ -75,11 +76,13 @@ public class TestPredicatedSortedMap<K, 
         return decorateMap(new TreeMap<K, V>(), testPredicate, testPredicate);
     }
 
+    @Override
     public boolean isSubMapViewsSerializable() {
         // TreeMap sub map views have a bug in deserialization.
         return false;
     }
 
+    @Override
     public boolean isAllowNullKey() {
         return false;
     }
@@ -181,6 +184,7 @@ public class TestPredicatedSortedMap<K, 
             c == null);
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceIdentityMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceIdentityMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceIdentityMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceIdentityMap.java
Wed Jul 21 17:39:49 2010
@@ -55,10 +55,12 @@ public class TestReferenceIdentityMap<K,
         junit.textui.TestRunner.main(testCaseName);
     }
 
+    @Override
     public ReferenceIdentityMap<K, V> makeObject() {
         return new ReferenceIdentityMap<K, V>(ReferenceStrength.WEAK, ReferenceStrength.WEAK);
     }
 
+    @Override
     public Map<K, V> makeConfirmedMap() {
         // Testing against another [collections] class generally isn't a good idea,
         // but the closest alternative is IdentityHashMap, which propagates reference-equality
down to keySet and values.
@@ -66,14 +68,17 @@ public class TestReferenceIdentityMap<K,
         return new IdentityMap<K, V>();
     }
 
+    @Override
     public boolean isAllowNullKey() {
         return false;
     }
 
+    @Override
     public boolean isAllowNullValue() {
         return false;
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestReferenceMap.java
Wed Jul 21 17:39:49 2010
@@ -47,18 +47,22 @@ public class TestReferenceMap<K, V> exte
         junit.textui.TestRunner.main(testCaseName);
     }
 
+    @Override
     public ReferenceMap<K, V> makeObject() {
         return new ReferenceMap<K, V>(ReferenceStrength.WEAK, ReferenceStrength.WEAK);
     }
 
+    @Override
     public boolean isAllowNullKey() {
         return false;
     }
 
+    @Override
     public boolean isAllowNullValue() {
         return false;
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestSingletonMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestSingletonMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestSingletonMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestSingletonMap.java
Wed Jul 21 17:39:49 2010
@@ -52,12 +52,14 @@ public class TestSingletonMap<K, V> exte
     }
 
     //-----------------------------------------------------------------------
+    @Override
     public OrderedMap<K, V> makeObject() {
         // need an empty singleton map, but thats not possible
         // use a ridiculous fake instead to make the tests pass
         return UnmodifiableOrderedMap.decorate(ListOrderedMap.decorate(new HashMap<K,
V>()));
     }
 
+    @Override
     public String[] ignoredTests() {
         // the ridiculous map above still doesn't pass these tests
         // but its not relevant, so we ignore them
@@ -67,29 +69,35 @@ public class TestSingletonMap<K, V> exte
         };
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public SingletonMap<K, V> makeFullMap() {
         return new SingletonMap<K, V>((K) ONE, (V) TWO);
     }
 
+    @Override
     public boolean isPutAddSupported() {
         return false;
     }
 
+    @Override
     public boolean isRemoveSupported() {
         return false;
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public K[] getSampleKeys() {
         return (K[]) new Object[] { ONE };
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public V[] getSampleValues() {
         return (V[]) new Object[] { TWO };
     }
 
+    @Override
     @SuppressWarnings("unchecked")
     public V[] getNewSampleValues() {
         return (V[]) new Object[] { TEN };
@@ -169,6 +177,7 @@ public class TestSingletonMap<K, V> exte
 //        }
 //    }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestStaticBucketMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestStaticBucketMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestStaticBucketMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestStaticBucketMap.java
Wed Jul 21 17:39:49 2010
@@ -43,6 +43,7 @@ public class TestStaticBucketMap<K, V> e
         junit.textui.TestRunner.main(testCaseName);
     }
 
+    @Override
     public StaticBucketMap<K, V> makeObject() {
         return new StaticBucketMap<K, V>(30);
     }
@@ -55,6 +56,7 @@ public class TestStaticBucketMap<K, V> e
         return false;
     }
 
+    @Override
     public String[] ignoredTests() {
         String pre = "TestStaticBucketMap.bulkTestMap";
         String post = ".testCollectionIteratorFailFast";

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestTransformedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestTransformedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestTransformedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestTransformedMap.java
Wed Jul 21 17:39:49 2010
@@ -53,6 +53,7 @@ public class TestTransformedMap<K, V> ex
     }
 
     //-----------------------------------------------------------------------
+    @Override
     public IterableMap<K, V> makeObject() {
         return TransformedMap.decorate(new HashMap<K, V>(), TransformerUtils.<K>
nopTransformer(),
                 TransformerUtils.<V> nopTransformer());
@@ -148,6 +149,7 @@ public class TestTransformedMap<K, V> ex
     }
 
     //-----------------------------------------------------------------------
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableMap.java
Wed Jul 21 17:39:49 2010
@@ -51,22 +51,27 @@ public class TestUnmodifiableMap<K, V> e
 
     //-------------------------------------------------------------------
 
+    @Override
     public IterableMap<K, V> makeObject() {
         return (IterableMap<K, V>) UnmodifiableMap.decorate(new HashMap<K, V>());
     }
 
+    @Override
     public boolean isPutChangeSupported() {
         return false;
     }
 
+    @Override
     public boolean isPutAddSupported() {
         return false;
     }
 
+    @Override
     public boolean isRemoveSupported() {
         return false;
     }
 
+    @Override
     public IterableMap<K, V> makeFullMap() {
         Map<K, V> m = new HashMap<K, V>();
         addSampleMappings(m);
@@ -89,6 +94,7 @@ public class TestUnmodifiableMap<K, V> e
         } catch (IllegalArgumentException ex) {}
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableOrderedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableOrderedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableOrderedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableOrderedMap.java
Wed Jul 21 17:39:49 2010
@@ -50,22 +50,27 @@ public class TestUnmodifiableOrderedMap<
 
     //-------------------------------------------------------------------
 
+    @Override
     public OrderedMap<K, V> makeObject() {
         return UnmodifiableOrderedMap.decorate(ListOrderedMap.decorate(new HashMap<K,
V>()));
     }
 
+    @Override
     public boolean isPutChangeSupported() {
         return false;
     }
 
+    @Override
     public boolean isPutAddSupported() {
         return false;
     }
 
+    @Override
     public boolean isRemoveSupported() {
         return false;
     }
 
+    @Override
     public OrderedMap<K, V> makeFullMap() {
         OrderedMap<K, V> m = ListOrderedMap.decorate(new HashMap<K, V>());
         addSampleMappings(m);
@@ -88,6 +93,7 @@ public class TestUnmodifiableOrderedMap<
         } catch (IllegalArgumentException ex) {}
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableSortedMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableSortedMap.java?rev=966327&r1=966326&r2=966327&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableSortedMap.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/map/TestUnmodifiableSortedMap.java
Wed Jul 21 17:39:49 2010
@@ -50,22 +50,27 @@ public class TestUnmodifiableSortedMap<K
 
     //-------------------------------------------------------------------
 
+    @Override
     public SortedMap<K, V> makeObject() {
         return UnmodifiableSortedMap.decorate(new TreeMap<K, V>());
     }
 
+    @Override
     public boolean isPutChangeSupported() {
         return false;
     }
 
+    @Override
     public boolean isPutAddSupported() {
         return false;
     }
 
+    @Override
     public boolean isRemoveSupported() {
         return false;
     }
 
+    @Override
     public SortedMap<K, V> makeFullMap() {
         SortedMap<K, V> m = new TreeMap<K, V>();
         addSampleMappings(m);
@@ -88,6 +93,7 @@ public class TestUnmodifiableSortedMap<K
         } catch (IllegalArgumentException ex) {}
     }
 
+    @Override
     public String getCompatibilityVersion() {
         return "3.1";
     }



Mime
View raw message