Author: mrglavas
Date: Sun Sep 2 12:04:44 2007
New Revision: 572110
URL: http://svn.apache.org/viewvc?rev=572110&view=rev
Log:
Marking several fields final.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Field.java
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/KeyRef.java
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Selector.java
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/XPathMatcher.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Field.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Field.java?rev=572110&r1=572109&r2=572110&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Field.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Field.java Sun Sep
2 12:04:44 2007
@@ -42,11 +42,11 @@
//
/** Field XPath. */
- protected Field.XPath fXPath;
+ protected final Field.XPath fXPath;
/** Identity constraint. */
- protected IdentityConstraint fIdentityConstraint;
+ protected final IdentityConstraint fIdentityConstraint;
//
// Constructors
@@ -206,7 +206,7 @@
//
/** Value store for data values. */
- protected ValueStore fStore;
+ protected final ValueStore fStore;
/** A flag indicating whether the field is allowed to match a value. */
protected boolean fMayMatch = true;
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java?rev=572110&r1=572109&r2=572110&view=diff
==============================================================================
---
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java
(original)
+++
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/IdentityConstraint.java
Sun Sep 2 12:04:44 2007
@@ -44,13 +44,13 @@
protected short type;
/** target namespace */
- protected String fNamespace;
+ protected final String fNamespace;
/** Identity constraint name. */
- protected String fIdentityConstraintName;
+ protected final String fIdentityConstraintName;
/** name of owning element */
- protected String fElementName;
+ protected final String fElementName;
/** Selector. */
protected Selector fSelector;
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/KeyRef.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/KeyRef.java?rev=572110&r1=572109&r2=572110&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/KeyRef.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/KeyRef.java Sun
Sep 2 12:04:44 2007
@@ -35,7 +35,7 @@
//
/** The key (or unique) being referred to. */
- protected UniqueOrKey fKey;
+ protected final UniqueOrKey fKey;
//
// Constructors
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Selector.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Selector.java?rev=572110&r1=572109&r2=572110&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Selector.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/Selector.java Sun
Sep 2 12:04:44 2007
@@ -41,10 +41,10 @@
//
/** XPath. */
- protected Selector.XPath fXPath;
+ protected final Selector.XPath fXPath;
/** Identity constraint. */
- protected IdentityConstraint fIdentityConstraint;
+ protected final IdentityConstraint fIdentityConstraint;
// the Identity constraint we're the matcher for. Only
// used for selectors!
@@ -167,10 +167,10 @@
//
/** Field activator. */
- protected FieldActivator fFieldActivator;
+ protected final FieldActivator fFieldActivator;
/** Initial depth in the document at which this matcher was created. */
- protected int fInitialDepth;
+ protected final int fInitialDepth;
/** Element depth. */
protected int fElementDepth;
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/XPathMatcher.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/XPathMatcher.java?rev=572110&r1=572109&r2=572110&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/XPathMatcher.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/identity/XPathMatcher.java
Sun Sep 2 12:04:44 2007
@@ -27,7 +27,6 @@
import org.apache.xerces.xs.XSTypeDefinition;
import org.xml.sax.SAXException;
-
/**
* XPath matcher.
*
@@ -86,25 +85,25 @@
//
/** XPath location path. */
- private XPath.LocationPath[] fLocationPaths;
+ private final XPath.LocationPath[] fLocationPaths;
/** True if XPath has been matched. */
- private int[] fMatched;
+ private final int[] fMatched;
/** The matching string. */
protected Object fMatchedString;
/** Integer stack of step indexes. */
- private IntStack[] fStepIndexes;
+ private final IntStack[] fStepIndexes;
/** Current step. */
- private int[] fCurrentStep;
+ private final int[] fCurrentStep;
/**
* No match depth. The value of this field will be zero while
* matching is successful for the given xpath expression.
*/
- private int [] fNoMatchDepth;
+ private final int [] fNoMatchDepth;
final QName fQName = new QName();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]