remove duplicate code by reusing constructor with parameters

pull/3/head
benas 12 years ago
parent 312f88bfcc
commit 7ca0b7c652

@ -55,9 +55,9 @@ public class Rule implements Comparable<Rule> {
private int priority;
public Rule() {
this.name = EasyRulesConstants.DEFAULT_RULE_NAME;
this.description = EasyRulesConstants.DEFAULT_RULE_DESCRIPTION;
this.priority = EasyRulesConstants.DEFAULT_RULE_PRIORITY;
this(EasyRulesConstants.DEFAULT_RULE_NAME,
EasyRulesConstants.DEFAULT_RULE_DESCRIPTION,
EasyRulesConstants.DEFAULT_RULE_PRIORITY);
}
public Rule(String name, String description, int priority) {

Loading…
Cancel
Save