What does "variable access definition in wrong order" mean in Checkstyle?

Viewed 45999

I run checkstyle on my Java code and get this error:

variable access definition in wrong order

Can somebody tell me what that means?

3 Answers

Maybe it is a little late for answering this question (:D) but in my case i had some thing like that:

 public final class ClassA{
    private ClassA() {
    }
    private static Logger LOG = LoggerFactory.getLogger(ClassA.class);

and after i changed the order to:

public final class ClassA{
        private static Logger LOG = LoggerFactory.getLogger(ClassA.class);
 private ClassA() {
            }

my problem solved.

Related