Reports calls to abstract methods of the current class during object construction.

A method is called during object construction if it is inside a:

Such calls may result in subtle bugs, as object initialization may happen before the method call.

Example:


  abstract class Parent {
    abstract void abstractMethod();
  }

  class Child extends Parent {
    Child() {
      abstractMethod();
    }
  }

This inspection shares the functionality with the following inspections:

Only one inspection should be enabled at once to prevent warning duplication.