A nonstatic initializer block will be called any time a constructor is invoked (just prior to invoking the constructor). While this is a valid language construct, it is rarely used and is confusing.public class MyClass { // this block gets run before any call to a constructor { System.out.println("I am about to construct myself"); } }Additional info can be found at this http://pmd.sourceforge.net/rules/design.html#NonStaticInitializer site.
| 1 | org.jcoderz.phoenix.dbview.DbView |
| [99:4] | |