You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Simone Tripodi <si...@apache.org> on 2011/09/12 16:37:01 UTC

Re: svn commit: r1169769 - /commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java

even better, great, thanks!
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Mon, Sep 12, 2011 at 4:33 PM,  <se...@apache.org> wrote:
> 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
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org