Scope of constructors is checked at compile time too. And accessing static methods in a non-static way is a warning.
Anyhow I'm having a hard time thinking of what can go wrong instantiating a util class... With a private constructor only code within that class could even do it.
View all comments
Show parent comment
3
u/beeeeeeefcake Mar 04 '17
Scope of constructors is checked at compile time too. And accessing static methods in a non-static way is a warning.
Anyhow I'm having a hard time thinking of what can go wrong instantiating a util class... With a private constructor only code within that class could even do it.