[sonar] Loggers should be 'private static final' and should share a naming convention

pull/3/head
Mahmoud Ben Hassine 10 years ago
parent 881b88f6a0
commit 045a590be4

@ -18,7 +18,7 @@ import java.util.logging.Logger;
*/
public abstract class AbstractRulesEngine<R> implements RulesEngine<R> {
protected static final Logger LOGGER = Logger.getLogger(EasyRulesConstants.LOGGER_NAME);
private static final Logger LOGGER = Logger.getLogger(EasyRulesConstants.LOGGER_NAME);
/**
* The rules set.

@ -11,6 +11,7 @@ import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Annotated rules engine implementation.
@ -19,6 +20,8 @@ import java.util.logging.Level;
*/
public class AnnotatedRulesEngine extends AbstractRulesEngine<Object> {
private static final Logger LOGGER = Logger.getLogger(EasyRulesConstants.LOGGER_NAME);
private List<RuleBean> ruleBeans;
/**

@ -29,6 +29,7 @@ import org.easyrules.util.EasyRulesConstants;
import java.util.TreeSet;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Default {@link org.easyrules.api.RulesEngine} implementation.<br/>
@ -41,6 +42,8 @@ import java.util.logging.Level;
*/
public class DefaultRulesEngine extends AbstractRulesEngine<Rule> {
private static final Logger LOGGER = Logger.getLogger(EasyRulesConstants.LOGGER_NAME);
/**
* Construct a default rules engine with default values.
*/

Loading…
Cancel
Save