Skip to content

Instantly share code, notes, and snippets.

@RodrigoPinho
Last active May 20, 2020 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RodrigoPinho/5c6750431d7100dc1d7310ed03375f54 to your computer and use it in GitHub Desktop.
Save RodrigoPinho/5c6750431d7100dc1d7310ed03375f54 to your computer and use it in GitHub Desktop.
public final class UtilityClassWithLombok {
private static final int CONSTANT = 5;
private UtilityClassWithLombok() {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
public static int addSomething(int in) {
return in + CONSTANT;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment