ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1793859 - /webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaForm.java
Date Thu, 04 May 2017 19:27:18 GMT
Author: dkulp
Date: Thu May  4 19:27:18 2017
New Revision: 1793859

URL: http://svn.apache.org/viewvc?rev=1793859&view=rev
Log:
[XMLSCHEMA-40] Don't use the locale/toLowerCase and instead use the raw strings.  Performs
better as well.


Modified:
    webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaForm.java

Modified: webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaForm.java
URL: http://svn.apache.org/viewvc/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaForm.java?rev=1793859&r1=1793858&r2=1793859&view=diff
==============================================================================
--- webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaForm.java
(original)
+++ webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaForm.java
Thu May  4 19:27:18 2017
@@ -34,7 +34,13 @@ public enum XmlSchemaForm {
 
     @Override
     public String toString() {
-        return super.toString().toLowerCase();
+        switch (this) {
+        case QUALIFIED:
+            return "qualified";
+        case UNQUALIFIED:
+            return "unqualified";
+        }
+        return "none";
     }
 
 }



Mime
View raw message