mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
Merge pull request #1864 from daniel-shuy/daniel-shuy-patch-1
Fix code example for @UtilityClass
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user