Author: sebb
Date: Mon Sep 12 14:33:15 2011
New Revision: 1169769

URL: http://svn.apache.org/viewvc?rev=1169769&view=rev
Log:
CHAIN-57 Chain 2.0 does not build on older JDKs
Alternate solution, not requiring unchecked cast:
Give the Java 1.5 compiler a bit of help resolving the generic

Modified:
    
commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java

Modified: 
commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java
URL: 
http://svn.apache.org/viewvc/commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java?rev=1169769&r1=1169768&r2=1169769&view=diff
==============================================================================
--- 
commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java
 (original)
+++ 
commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java
 Mon Sep 12 14:33:15 2011
@@ -138,7 +138,7 @@ public class DispatchCommandTestCase ext
         }
 
         public <T> T retrieve(String key) {
-            return (T) wrappedContext.retrieve(key);
+            return wrappedContext.<T>retrieve(key);
         }
 
         @Override


Reply via email to