Merge pull request #1864 from daniel-shuy/daniel-shuy-patch-1

Fix code example for @UtilityClass
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2018-10-15 22:35:34 +02:00
commit 11322a489b
2 files changed
+2 -2

No files matched your search

@@ -5,7 +5,7 @@ public final class UtilityClassExample {
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated");
}
public static void addSomething(int in) {
public static int addSomething(int in) {
return in + CONSTANT;
}
}
@@ -4,7 +4,7 @@ import lombok.experimental.UtilityClass;
public class UtilityClassExample {
private final int CONSTANT = 5;
public void addSomething(int in) {
public int addSomething(int in) {
return in + CONSTANT;
}
}