diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java b/container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java index 0a274bac905..141d16b14e2 100644 --- a/container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java +++ b/container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java @@ -114,20 +114,20 @@ public abstract class Condition { if (!matchesStartAnchor(e)) return false; - String higherLabel=e.getCurrentLabel(); - if (getLabel()!=null) + String higherLabel = e.getCurrentLabel(); + if (getLabel() != null) e.setCurrentLabel(getLabel()); - boolean matches=doesMatch(e); - while (!matches && hasOpenChoicepoint(e)) { - matches=doesMatch(e); + boolean matches = doesMatch(e); + while ( ! matches && hasOpenChoicepoint(e)) { + matches = doesMatch(e); } e.setCurrentLabel(higherLabel); - if (!matchesEndAnchor(e)) return false; + if ( ! matchesEndAnchor(e)) return false; - traceResult(matches,e); + traceResult(matches, e); return matches; } finally { |