xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkro...@apache.org
Subject svn commit: r156114 - xmlbeans/branches/1.x-jdk1.3/src/xmlpublic/org/apache/xmlbeans/XmlError.java xmlbeans/branches/1.x/src/xmlpublic/org/apache/xmlbeans/XmlError.java
Date Fri, 04 Mar 2005 01:07:50 GMT
Author: kkrouse
Date: Thu Mar  3 17:07:48 2005
New Revision: 156114

URL: http://svn.apache.org/viewcvs?view=rev&rev=156114
Log:
XMLBEANS-2: don't dispose of error's cursor created from XmlError.forObject()

Modified:
    xmlbeans/branches/1.x-jdk1.3/src/xmlpublic/org/apache/xmlbeans/XmlError.java
    xmlbeans/branches/1.x/src/xmlpublic/org/apache/xmlbeans/XmlError.java

Modified: xmlbeans/branches/1.x-jdk1.3/src/xmlpublic/org/apache/xmlbeans/XmlError.java
URL: http://svn.apache.org/viewcvs/xmlbeans/branches/1.x-jdk1.3/src/xmlpublic/org/apache/xmlbeans/XmlError.java?view=diff&r1=156113&r2=156114
==============================================================================
--- xmlbeans/branches/1.x-jdk1.3/src/xmlpublic/org/apache/xmlbeans/XmlError.java (original)
+++ xmlbeans/branches/1.x-jdk1.3/src/xmlpublic/org/apache/xmlbeans/XmlError.java Thu Mar 
3 17:07:48 2005
@@ -180,8 +180,6 @@
 
         XmlCursor cur = xobj.newCursor();
         XmlError result = forCursor(message, severity, cur);
-        if (cur != null)
-            cur.dispose();
         return result;
     }
 
@@ -474,4 +472,4 @@
 
         return i;
     }
-}
\ No newline at end of file
+}

Modified: xmlbeans/branches/1.x/src/xmlpublic/org/apache/xmlbeans/XmlError.java
URL: http://svn.apache.org/viewcvs/xmlbeans/branches/1.x/src/xmlpublic/org/apache/xmlbeans/XmlError.java?view=diff&r1=156113&r2=156114
==============================================================================
--- xmlbeans/branches/1.x/src/xmlpublic/org/apache/xmlbeans/XmlError.java (original)
+++ xmlbeans/branches/1.x/src/xmlpublic/org/apache/xmlbeans/XmlError.java Thu Mar  3 17:07:48
2005
@@ -180,8 +180,6 @@
 
         XmlCursor cur = xobj.newCursor();
         XmlError result = forCursor(message, severity, cur);
-        if (cur != null)
-            cur.dispose();
         return result;
     }
 
@@ -409,4 +407,4 @@
 
         return sb.toString();
     }
-}
\ No newline at end of file
+}



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


Mime
View raw message