commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1164510 - /commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
Date Fri, 02 Sep 2011 12:38:34 GMT
Author: simonetripodi
Date: Fri Sep  2 12:38:34 2011
New Revision: 1164510

URL: http://svn.apache.org/viewvc?rev=1164510&view=rev
Log:
fixed Filter generic type, if command = Command<C> && command instance of Filter
--> Filter<C>

Modified:
    commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java

Modified: commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java?rev=1164510&r1=1164509&r2=1164510&view=diff
==============================================================================
--- commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
(original)
+++ commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/impl/ChainBase.java
Fri Sep  2 12:38:34 2011
@@ -206,7 +206,7 @@ public class ChainBase<C extends Context
             if (commands.get(j) instanceof Filter) {
                 try {
                     result =
-                        ((Filter) commands.get(j)).postprocess(context,
+                        ((Filter<C>) commands.get(j)).postprocess(context,
                                                            saveException);
                     if (result) {
                         handled = true;



Mime
View raw message