cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r1023408 - /cxf/trunk/common/common/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaUtils.java
Date Sun, 17 Oct 2010 02:27:50 GMT
Author: bimargulies
Date: Sun Oct 17 02:27:50 2010
New Revision: 1023408

URL: http://svn.apache.org/viewvc?rev=1023408&view=rev
Log:
stop trying to set a name= for xml schema items with a ref=

Modified:
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaUtils.java

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaUtils.java?rev=1023408&r1=1023407&r2=1023408&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaUtils.java
(original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/xmlschema/XmlSchemaUtils.java
Sun Oct 17 02:27:50 2010
@@ -68,14 +68,6 @@ public final class XmlSchemaUtils {
     private XmlSchemaUtils() {
     }
 
-    private static void setNameFromQName(XmlSchemaElement element, QName name) {
-        if (name == null) {
-            element.setName(null);
-        } else {
-            element.setName(name.getLocalPart());
-        }
-    }
-
     /**
      * Wrapper around XmlSchemaElement.setName that checks for inconsistency with
      * refName.
@@ -112,7 +104,6 @@ public final class XmlSchemaUtils {
         }
         element.getRef().setTargetQName(name);
         // cxf conventionally keeps something in the name slot.
-        setNameFromQName(element, name);
     }
 
     /**



Mime
View raw message