# HG changeset patch # User joehw # Date 1355520274 28800 # Node ID 2e992d2acc8ba1fd404e9e0c91985812dcbc14ff # Parent 76cc9bd3ece407d3a15d3bea537b57927973c5e7 8003260: [findbug] some fields should be package protected Summary: change public or protected mutable static fields to private or package private. Reviewed-by: lancea diff -r 76cc9bd3ece4 -r 2e992d2acc8b jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java --- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java Wed Jul 05 18:31:27 2017 +0200 +++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java Fri Dec 14 13:24:34 2012 -0800 @@ -193,9 +193,12 @@ 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. */ diff -r 76cc9bd3ece4 -r 2e992d2acc8b jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java --- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java Wed Jul 05 18:31:27 2017 +0200 +++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/XMLEntityScanner.java Fri Dec 14 13:24:34 2012 -0800 @@ -71,7 +71,7 @@ /** 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