mkarneim / pojobuilder

A Java Code Generator for Pojo Builders
Other
334 stars 44 forks source link

When using withFactoryMethod, allow suppression of public constructor #137

Closed sam-afsa closed 6 years ago

sam-afsa commented 7 years ago

To enforce consistent code style and usage of the static factory method, I would like to be able to make the default constructor private.

sam-afsa commented 7 years ago

Quick and dirty: https://github.com/mkarneim/pojobuilder/pull/138

mkarneim commented 6 years ago

This has been integrated into 4.0.0.