Author: rdonkin
Date: Thu Aug 25 11:24:07 2005
New Revision: 240113
URL: http://svn.apache.org/viewcvs?rev=240113&view=rev
Log:
New formulation means no complaints from digester.
Modified:
jakarta/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java
Modified:
jakarta/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java?rev=240113&r1=240112&r2=240113&view=diff
==============================================================================
---
jakarta/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java
(original)
+++
jakarta/commons/proper/betwixt/trunk/src/java/org/apache/commons/betwixt/io/BeanRuleSet.java
Thu Aug 25 11:24:07 2005
@@ -401,10 +401,9 @@
*/
public Object popBean() {
Object bean = super.popBean();
- Object top = digester.pop();
- if (digester.peek() == null) {
- // don't pop the last from the stack
- digester.push(top);
+ // don't pop the last from the stack
+ if (digester.getCount() > 0) {
+ digester.pop();
}
return bean;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]