zauberlabs/checkstyle — Issue #2: "Method 'setUp' is not designed for extension" in an abstract class
Author: mdumrauf
Created: 2012-02-02 14:15:15+00:00
State: open

Given this example:

public abstract class A {

public void Foo() {
// Does something interesting.
}

}

public class B extends A {

@Override
public void Foo() {
// Does something more interesting.
}

}

The warning "Method 'setUp' is not designed for extension" is shown. But if Foo() method in A is declared as final, then B could not override it.