aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/GetterLazyExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/GetterLazyExample_pre.jpage')
-rw-r--r--usage_examples/GetterLazyExample_pre.jpage4
1 files changed, 2 insertions, 2 deletions
diff --git a/usage_examples/GetterLazyExample_pre.jpage b/usage_examples/GetterLazyExample_pre.jpage
index a6ca0966..ca6c9d58 100644
--- a/usage_examples/GetterLazyExample_pre.jpage
+++ b/usage_examples/GetterLazyExample_pre.jpage
@@ -1,9 +1,9 @@
import lombok.Getter;
public class GetterLazyExample {
- @Getter(lazy=true) private final int[] cached = expensive();
+ @Getter(lazy=true) private final double[] cached = expensive();
- private int[] expensive() {
+ private double[] expensive() {
double[] result = new double[1000000];
for (int i = 0; i < result.length; i++) {
result[i] = Math.asin(i);