ws-mirae-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r367175 - /webservices/mirae/trunk/src/mirae/stax/javax/xml/namespace/QName.java
Date Mon, 09 Jan 2006 03:29:10 GMT
Author: ias
Date: Sun Jan  8 19:29:08 2006
New Revision: 367175

URL: http://svn.apache.org/viewcvs?rev=367175&view=rev
Log:
Fix - constructor must throws IllegalArugmentException in case of prefix null.

Modified:
    webservices/mirae/trunk/src/mirae/stax/javax/xml/namespace/QName.java

Modified: webservices/mirae/trunk/src/mirae/stax/javax/xml/namespace/QName.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/src/mirae/stax/javax/xml/namespace/QName.java?rev=367175&r1=367174&r2=367175&view=diff
==============================================================================
--- webservices/mirae/trunk/src/mirae/stax/javax/xml/namespace/QName.java (original)
+++ webservices/mirae/trunk/src/mirae/stax/javax/xml/namespace/QName.java Sun Jan  8 19:29:08
2006
@@ -100,9 +100,9 @@
         // throw new IllegalArgumentException("namespaceURI not allowed to be
         // null");
 
-        if (prefix == null)
-            prefix = "";
-        // throw new IllegalArgumentException("prefix not allowed to be null");
+        if (prefix == null) {
+            throw new IllegalArgumentException("prefix not allowed to be null");
+        }
 
         this.namespaceURI = namespaceURI;
         this.localPart = localPart;



---------------------------------------------------------------------
To unsubscribe, e-mail: mirae-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: mirae-dev-help@ws.apache.org


Mime
View raw message