Example
public class
ClassA
{
public
ClassA () {
method();
}
public
method () {
//....
}
}
Solution
Reconsider the methods that are called in the constructor. Method types called in the constructor should be private, static or final.