We have several value-holder classes (Price, Year, Zip, etc.) that provide a static factory method to encapsulate instantiation:
The IllegalInstantiation check complains about each of these methods because the class is instantiating itself.
Request: Add an option to allow self-instantiation.
<module name="IllegalInstantiation"> <property name="allowSelf" value="true" /> <property name="classes" value="..." /> </module>