Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

"Method 'setUp' is not designed for extension" in an abstract class #2

Open
mdumrauf opened this issue Feb 2, 2012 · 0 comments
Open

Comments

@mdumrauf
Copy link

mdumrauf commented Feb 2, 2012

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant