Author: mrglavas
Date: Sun Sep  2 11:48:31 2007
New Revision: 572108

URL: http://svn.apache.org/viewvc?rev=572108&view=rev
Log:
Marking several fields final.

Modified:
    xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/BMPattern.java
    xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Op.java
    xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/ParseException.java
    xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Token.java

Modified: 
xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/BMPattern.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/BMPattern.java?rev=572108&r1=572107&r2=572108&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/BMPattern.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/BMPattern.java Sun 
Sep  2 11:48:31 2007
@@ -27,9 +27,9 @@
  * @version $Id$
  */
 public class BMPattern {
-    char[] pattern;
-    int[] shiftTable;
-    boolean ignoreCase;
+    final char[] pattern;
+    final int[] shiftTable;
+    final boolean ignoreCase;
 
     public BMPattern(String pat, boolean ignoreCase) {
         this(pat, 256, ignoreCase);

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Op.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Op.java?rev=572108&r1=572107&r2=572108&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Op.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Op.java Sun Sep  2 
11:48:31 2007
@@ -124,7 +124,7 @@
         return op;
     }
 
-    int type;
+    final int type;
     Op next = null;
 
     protected Op(int type) {
@@ -156,7 +156,7 @@
 
     // ================================================================
     static class CharOp extends Op {
-        int charData;
+        final int charData;
         CharOp(int type, int data) {
             super(type);
             this.charData = data;
@@ -168,7 +168,7 @@
 
     // ================================================================
     static class UnionOp extends Op {
-        Vector branches;
+        final Vector branches;
         UnionOp(int type, int size) {
             super(type);
             this.branches = new Vector(size);
@@ -199,8 +199,8 @@
     }
     // ================================================================
     static class ModifierOp extends ChildOp {
-        int v1;
-        int v2;
+        final int v1;
+        final int v2;
         ModifierOp(int type, int v1, int v2) {
             super(type);
             this.v1 = v1;
@@ -215,7 +215,7 @@
     }
     // ================================================================
     static class RangeOp extends Op {
-        Token tok;
+        final Token tok;
         RangeOp(int type, Token tok) {
             super(type);
             this.tok = tok;
@@ -226,7 +226,7 @@
     }
     // ================================================================
     static class StringOp extends Op {
-        String string;
+        final String string;
         StringOp(int type, String literal) {
             super(type);
             this.string = literal;
@@ -237,10 +237,10 @@
     }
     // ================================================================
     static class ConditionOp extends Op {
-        int refNumber;
-        Op condition;
-        Op yes;
-        Op no;
+        final int refNumber;
+        final Op condition;
+        final Op yes;
+        final Op no;
         ConditionOp(int type, int refno, Op conditionflow, Op yesflow, Op 
noflow) {
             super(type);
             this.refNumber = refno;

Modified: 
xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/ParseException.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/ParseException.java?rev=572108&r1=572107&r2=572108&view=diff
==============================================================================
--- 
xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/ParseException.java 
(original)
+++ 
xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/ParseException.java 
Sun Sep  2 11:48:31 2007
@@ -28,7 +28,7 @@
     /** Serialization version. */
     static final long serialVersionUID = -7012400318097691370L;
     
-    int location;
+    final int location;
 
     /*
     public ParseException(String mes) {

Modified: xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Token.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Token.java?rev=572108&r1=572107&r2=572108&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Token.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xpath/regex/Token.java Sun Sep 
 2 11:48:31 2007
@@ -57,7 +57,7 @@
 
     static final int UTF16_MAX = 0x10ffff;
 
-    int type;
+    final int type;
 
     static Token token_dot;
     static Token token_0to9;
@@ -1083,7 +1083,7 @@
         private static final long serialVersionUID = -4614366944218504172L;
         
         String string;
-        int refNumber;
+        final int refNumber;
 
         StringToken(int type, String str, int n) {
             super(type);
@@ -1113,8 +1113,8 @@
 
         private static final long serialVersionUID = 8717321425541346381L;
         
-        Token child;
-        Token child2;
+        final Token child;
+        final Token child2;
         
         ConcatToken(Token t1, Token t2) {
             super(Token.CONCAT);
@@ -1148,7 +1148,7 @@
 
         private static final long serialVersionUID = -4394272816279496989L;
         
-        int chardata;
+        final int chardata;
 
         CharToken(int type, int ch) {
             super(type);
@@ -1214,7 +1214,7 @@
         
         int min;
         int max;
-        Token child;
+        final Token child;
 
         ClosureToken(int type, Token tok) {
             super(type);
@@ -1281,8 +1281,8 @@
 
         private static final long serialVersionUID = -5938014719827987704L;
         
-        Token child;
-        int parennumber;
+        final Token child;
+        final int parennumber;
 
         ParenToken(int type, Token tok, int paren) {
             super(type);
@@ -1339,10 +1339,10 @@
 
         private static final long serialVersionUID = 4353765277910594411L;
         
-        int refNumber;
-        Token condition;
-        Token yes;
-        Token no;
+        final int refNumber;
+        final Token condition;
+        final Token yes;
+        final Token no;
         ConditionToken(int refno, Token cond, Token yespat, Token nopat) {
             super(Token.CONDITION);
             this.refNumber = refno;
@@ -1385,9 +1385,9 @@
 
         private static final long serialVersionUID = -9114536559696480356L;
         
-        Token child;
-        int add;
-        int mask;
+        final Token child;
+        final int add;
+        final int mask;
 
         ModifierToken(Token tok, int add, int mask) {
             super(Token.MODIFIERGROUP);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to