Skip to content

Commit 3690d42

Browse files
committed
Flip method calls
1 parent f601694 commit 3690d42

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

extensions/indexes/range/src/main/java/org/exist/indexing/range/RangeIndexConfigAttributeCondition.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public RangeIndexConfigAttributeCondition(final Element elem, final NodePath par
9595
}
9696

9797
final String caseString = elem.getAttribute("case");
98-
caseSensitive = (caseString != null && !caseString.equalsIgnoreCase("no"));
98+
caseSensitive = (caseString != null && !"no".equalsIgnoreCase(caseString));
9999

100100
final String numericString = elem.getAttribute("numeric");
101-
numericComparison = (numericString != null && numericString.equalsIgnoreCase("yes"));
101+
numericComparison = (numericString != null && "yes".equalsIgnoreCase(numericString));
102102

103103
// try to create a pattern matcher for a 'matches' condition
104104
if (operator == Operator.MATCH) {

extensions/indexes/range/src/main/java/org/exist/indexing/range/RangeIndexConfigElement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public RangeIndexConfigElement(final Element node, final Map<String, String> nam
9292
usesCollation = true;
9393
}
9494
final String nested = node.getAttribute("nested");
95-
includeNested = (nested == null || nested.isEmpty() || nested.equalsIgnoreCase("yes"));
95+
includeNested = (nested == null || nested.isEmpty() || "yes".equalsIgnoreCase(nested));
9696

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

107107
final String caseStr = node.getAttribute("case");
108108
if (caseStr != null && !caseStr.isEmpty()) {
109-
caseSensitive = caseStr.equalsIgnoreCase("yes");
109+
caseSensitive = "yes".equalsIgnoreCase(caseStr);
110110
}
111111
final String custom = node.getAttribute("converter");
112112
if (custom != null && !custom.isEmpty()) {

extensions/indexes/range/src/main/java/org/exist/indexing/range/RangeIndexConfigField.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public RangeIndexConfigField(final NodePath parentPath, final Element elem, fina
8989
}
9090
}
9191
final String nested = elem.getAttribute("nested");
92-
includeNested = (nested == null || nested.equalsIgnoreCase("yes"));
92+
includeNested = (nested == null || "yes".equalsIgnoreCase(nested));
9393
path.setIncludeDescendants(includeNested);
9494

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

105105
final String caseStr = elem.getAttribute("case");
106106
if (caseStr != null && !caseStr.isEmpty()) {
107-
caseSensitive = caseStr.equalsIgnoreCase("yes");
107+
caseSensitive = "yes".equalsIgnoreCase(caseStr);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)