xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r1023652 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XSDTypeAlternativeValidator.java
Date Mon, 18 Oct 2010 05:07:53 GMT
Author: mrglavas
Date: Mon Oct 18 05:07:53 2010
New Revision: 1023652

URL: http://svn.apache.org/viewvc?rev=1023652&view=rev
Log:
None of the fields of InheritableAttribute are ever updated or accessed outside of their class
so marking them final and private.

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XSDTypeAlternativeValidator.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XSDTypeAlternativeValidator.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XSDTypeAlternativeValidator.java?rev=1023652&r1=1023651&r2=1023652&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XSDTypeAlternativeValidator.java
(original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XSDTypeAlternativeValidator.java
Mon Oct 18 05:07:53 2010
@@ -252,13 +252,13 @@ public class XSDTypeAlternativeValidator
      * is used as an intermediate storage, for inheritable attribute 
      * information.
      */
-    class InheritableAttribute {       
+    final class InheritableAttribute {       
        
-       String localName = "";
-       String prefix = "";
-       String uri = "";
-       String value = "";
-       String type = "";
+       private final String localName;
+       private final String prefix;
+       private final String uri;
+       private final String value;
+       private final String type;
       
        public InheritableAttribute(String localName,
                                    String prefix,



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message