This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Under Options -> Java Code -> Hints -> APIs there are the two hints "Utility class with visible constructor" and "Utility class without constructor". These don't quite match my policy for utility classes. To allow client code to extend my utility classes with additional members, I make utility classes abstract and/or add protected constructor that always throws. This prevents direct instantiation of the class while still allowing it to be extended. (Unfortunately Java doesn't allow "static" subclassing, therefore there needs to exist a constructor that is accessible by the subclass.) So it would be nice to have a hint for utility classes that are not abstract and have a public or package constructor. Or in other words: for classes containing only static members where code other than the class itself can directly create an (exact-type) instance of the class.
Overtake.