commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1021583 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java
Date Tue, 12 Oct 2010 01:42:52 GMT
Author: sebb
Date: Tue Oct 12 01:42:52 2010
New Revision: 1021583

URL: http://svn.apache.org/viewvc?rev=1021583&view=rev
Log:
Missing @Override

Modified:
    commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java

Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java?rev=1021583&r1=1021582&r2=1021583&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java (original)
+++ commons/proper/pool/trunk/src/test/org/apache/commons/pool/TestPoolUtils.java Tue Oct
12 01:42:52 2010
@@ -175,10 +175,13 @@ public class TestPoolUtils extends TestC
         assertEquals(expectedMethods, calledMethods);
 
         op = new BaseObjectPool<Object>() {
+            @Override
             public Object borrowObject() throws Exception {
                 return new Integer(0);
             }
+            @Override
             public void returnObject(Object obj) {}
+            @Override
             public void invalidateObject(Object obj) {}
         };
         cop = PoolUtils.checkedPool(op, String.class);
@@ -226,12 +229,15 @@ public class TestPoolUtils extends TestC
 
 
         op = new BaseKeyedObjectPool<Object,Object>() {
+            @Override
             public Object borrowObject(Object key) {
                 return new Integer(0);
             }
 
+            @Override
             public void returnObject(Object key, Object obj) {}
 
+            @Override
             public void invalidateObject(Object key, Object obj) {}
         };
         cop = PoolUtils.checkedPool(op, String.class);
@@ -616,6 +622,7 @@ public class TestPoolUtils extends TestC
 
         final List<String> calledMethods = new ArrayList<String>();
         final InvocationHandler handler = new MethodCallLogger(calledMethods) {
+            @Override
             public Object invoke(final Object proxy, final Method method, final Object[]
args) throws Throwable {
                 Object o = super.invoke(proxy, method, args);
                 if (o instanceof Integer) {
@@ -706,6 +713,7 @@ public class TestPoolUtils extends TestC
 
         final List<String> calledMethods = new ArrayList<String>();
         final InvocationHandler handler = new MethodCallLogger(calledMethods) {
+            @Override
             public Object invoke(final Object proxy, final Method method, final Object[]
args) throws Throwable {
                 Object o = super.invoke(proxy, method, args);
                 if (o instanceof Integer) {
@@ -784,6 +792,7 @@ public class TestPoolUtils extends TestC
 
         final List<String> calledMethods = new ArrayList<String>();
         final InvocationHandler handler = new MethodCallLogger(calledMethods) {
+            @Override
             public Object invoke(final Object proxy, final Method method, final Object[]
args) throws Throwable {
                 Object o = super.invoke(proxy, method, args);
                 if (o instanceof Integer) {



Mime
View raw message