diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/api/Fact.java b/easy-rules-core/src/main/java/org/jeasy/rules/api/Fact.java index cea2318..486a934 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/api/Fact.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/api/Fact.java @@ -35,7 +35,6 @@ import java.util.Objects; public class Fact { private final String name; - private final T value; /** diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java b/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java index 47832b2..ae41aff 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/core/ActionMethodOrderBean.java @@ -33,7 +33,6 @@ import java.lang.reflect.Method; class ActionMethodOrderBean implements Comparable { private final Method method; - private final int order; ActionMethodOrderBean(final Method method, final int order) { diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java b/easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java index ac13581..a9224ce 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java @@ -89,8 +89,7 @@ public final class DefaultRulesEngine extends AbstractRulesEngine { break; } if (!shouldBeEvaluated(rule, facts)) { - LOGGER.debug("Rule '{}' has been skipped before being evaluated", - name); + LOGGER.debug("Rule '{}' has been skipped before being evaluated", name); continue; } boolean evaluationResult = false; diff --git a/easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java b/easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java index 5e82155..0dc27f0 100644 --- a/easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java +++ b/easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java @@ -65,13 +65,8 @@ public class RuleProxy implements InvocationHandler { private org.jeasy.rules.annotation.Rule annotation; private static final RuleDefinitionValidator ruleDefinitionValidator = new RuleDefinitionValidator(); - private static final Logger LOGGER = LoggerFactory.getLogger(RuleProxy.class); - private RuleProxy(final Object target) { - this.target = target; - } - /** * Makes the rule object implement the {@link Rule} interface. * @@ -92,6 +87,10 @@ public class RuleProxy implements InvocationHandler { return result; } + private RuleProxy(final Object target) { + this.target = target; + } + @Override public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { String methodName = method.getName(); diff --git a/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELAction.java b/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELAction.java index fe6932b..23de61e 100644 --- a/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELAction.java +++ b/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELAction.java @@ -51,7 +51,6 @@ public class SpELAction implements Action { private static final Logger LOGGER = LoggerFactory.getLogger(SpELAction.class); private final ExpressionParser parser = new SpelExpressionParser(); - private final String expression; private final Expression compiledExpression; private BeanResolver beanResolver; diff --git a/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELCondition.java b/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELCondition.java index a1384ae..948fc58 100644 --- a/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELCondition.java +++ b/easy-rules-spel/src/main/java/org/jeasy/rules/spel/SpELCondition.java @@ -47,7 +47,6 @@ import org.springframework.expression.spel.support.StandardEvaluationContext; public class SpELCondition implements Condition { private final ExpressionParser parser = new SpelExpressionParser(); - private final Expression compiledExpression; private BeanResolver beanResolver; diff --git a/easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java b/easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java index efbd749..70a6633 100644 --- a/easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java +++ b/easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java @@ -44,7 +44,6 @@ public abstract class CompositeRule extends BasicRule { * The set of composing rules. */ protected Set rules; - private final Map proxyRules; /**