diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-08-16 02:36:40 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-08-16 02:36:40 +0200 |
commit | 41d312454aece596db215800594f0ae5457e4bfd (patch) | |
tree | 1ea3ef142486af94e9c9e75b9b487a0c967152b5 /usage_examples/experimental | |
parent | 244ad85116ffd585d1efb51ebeb787da0fd9eaef (diff) | |
download | lombok-41d312454aece596db215800594f0ae5457e4bfd.tar.gz lombok-41d312454aece596db215800594f0ae5457e4bfd.tar.bz2 lombok-41d312454aece596db215800594f0ae5457e4bfd.zip |
Added documentation for @Helper
Diffstat (limited to 'usage_examples/experimental')
-rw-r--r-- | usage_examples/experimental/Helper_post.jpage | 14 | ||||
-rw-r--r-- | usage_examples/experimental/Helper_pre.jpage | 15 |
2 files changed, 29 insertions, 0 deletions
diff --git a/usage_examples/experimental/Helper_post.jpage b/usage_examples/experimental/Helper_post.jpage new file mode 100644 index 00000000..04a97b9f --- /dev/null +++ b/usage_examples/experimental/Helper_post.jpage @@ -0,0 +1,14 @@ +public class HelperExample { + int someMethod(int arg1) { + int localVar = 5; + + class Helpers { + int helperMethod(int arg) { + return arg + localVar; + } + } + Helpers $Helpers = new Helpers(); + + return $Helpers.helperMethod(10); + } +} diff --git a/usage_examples/experimental/Helper_pre.jpage b/usage_examples/experimental/Helper_pre.jpage new file mode 100644 index 00000000..cd86ef3c --- /dev/null +++ b/usage_examples/experimental/Helper_pre.jpage @@ -0,0 +1,15 @@ +import lombok.experimental.Helper; + +public class HelperExample { + int someMethod(int arg1) { + int localVar = 5; + + @Helper class Helpers { + int helperMethod(int arg) { + return arg + localVar; + } + } + + return helperMethod(10); + } +} |