Fix code formatting

pull/284/head
Mahmoud Ben Hassine 5 years ago
parent 5f861fbde2
commit 46942da160
No known key found for this signature in database
GPG Key ID: 79FCFB0A184E0036

@ -35,7 +35,6 @@ import java.util.Objects;
public class Fact<T> { public class Fact<T> {
private final String name; private final String name;
private final T value; private final T value;
/** /**

@ -33,7 +33,6 @@ import java.lang.reflect.Method;
class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> { class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> {
private final Method method; private final Method method;
private final int order; private final int order;
ActionMethodOrderBean(final Method method, final int order) { ActionMethodOrderBean(final Method method, final int order) {

@ -89,8 +89,7 @@ public final class DefaultRulesEngine extends AbstractRulesEngine {
break; break;
} }
if (!shouldBeEvaluated(rule, facts)) { if (!shouldBeEvaluated(rule, facts)) {
LOGGER.debug("Rule '{}' has been skipped before being evaluated", LOGGER.debug("Rule '{}' has been skipped before being evaluated", name);
name);
continue; continue;
} }
boolean evaluationResult = false; boolean evaluationResult = false;

@ -65,13 +65,8 @@ public class RuleProxy implements InvocationHandler {
private org.jeasy.rules.annotation.Rule annotation; private org.jeasy.rules.annotation.Rule annotation;
private static final RuleDefinitionValidator ruleDefinitionValidator = new RuleDefinitionValidator(); private static final RuleDefinitionValidator ruleDefinitionValidator = new RuleDefinitionValidator();
private static final Logger LOGGER = LoggerFactory.getLogger(RuleProxy.class); 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. * Makes the rule object implement the {@link Rule} interface.
* *
@ -92,6 +87,10 @@ public class RuleProxy implements InvocationHandler {
return result; return result;
} }
private RuleProxy(final Object target) {
this.target = target;
}
@Override @Override
public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable { public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
String methodName = method.getName(); String methodName = method.getName();

@ -51,7 +51,6 @@ public class SpELAction implements Action {
private static final Logger LOGGER = LoggerFactory.getLogger(SpELAction.class); private static final Logger LOGGER = LoggerFactory.getLogger(SpELAction.class);
private final ExpressionParser parser = new SpelExpressionParser(); private final ExpressionParser parser = new SpelExpressionParser();
private final String expression; private final String expression;
private final Expression compiledExpression; private final Expression compiledExpression;
private BeanResolver beanResolver; private BeanResolver beanResolver;

@ -47,7 +47,6 @@ import org.springframework.expression.spel.support.StandardEvaluationContext;
public class SpELCondition implements Condition { public class SpELCondition implements Condition {
private final ExpressionParser parser = new SpelExpressionParser(); private final ExpressionParser parser = new SpelExpressionParser();
private final Expression compiledExpression; private final Expression compiledExpression;
private BeanResolver beanResolver; private BeanResolver beanResolver;

@ -44,7 +44,6 @@ public abstract class CompositeRule extends BasicRule {
* The set of composing rules. * The set of composing rules.
*/ */
protected Set<Rule> rules; protected Set<Rule> rules;
private final Map<Object, Rule> proxyRules; private final Map<Object, Rule> proxyRules;
/** /**

Loading…
Cancel
Save