Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed May 16, 2020
1 parent 5f861fb commit 46942da
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
public class Fact<T> {

private final String name;

private final T value;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
class ActionMethodOrderBean implements Comparable<ActionMethodOrderBean> {

private final Method method;

private final int order;

ActionMethodOrderBean(final Method method, final int order) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ void doFire(Rules rules, Facts facts) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -92,6 +87,10 @@ public static Rule asRule(final Object rule) {
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
public class SpELCondition implements Condition {

private final ExpressionParser parser = new SpelExpressionParser();

private final Expression compiledExpression;
private BeanResolver beanResolver;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public abstract class CompositeRule extends BasicRule {
* The set of composing rules.
*/
protected Set<Rule> rules;

private final Map<Object, Rule> proxyRules;

/**
Expand Down

0 comments on commit 46942da

Please sign in to comment.