ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1611798 - /webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DOMUtil.java
Date Fri, 18 Jul 2014 20:52:09 GMT
Author: veithen
Date: Fri Jul 18 20:52:09 2014
New Revision: 1611798

URL: http://svn.apache.org/r1611798
Log:
newDOMException should return the exception, not throw it.

Modified:
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DOMUtil.java

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DOMUtil.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DOMUtil.java?rev=1611798&r1=1611797&r2=1611798&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DOMUtil.java
(original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DOMUtil.java
Fri Jul 18 20:52:09 2014
@@ -89,7 +89,7 @@ class DOMUtil {
     }
     
     public static DOMException newDOMException(short code) {
-        throw new DOMException(code, DOMMessageFormatter.formatMessage(
+        return new DOMException(code, DOMMessageFormatter.formatMessage(
                 code, null));
     }
 }



Mime
View raw message