Set more feasible exception type

This commit is contained in:
Marvin Scham
2023-05-20 05:58:31 +02:00
parent 1143097aee
commit 89efc24ca9

View File

@@ -9,8 +9,8 @@ public final class Main {
/** /**
* Prevents unwanted instantiation. * Prevents unwanted instantiation.
*/ */
private Main() { private Main() throws IllegalAccessException {
throw new UnsupportedOperationException("Don't instantiate me! >:("); throw new IllegalAccessException("Don't instantiate me! >:(");
} }
/** /**