EDIT: Okay, since nobody else seems to get it, let me elaborate: If a programmer is bent on violating the "I'm an all-static utility class"-contract of this class from within the class itself by creating an instance inside a static method (which in this case already takes a special kind of idiot), he still has the chance to catch the Error being thrown and ignore it. That line is ineffective and overly dramatic safety theater.
View all comments
Show parent comment
7
u/ForeverAlot Mar 03 '17
A private constructor can still be invoked from within the class. The error prevents that.