8003260: [findbug] some fields should be package protected

Change public or protected mutable static fields to private or package private.

Reviewed-by: lancea
This commit is contained in:
Joe Wang 2012-12-14 13:24:34 -08:00
parent 924beaaf2c
commit fd69767808
2 changed files with 7 additions and 4 deletions

View File

@ -193,9 +193,12 @@ public class XMLDocumentFragmentScannerImpl
null,
};
protected static final char [] cdata = {'[','C','D','A','T','A','['};
protected static final char [] xmlDecl = {'<','?','x','m','l'};
protected static final char [] endTag = {'<','/'};
private static final char [] cdata = {'[','C','D','A','T','A','['};
private static final char [] endTag = {'<','/'};
//this variable is also used by XMLDocumentScannerImpl in the same package
static final char [] xmlDecl = {'<','?','x','m','l'};
// debugging
/** Debug scanner state. */

View File

@ -71,7 +71,7 @@ public class XMLEntityScanner implements XMLLocator {
/** Listeners which should know when load is being called */
private Vector listeners = new Vector();
public static final boolean [] VALID_NAMES = new boolean[127];
private static final boolean [] VALID_NAMES = new boolean[127];
/**
* Debug printing of buffer. This debugging flag works best when you