From 0664ce1baca91b766aca89ffb2b31320c79ab764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 28 Jun 2016 11:46:29 +0200 Subject: [PATCH] XmlName.equals: simplify, take 2 --- xml/dom-openapi/src/com/intellij/util/xml/XmlName.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java b/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java index ec528256e7fd..b730d05b5b38 100644 --- a/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java +++ b/xml/dom-openapi/src/com/intellij/util/xml/XmlName.java @@ -57,11 +57,7 @@ public class XmlName implements Comparable { final XmlName xmlName = (XmlName)o; if (!myLocalName.equals(xmlName.myLocalName)) return false; - if (Comparing.equal(myNamespaceKey, xmlName.myNamespaceKey)) return true; - - if (myNamespaceKey == null) return false; - - return myNamespaceKey.equals(xmlName.myNamespaceKey); + return Comparing.equal(myNamespaceKey, xmlName.myNamespaceKey); } public int hashCode() {