commit | 1f40dcb44965d26cbc8c825567f4102c69df3e92 | [log] [tgz] |
---|---|---|
author | nitind <nitind> | Tue Jun 16 17:51:44 2009 +0000 |
committer | nitind <nitind> | Tue Jun 16 17:51:44 2009 +0000 |
tree | 17d3cfb21292b81b61b17947ef195660c4a36f1f | |
parent | 325fc3761b86ed6c3a3c89bd690366e92b2f87e6 [diff] |
[278868] IntStack.size() is incorrect
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/contenttype/BooleanStack.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/contenttype/BooleanStack.java index 3889819..8250136 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/contenttype/BooleanStack.java +++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/contenttype/BooleanStack.java
@@ -102,7 +102,22 @@ } public int size() { - return list.length; + return size; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + public String toString() { + StringBuffer s = new StringBuffer(getClass().getName() + ":" +size + " ["); + for (int i = 0; i < size; i++) { + s.append(list[i]); + if(i < size - 1) { + s.append(", "); + } + } + s.append("]"); + return s.toString(); } public static void setMaxDepth(int depth) {