aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/experimental/HelperExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'website/usageExamples/experimental/HelperExample_pre.jpage')
-rw-r--r--website/usageExamples/experimental/HelperExample_pre.jpage15
1 files changed, 15 insertions, 0 deletions
diff --git a/website/usageExamples/experimental/HelperExample_pre.jpage b/website/usageExamples/experimental/HelperExample_pre.jpage
new file mode 100644
index 00000000..cd86ef3c
--- /dev/null
+++ b/website/usageExamples/experimental/HelperExample_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);
+ }
+}