InstaMaterial icon indicating copy to clipboard operation
InstaMaterial copied to clipboard

Add a private constructor in the Utils class to hide the implicit public one.

Open danielmunteanu123 opened this issue 3 years ago • 1 comments

Screenshot_20 I've used SonarQube and found this bug which is not critical but it should be fixed. Utility classes should not have public constructors

Utility classes, which are collections of static members, are not meant to be instantiated. Even abstract utility classes, which can be extended, should not have public constructors. Java adds an implicit public constructor to every class which does not define at least one explicitly. Hence, at least one non-public constructor should be defined.

Thank you

danielmunteanu123 avatar May 30 '21 15:05 danielmunteanu123

Can i take this issue

aniket691 avatar Dec 04 '21 14:12 aniket691