commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1130707 - /commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/RowInserterRule.java
Date Thu, 02 Jun 2011 18:31:51 GMT
Author: simonetripodi
Date: Thu Jun  2 18:31:50 2011
New Revision: 1130707

URL: http://svn.apache.org/viewvc?rev=1130707&view=rev
Log:
Digester instance cannot be accessed directly, used the getter instead

Modified:
    commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/RowInserterRule.java

Modified: commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/RowInserterRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/RowInserterRule.java?rev=1130707&r1=1130706&r2=1130707&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/RowInserterRule.java
(original)
+++ commons/sandbox/digester3/trunk/src/examples/api/dbinsert/src/main/java/org/apache/commons/digester3/examples/api/dbinsert/RowInserterRule.java
Thu Jun  2 18:31:50 2011
@@ -38,7 +38,7 @@ public class RowInserterRule extends org
      * can be stored on it.
      */
     public void begin(String namespace, String name, org.xml.sax.Attributes attrs) {
-        digester.push(new Row());
+        getDigester().push(new Row());
     }
     
     /**
@@ -56,8 +56,8 @@ public class RowInserterRule extends org
      * valid use of Digester.
      */
     public void end(String namespace, String name) {
-        Row row = (Row) digester.pop();
-        Table table = (Table) digester.peek();
+        Row row = getDigester().pop();
+        Table table = getDigester().peek();
 
         // Obviously, all this would be replaced by code like:
         //   stmt = conn.prepareStatement();



Mime
View raw message