commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: svn commit: r1169769 - /commons/proper/chain/trunk/src/test/java/org/apache/commons/chain/generic/DispatchCommandTestCase.java
Date Mon, 12 Sep 2011 14:37:01 GMT
even better, great, thanks!
Simo

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



On Mon, Sep 12, 2011 at 4:33 PM,  <sebb@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


Mime
View raw message