Kaydet (Commit) d9bb7014 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326568 Unused value

Change-Id: Idf1efef484d3a89bd56ba9a6807d4191ef95cb41
üst 6946b688
......@@ -151,18 +151,10 @@ public class ParcelDescriptor {
String language, languagename, description = "";
Map<String, String> langProps = new HashMap<String, String>();
NodeList nl;
Element tmp;
Element scriptElement = (Element)scriptNodes.item(i);
language = scriptElement.getAttribute("language");
nl = scriptElement.getElementsByTagName("logicalname");
if (nl != null)
{
tmp = (Element)nl.item(0);
}
// get the text of the description element
nl = scriptElement.getElementsByTagName("locale");
......@@ -185,7 +177,7 @@ public class ParcelDescriptor {
if (nl == null) {
languagename = "";
} else {
tmp = (Element)nl.item(0);
Element tmp = (Element)nl.item(0);
languagename = tmp.getAttribute("value");
}
......@@ -197,7 +189,7 @@ public class ParcelDescriptor {
if (props != null) {
for (int j = 0; j < props.getLength(); j++) {
tmp = (Element)props.item(j);
Element tmp = (Element)props.item(j);
String key = tmp.getAttribute("name");
String val = tmp.getAttribute("value");
langProps.put(key, val);
......@@ -364,4 +356,4 @@ public class ParcelDescriptor {
//add to the Top Element
main.appendChild(root);
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment