xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r1225427 - in /xalan/java/trunk/src/org/apache/xml/dtm/ref: ChunkedIntArray.java DTMDocumentImpl.java DTMNamedNodeMap.java IncrementalSAXSource_Filter.java dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java
Date Thu, 29 Dec 2011 04:33:33 GMT
Author: mrglavas
Date: Thu Dec 29 04:33:32 2011
New Revision: 1225427

URL: http://svn.apache.org/viewvc?rev=1225427&view=rev
Log:
Making several inner classes and fields static.

Modified:
    xalan/java/trunk/src/org/apache/xml/dtm/ref/ChunkedIntArray.java
    xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMDocumentImpl.java
    xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNamedNodeMap.java
    xalan/java/trunk/src/org/apache/xml/dtm/ref/IncrementalSAXSource_Filter.java
    xalan/java/trunk/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/ChunkedIntArray.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/ChunkedIntArray.java?rev=1225427&r1=1225426&r2=1225427&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/ChunkedIntArray.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/ChunkedIntArray.java Thu Dec 29 04:33:32 2011
@@ -39,7 +39,7 @@ import org.apache.xml.res.XMLMessages;
  */
 final class ChunkedIntArray
 {
-  final int slotsize=4; // Locked, MUST be power of two in current code
+  static final int slotsize=4; // Locked, MUST be power of two in current code
   // Debugging tip: Cranking lowbits down to 4 or so is a good
   // way to pound on the array addressing code.
   static final int lowbits=10; // How many bits address within chunks
@@ -265,9 +265,9 @@ final class ChunkedIntArray
     }
   }
 
-  class ChunksVector
+  static class ChunksVector
   {
-    final int BLOCKSIZE = 64;
+    static final int BLOCKSIZE = 64;
     int[] m_map[] = new int[BLOCKSIZE][];
     int m_mapSize = BLOCKSIZE;
     int pos = 0;

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMDocumentImpl.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMDocumentImpl.java?rev=1225427&r1=1225426&r2=1225427&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMDocumentImpl.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMDocumentImpl.java Thu Dec 29 04:33:32 2011
@@ -93,7 +93,7 @@ implements DTM, org.xml.sax.ContentHandl
         private boolean done = false;
         boolean m_isError = false;
 
-        private final boolean DEBUG = false;
+        static private final boolean DEBUG = false;
 
         /** The document base URI. */
         protected String m_documentBaseURI;

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNamedNodeMap.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNamedNodeMap.java?rev=1225427&r1=1225426&r2=1225427&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNamedNodeMap.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/DTMNamedNodeMap.java Thu Dec 29 04:33:32 2011
@@ -272,7 +272,7 @@ public class DTMNamedNodeMap implements 
    * Simple implementation of DOMException.
    * @xsl.usage internal
    */
-  public class DTMException extends org.w3c.dom.DOMException
+  public static class DTMException extends org.w3c.dom.DOMException
   {
           static final long serialVersionUID = -8290238117162437678L;
     /**

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/IncrementalSAXSource_Filter.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/IncrementalSAXSource_Filter.java?rev=1225427&r1=1225426&r2=1225427&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/IncrementalSAXSource_Filter.java (original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/IncrementalSAXSource_Filter.java Thu Dec 29
04:33:32 2011
@@ -683,7 +683,7 @@ implements IncrementalSAXSource, Content
 
   /** Used to quickly terminate parse when running under a
       startParse() thread. Only its type is important. */
-  class StopException extends RuntimeException
+  static class StopException extends RuntimeException
   {
           static final long serialVersionUID = -1129245796185754956L;
   }

Modified: xalan/java/trunk/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java
URL: http://svn.apache.org/viewvc/xalan/java/trunk/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java?rev=1225427&r1=1225426&r2=1225427&view=diff
==============================================================================
--- xalan/java/trunk/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java
(original)
+++ xalan/java/trunk/src/org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode.java
Thu Dec 29 04:33:32 2011
@@ -52,7 +52,7 @@ import org.w3c.dom.DOMException;
  * */
 public class DOM2DTMdefaultNamespaceDeclarationNode implements Attr,TypeInfo
 {
-  final String NOT_SUPPORTED_ERR="Unsupported operation on pseudonode";
+  static final String NOT_SUPPORTED_ERR="Unsupported operation on pseudonode";
   
   Element pseudoparent;
   String prefix,uri,nodename;



---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message