You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/06/19 22:59:16 UTC

svn commit: r415418 - in /xerces/java/trunk/src/org/apache/xerces/impl/io: ASCIIReader.java UCSReader.java UTF8Reader.java

Author: mrglavas
Date: Mon Jun 19 13:59:15 2006
New Revision: 415418

URL: http://svn.apache.org/viewvc?rev=415418&view=rev
Log:
Marking several fields final in the native readers.
They're assigned in the constructor and never re-assigned later.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/io/ASCIIReader.java
    xerces/java/trunk/src/org/apache/xerces/impl/io/UCSReader.java
    xerces/java/trunk/src/org/apache/xerces/impl/io/UTF8Reader.java

Modified: xerces/java/trunk/src/org/apache/xerces/impl/io/ASCIIReader.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/io/ASCIIReader.java?rev=415418&r1=415417&r2=415418&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/io/ASCIIReader.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/io/ASCIIReader.java Mon Jun 19 13:59:15 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2002,2004 The Apache Software Foundation.
+ * Copyright 2000-2002,2004,2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -48,10 +48,10 @@
     //
 
     /** Input stream. */
-    protected InputStream fInputStream;
+    protected final InputStream fInputStream;
 
     /** Byte buffer. */
-    protected byte[] fBuffer;
+    protected final byte[] fBuffer;
 
     // message formatter; used to produce localized
     // exception messages

Modified: xerces/java/trunk/src/org/apache/xerces/impl/io/UCSReader.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/io/UCSReader.java?rev=415418&r1=415417&r2=415418&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/io/UCSReader.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/io/UCSReader.java Mon Jun 19 13:59:15 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2002,2004 The Apache Software Foundation.
+ * Copyright 2000-2002,2004,2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -52,13 +52,13 @@
     //
 
     /** Input stream. */
-    protected InputStream fInputStream;
+    protected final InputStream fInputStream;
 
     /** Byte buffer. */
-    protected byte[] fBuffer;
+    protected final byte[] fBuffer;
 
     // what kind of data we're dealing with
-    protected short fEncoding;
+    protected final short fEncoding;
 
     //
     // Constructors

Modified: xerces/java/trunk/src/org/apache/xerces/impl/io/UTF8Reader.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/io/UTF8Reader.java?rev=415418&r1=415417&r2=415418&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/io/UTF8Reader.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/io/UTF8Reader.java Mon Jun 19 13:59:15 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2000-2004 The Apache Software Foundation.
+ * Copyright 2000-2004,2006 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -53,10 +53,10 @@
     //
 
     /** Input stream. */
-    protected InputStream fInputStream;
+    protected final InputStream fInputStream;
 
     /** Byte buffer. */
-    protected byte[] fBuffer;
+    protected final byte[] fBuffer;
 
     /** Offset into buffer. */
     protected int fOffset;



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