Details
-
Technical Debt
-
Status: Closed
-
Minor
-
Resolution: Done
-
None
Description
InstantiationUtil#hasPublicNullaryConstructor checks whether the given class has a public nullary constructor. The implementation can be improved a bit: the `Modifier#isPublic` check within the for-loop can be skipped as the Class#getConstructors() only returns public constructors.
We can also add a negative unit test for this.
Attachments
Issue Links
- links to