Commit d9d2ab4c authored by Dmitry Jemerov's avatar Dmitry Jemerov
Browse files

fix correct but unnecessarily confusing code

parent 3a41d609
Showing with 1 addition and 2 deletions
+1 -2
......@@ -116,8 +116,7 @@ public class XsltSupport {
if (isXsltAttribute(attribute)) {
final String tagName = attribute.getParent().getLocalName();
final String s = XPATH_ATTR_MAP.get(name);
//noinspection StringEquality
if (s != "" && !tagName.equals(s)) {
if ((s == null || s.length() > 0) && !tagName.equals(s)) {
if (!isAttributeValueTemplate(attribute, true)) {
return false;
}
......
Supports Markdown
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