diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-10-15 22:35:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 22:35:34 +0200 |
commit | 11322a489bb1428c773c6838e58dcd96c5d7422a (patch) | |
tree | 1f87a9a19bc5e8d734ce11caa5c00da263f3f0af /website | |
parent | 73cd46fce20a2c859a6fa9b78d921ff935642223 (diff) | |
parent | c8873967437ae904713dc8054a0216f4e9e5f352 (diff) | |
download | lombok-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.jpage | 2 | ||||
-rw-r--r-- | website/usageExamples/experimental/UtilityClassExample_pre.jpage | 2 |
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; } } |