summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-15 15:53:32 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-15 16:35:02 +0100
commit9d2a3acf40697776453e27c00a07db6d81f1e28f (patch)
tree06ac77ab31a0b930911a4d5add8b4f62c4e6fe34 /qadevOOo
parent5d9995131d78e169697aabbdcb09c446900aff89 (diff)
coverity#1327203 UwF: Unwritten field
Change-Id: I120b6cd6908ab4263a3ec3f8318aff8e507ab62b
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/util/XMLTools.java20
1 files changed, 1 insertions, 19 deletions
diff --git a/qadevOOo/runner/util/XMLTools.java b/qadevOOo/runner/util/XMLTools.java
index 768236a1333d..5feda4867ccc 100644
--- a/qadevOOo/runner/util/XMLTools.java
+++ b/qadevOOo/runner/util/XMLTools.java
@@ -44,7 +44,6 @@ public class XMLTools {
}
private final HashMap<String, Attribute> attrByName = new HashMap<String, Attribute>() ;
private final ArrayList<Attribute> attributes = new ArrayList<Attribute>() ;
- private PrintWriter log = null ;
/**
* Creates a class instance.
@@ -83,47 +82,30 @@ public class XMLTools {
****************************************/
public short getLength() {
- if (log != null)
- log.println("getLength() called -> " + attributes.size()) ;
return (short) attributes.size() ;
}
public String getNameByIndex(short idx) {
String name = attributes.get(idx).Name ;
- if (log != null)
- log.println("getNameByIndex(" + idx + ") called -> '" +
- name + "'") ;
return name ;
}
public String getTypeByIndex(short idx) {
String type = attributes.get(idx).Type ;
- if (log != null)
- log.println("getTypeByIndex(" + idx + ") called -> '" +
- type + "'") ;
return type;
}
public String getTypeByName(String name) {
String type = attrByName.get(name).Type ;
- if (log != null)
- log.println("getTypeByName('" + name + "') called -> '" +
- type + "'") ;
return type;
}
public String getValueByIndex(short idx) {
String value = attributes.get(idx).Value ;
- if (log != null)
- log.println("getValueByIndex(" + idx + ") called -> '" +
- value + "'") ;
- return value;
+ return value;
}
public String getValueByName(String name) {
String value = attrByName.get(name).Value ;
- if (log != null)
- log.println("getValueByName('" + name + "') called -> '" +
- value + "'") ;
return value;
}
}