The logger reference is not a constant, but a final reference, and should NOT be in uppercase. A constant VALUE should be in uppercase.
private static final Logger logger = Logger.getLogger(MyClass.class);
private static final double MY_CONSTANT = 0.0;
More Related Contents:
- Change private static final field using Java reflection
- Behaviour of final static method
- private final static attribute vs private final attribute
- in what order are static blocks and static variables in a class executed? [duplicate]
- Getting value of public static final field/property of a class in Java via reflection
- Why isn’t a qualified static final variable allowed in a static initialization block?
- Why are all fields in an interface implicitly static and final?
- Java static final values replaced in code when compiling?
- How to extend a final class in Java
- Java : in what order are static final fields initialized?
- In ArrayBlockingQueue, why copy final member field into local final variable?
- Why isn’t calling a static method by way of an instance an error for the Java compiler?
- Are Java static initializers thread safe?
- How to instantiate non static inner class within a static method?
- Generic type parameter naming convention for Java (with multiple chars)?
- Java’s final vs. C++’s const
- Is there any performance reason to declare method parameters final in Java?
- Java Error: Cannot make a static reference to the non-static method
- Java static serialization rules?
- Logback to log different messages to two files
- Using underscores in Java variables and method names [closed]
- Disabling Log4J Output in Java
- Does using final for variables in Java improve garbage collection?
- Error “java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger”
- Why can I edit the contents of a final array in Java?
- How and where to use Static modifier in Java?
- Testing initialization safety of final fields
- LOG4J: Modify logged message using custom appender
- Behavior of static blocks with inheritance
- Difference between Dynamic and Static type assignments in Java