maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r416961 - /maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/SinkActionContext.java
Date Sat, 24 Jun 2006 21:18:59 GMT
Author: jvanzyl
Date: Sat Jun 24 14:18:59 2006
New Revision: 416961

URL: http://svn.apache.org/viewvc?rev=416961&view=rev
Log:
o updating to what i think vincent meant

Modified:
    maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/SinkActionContext.java

Modified: maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/SinkActionContext.java
URL: http://svn.apache.org/viewvc/maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/SinkActionContext.java?rev=416961&r1=416960&r2=416961&view=diff
==============================================================================
--- maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/SinkActionContext.java
(original)
+++ maven/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/module/SinkActionContext.java
Sat Jun 24 14:18:59 2006
@@ -1,5 +1,7 @@
 package org.apache.maven.doxia.module;
 
+import java.util.Stack;
+
 /**
  * @author Jason van Zyl
  */
@@ -52,20 +54,20 @@
     public static final int ANCHOR = 81;
     public static final int UNDEFINED = 82;
 
-    private int currentAction;
+    private Stack stack = new Stack();
 
     public int getCurrentAction()
     {
-        return currentAction;
+        return ((Integer)stack.peek()).intValue();
     }
 
     public void release()
     {
-        currentAction = -1;
+        stack.pop();
     }
 
     public void setAction( int action )
     {
-        currentAction = action;
+        stack.push( new Integer( action ) );
     }
 }



Mime
View raw message