commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130733 - /commons/sandbox/digester3/trunk/src/examples/api/document-markup/src/main/java/org/apache/commons/digester3/examples/api/documentmarkup/MarkupDigester.java
Date Thu, 02 Jun 2011 18:59:30 GMT
Author: simonetripodi
Date: Thu Jun  2 18:59:29 2011
New Revision: 1130733

URL: http://svn.apache.org/viewvc?rev=1130733&view=rev
Log:
fixed Stack<List<Rule>> access

Modified:
    commons/sandbox/digester3/trunk/src/examples/api/document-markup/src/main/java/org/apache/commons/digester3/examples/api/documentmarkup/MarkupDigester.java

Modified: commons/sandbox/digester3/trunk/src/examples/api/document-markup/src/main/java/org/apache/commons/digester3/examples/api/documentmarkup/MarkupDigester.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/api/document-markup/src/main/java/org/apache/commons/digester3/examples/api/documentmarkup/MarkupDigester.java?rev=1130733&r1=1130732&r2=1130733&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/api/document-markup/src/main/java/org/apache/commons/digester3/examples/api/documentmarkup/MarkupDigester.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/api/document-markup/src/main/java/org/apache/commons/digester3/examples/api/documentmarkup/MarkupDigester.java
Thu Jun  2 18:59:29 2011
@@ -140,11 +140,11 @@ public class MarkupDigester
         if ( currTextSegment.length() > 0 )
         {
             String segment = currTextSegment.toString();
-            List parentMatches = (List) matches.peek();
+            List<Rule> parentMatches = getMatches().peek();
             int len = parentMatches.size();
             for ( int i = 0; i < len; ++i )
             {
-                Rule r = (Rule) parentMatches.get( i );
+                Rule r = parentMatches.get( i );
                 if ( r instanceof TextSegmentHandler )
                 {
                     TextSegmentHandler h = (TextSegmentHandler) r;



Mime
View raw message