commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1102066 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/StackAction.java
Date Wed, 11 May 2011 20:18:23 GMT
Author: simonetripodi
Date: Wed May 11 20:18:23 2011
New Revision: 1102066

URL: http://svn.apache.org/viewvc?rev=1102066&view=rev
Log:
StackAction methods can use generics now

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/StackAction.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/StackAction.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/StackAction.java?rev=1102066&r1=1102065&r2=1102066&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/StackAction.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/StackAction.java
Wed May 11 20:18:23 2011
@@ -59,7 +59,7 @@ public interface StackAction {
      * but this method could return an alternate object to be pushed
      * instead (eg a proxy for the provided object).
      */
-    public Object onPush(Digester d, String stackName, Object o);
+    <T> T onPush(Digester d, String stackName, T o);
 
     /**
      * Invoked just after an object has been popped from a digester stack.
@@ -74,5 +74,5 @@ public interface StackAction {
      * @return the object to be returned to the called. Normally, parameter
      * o is returned but this method could return an alternate object.
      */
-    public Object onPop(Digester d, String stackName, Object o);
+    <T> T onPop(Digester d, String stackName, T o);
 }



Mime
View raw message