diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-08-23 08:01:47 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-08-23 08:01:47 +0200 |
commit | 496f531e2ef2cad5ff4dfb01ef0afe87c8b6b5c3 (patch) | |
tree | f7d3ecf75a0238c5521b888aa0e61722ea07c289 /src/main/java/eu/siacs/conversations/xml | |
parent | 7c822c9b758ca7765d83779226e8961ba589c52e (diff) |
modified clearIqCallbacks into 2-step process
Diffstat (limited to 'src/main/java/eu/siacs/conversations/xml')
-rw-r--r-- | src/main/java/eu/siacs/conversations/xml/Element.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/xml/Element.java b/src/main/java/eu/siacs/conversations/xml/Element.java index dc5a68f6..7b4937b2 100644 --- a/src/main/java/eu/siacs/conversations/xml/Element.java +++ b/src/main/java/eu/siacs/conversations/xml/Element.java @@ -69,10 +69,9 @@ public class Element { public Element findChild(String name, String xmlns) { for (Element child : this.children) { - if (child.getName().equals(name) - && (child.getAttribute("xmlns").equals(xmlns))) { + if (name.equals(child.getName()) && xmlns.equals(child.getAttribute("xmlns"))) { return child; - } + } } return null; } |