You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/05/23 03:16:44 UTC

svn commit: r177852 - /lenya/trunk/src/java/org/apache/lenya/util/Stack.java

Author: gregor
Date: Sun May 22 18:16:43 2005
New Revision: 177852

URL: http://svn.apache.org/viewcvs?rev=177852&view=rev
Log:
Added documentation to stack helper class

Modified:
    lenya/trunk/src/java/org/apache/lenya/util/Stack.java

Modified: lenya/trunk/src/java/org/apache/lenya/util/Stack.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/util/Stack.java?rev=177852&r1=177851&r2=177852&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/util/Stack.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/util/Stack.java Sun May 22 18:16:43 2005
@@ -23,12 +23,16 @@
 
 
 /**
- * A helper class to implement a stack
+ * A helper class to implement a stack. Unlike java.util.Stack, this stack
+ * discards old elements once maxsize is reached.
+ * @see java.util.Stack
  */
-
-// FIXME: this class seems pretty useless. Why not remove it?
 public class Stack extends Vector {
-    int maxsize = 0;
+    /**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
+	int maxsize = 0;
 
     /**
      * Creates a new Stack object.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org