diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 11:36:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:22 +0200 |
commit | da677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch) | |
tree | 9aa09066c95935117bf405b119ed9f89f448a54d /qadevOOo/runner/util/XMLTools.java | |
parent | 14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff) |
java: reduce scope, make fields private
found by UCDetector
Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'qadevOOo/runner/util/XMLTools.java')
-rw-r--r-- | qadevOOo/runner/util/XMLTools.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/qadevOOo/runner/util/XMLTools.java b/qadevOOo/runner/util/XMLTools.java index 7516d4b8c895..f4d7fbf0f515 100644 --- a/qadevOOo/runner/util/XMLTools.java +++ b/qadevOOo/runner/util/XMLTools.java @@ -252,13 +252,13 @@ public class XMLTools { * if the XML data and structure was valid. */ public static class XMLWellFormChecker extends XMLWriter { - protected boolean docStarted = false ; - protected boolean docEnded = false ; - protected ArrayList<String> tagStack = new ArrayList<String>() ; - protected boolean wellFormed = true ; - protected boolean noOtherErrors = true ; - protected PrintWriter log = null ; - protected boolean printXMLData = false ; + private boolean docStarted = false ; + private boolean docEnded = false ; + ArrayList<String> tagStack = new ArrayList<String>() ; + private boolean wellFormed = true ; + private boolean noOtherErrors = true ; + PrintWriter log = null ; + private boolean printXMLData = false ; private XMLWellFormChecker(PrintWriter log) { super() ; @@ -371,9 +371,9 @@ public class XMLTools { * appropriate message is output. */ public static class XMLTagsChecker extends XMLWellFormChecker { - protected HashMap<String,String> tags = new HashMap<String,String>() ; - protected HashMap<String,String> chars = new HashMap<String,String>() ; - protected boolean allOK = true ; + private HashMap<String,String> tags = new HashMap<String,String>() ; + private HashMap<String,String> chars = new HashMap<String,String>() ; + private boolean allOK = true ; public XMLTagsChecker(PrintWriter log) { super(log) ; @@ -627,11 +627,11 @@ public class XMLTools { * character data exists inside any tag specified. */ public static class XMLChecker extends XMLWellFormChecker { - protected HashSet<String> tagSet = new HashSet<String>() ; - protected ArrayList<Tag[]> tags = new ArrayList<Tag[]>() ; - protected ArrayList<Object[]> chars = new ArrayList<Object[]>() ; - protected ArrayList<String> tagStack = new ArrayList<String>() ; - protected ArrayList<AttributeList> attrStack = new ArrayList<AttributeList>() ; + private HashSet<String> tagSet = new HashSet<String>() ; + private ArrayList<Tag[]> tags = new ArrayList<Tag[]>() ; + private ArrayList<Object[]> chars = new ArrayList<Object[]>() ; + private ArrayList<String> tagStack = new ArrayList<String>() ; + private ArrayList<AttributeList> attrStack = new ArrayList<AttributeList>() ; public XMLChecker(PrintWriter log, boolean writeXML) { super(log, writeXML) ; |