ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1142186 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/debug/XMLStreamReaderValidator.java
Date Sat, 02 Jul 2011 10:02:01 GMT
Author: veithen
Date: Sat Jul  2 10:02:01 2011
New Revision: 1142186

URL: http://svn.apache.org/viewvc?rev=1142186&view=rev
Log:
Breaking a package cycle.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/debug/XMLStreamReaderValidator.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/debug/XMLStreamReaderValidator.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/debug/XMLStreamReaderValidator.java?rev=1142186&r1=1142185&r2=1142186&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/debug/XMLStreamReaderValidator.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/debug/XMLStreamReaderValidator.java
Sat Jul  2 10:02:01 2011
@@ -18,7 +18,6 @@
  */
 package org.apache.axiom.util.stax.debug;
 
-import org.apache.axiom.om.OMException;
 import org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -85,7 +84,7 @@ public class XMLStreamReaderValidator ex
         return event;
     }
 
-    private void trackEvent(int event) {
+    private void trackEvent(int event) throws XMLStreamException {
         logParserState();
         
         // Make sure that the start element and end element events match.
@@ -118,8 +117,9 @@ public class XMLStreamReaderValidator ex
      * Report a mismatched end element.
      * @param expectedQName
      * @param delegateQName
+     * @throws XMLStreamException 
      */
-    private void reportMismatchedEndElement(QName expectedQName, QName delegateQName) {
+    private void reportMismatchedEndElement(QName expectedQName, QName delegateQName) throws
XMLStreamException {
         String text = null;
         if (expectedQName == null) {
             text = "An END_ELEMENT event for " + delegateQName + 
@@ -133,7 +133,7 @@ public class XMLStreamReaderValidator ex
             log.debug(text);
         }       
         if (throwExceptions) {
-            throw new OMException(text);
+            throw new XMLStreamException(text);
         }
     }
     



Mime
View raw message