coverity#1326568 Unused value
Change-Id: Idf1efef484d3a89bd56ba9a6807d4191ef95cb41
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user