mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-03 16:16:54 +00:00
added impl for @UtilityClass.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public final class UtilityClassExample {
|
||||
private static final int CONSTANT = 5;
|
||||
|
||||
private UtilityClassExample() {
|
||||
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
|
||||
}
|
||||
|
||||
public static void addSomething(int in) {
|
||||
return in + CONSTANT;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user