Skip to content

Commit

Permalink
Fix grammar in PreconditionRules's method name
Browse files Browse the repository at this point in the history
Also, make the helper method private.
  • Loading branch information
findepi committed Mar 19, 2018
1 parent 5bcc5b8 commit 998d200
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -28,10 +28,10 @@ private PreconditionRules() {}

public static Rule<ExchangeNode> checkRulesAreFiredBeforeAddExchangesRule()
{
return checkPlanDoNotMatch(exchange(), "Expected rules to be fired before 'AddExchanges' optimizer");
return checkNoPlanNodeMatches(exchange(), "Expected rules to be fired before 'AddExchanges' optimizer");
}

public static <T extends PlanNode> Rule<T> checkPlanDoNotMatch(Pattern<T> pattern, String message)
private static <T extends PlanNode> Rule<T> checkNoPlanNodeMatches(Pattern<T> pattern, String message)
{
return new CheckNoPlanNodeMatchesRule<>(pattern, message);
}
Expand Down

0 comments on commit 998d200

Please sign in to comment.