Skip to content

Commit

Permalink
Flip method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dizzzz committed Jul 30, 2024
1 parent f601694 commit 3690d42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ public RangeIndexConfigAttributeCondition(final Element elem, final NodePath par
}

final String caseString = elem.getAttribute("case");
caseSensitive = (caseString != null && !caseString.equalsIgnoreCase("no"));
caseSensitive = (caseString != null && !"no".equalsIgnoreCase(caseString));

final String numericString = elem.getAttribute("numeric");
numericComparison = (numericString != null && numericString.equalsIgnoreCase("yes"));
numericComparison = (numericString != null && "yes".equalsIgnoreCase(numericString));

// try to create a pattern matcher for a 'matches' condition
if (operator == Operator.MATCH) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public RangeIndexConfigElement(final Element node, final Map<String, String> nam
usesCollation = true;
}
final String nested = node.getAttribute("nested");
includeNested = (nested == null || nested.isEmpty() || nested.equalsIgnoreCase("yes"));
includeNested = (nested == null || nested.isEmpty() || "yes".equalsIgnoreCase(nested));

// normalize whitespace if whitespace="normalize"
final String whitespace = node.getAttribute("whitespace");
Expand All @@ -106,7 +106,7 @@ public RangeIndexConfigElement(final Element node, final Map<String, String> nam

final String caseStr = node.getAttribute("case");
if (caseStr != null && !caseStr.isEmpty()) {
caseSensitive = caseStr.equalsIgnoreCase("yes");
caseSensitive = "yes".equalsIgnoreCase(caseStr);
}
final String custom = node.getAttribute("converter");
if (custom != null && !custom.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public RangeIndexConfigField(final NodePath parentPath, final Element elem, fina
}
}
final String nested = elem.getAttribute("nested");
includeNested = (nested == null || nested.equalsIgnoreCase("yes"));
includeNested = (nested == null || "yes".equalsIgnoreCase(nested));
path.setIncludeDescendants(includeNested);

// normalize whitespace if whitespace="normalize"
Expand All @@ -104,7 +104,7 @@ public RangeIndexConfigField(final NodePath parentPath, final Element elem, fina

final String caseStr = elem.getAttribute("case");
if (caseStr != null && !caseStr.isEmpty()) {
caseSensitive = caseStr.equalsIgnoreCase("yes");
caseSensitive = "yes".equalsIgnoreCase(caseStr);
}
}

Expand Down

0 comments on commit 3690d42

Please sign in to comment.