aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-10-15 22:35:34 +0200
committerGitHub <noreply@github.com>2018-10-15 22:35:34 +0200
commit11322a489bb1428c773c6838e58dcd96c5d7422a (patch)
tree1f87a9a19bc5e8d734ce11caa5c00da263f3f0af /website
parent73cd46fce20a2c859a6fa9b78d921ff935642223 (diff)
parentc8873967437ae904713dc8054a0216f4e9e5f352 (diff)
downloadlombok-11322a489bb1428c773c6838e58dcd96c5d7422a.tar.gz
lombok-11322a489bb1428c773c6838e58dcd96c5d7422a.tar.bz2
lombok-11322a489bb1428c773c6838e58dcd96c5d7422a.zip
Merge pull request #1864 from daniel-shuy/daniel-shuy-patch-1
Fix code example for @UtilityClass
Diffstat (limited to 'website')
-rw-r--r--website/usageExamples/experimental/UtilityClassExample_post.jpage2
-rw-r--r--website/usageExamples/experimental/UtilityClassExample_pre.jpage2
2 files changed, 2 insertions, 2 deletions
diff --git a/website/usageExamples/experimental/UtilityClassExample_post.jpage b/website/usageExamples/experimental/UtilityClassExample_post.jpage
index 70810230..ad6cf583 100644
--- a/website/usageExamples/experimental/UtilityClassExample_post.jpage
+++ b/website/usageExamples/experimental/UtilityClassExample_post.jpage
@@ -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;
}
}
diff --git a/website/usageExamples/experimental/UtilityClassExample_pre.jpage b/website/usageExamples/experimental/UtilityClassExample_pre.jpage
index 85731b81..3c33a7c6 100644
--- a/website/usageExamples/experimental/UtilityClassExample_pre.jpage
+++ b/website/usageExamples/experimental/UtilityClassExample_pre.jpage
@@ -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;
}
}