@Test public void decisionBooksShouldNotErrorOnNullRule() { DecisionBook decisionBook = new DecisionBook() { @Override protected void defineRules() { } }; decisionBook.addRule(null); }
public void addRule(Decision<T, U> rule) { if (rule == null) { return; } super.addRule(rule); rule.setResult(_result); }
DecisionBook extends RuleBook<T> { public void addRule(Decision<T, U> rule) { if (rule == null) { return; } super.addRule(rule); rule.setResult(_result); } }
DecisionBook extends RuleBook<T> { public void addRule(Decision<T, U> rule) { if (rule == null) { return; } super.addRule(rule); rule.setResult(_result); }  }
DecisionBook extends RuleBook<T> { public void addRule(Decision<T, U> rule) { if (rule == null) { return; } super.addRule(rule); rule.setResult(_result); }  final DecisionBook<T, U> withDefaultResult(U result); void addRule(Decision<T, U> rule); U getResult(); }
DecisionBook extends RuleBook<T> { public void addRule(Decision<T, U> rule) { if (rule == null) { return; } super.addRule(rule); rule.setResult(_result); }  final DecisionBook<T, U> withDefaultResult(U result); void addRule(Decision<T, U> rule); U getResult();  }