diff options
Diffstat (limited to 'usage_examples/GetterLazyExample_post.jpage')
-rw-r--r-- | usage_examples/GetterLazyExample_post.jpage | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usage_examples/GetterLazyExample_post.jpage b/usage_examples/GetterLazyExample_post.jpage index 76101db1..9f4b1ba3 100644 --- a/usage_examples/GetterLazyExample_post.jpage +++ b/usage_examples/GetterLazyExample_post.jpage @@ -1,9 +1,9 @@ public class GetterLazyExample { - private int[] $lombok$lazy1v; + private double[] $lombok$lazy1v; private volatile boolean $lombok$lazy1i; private final Object $lombok$lazyLock = new Object[0]; - public int[] getCached() { + public double[] getCached() { if (!this.$lombok$lazy1i) { synchronized (this.$lombok$lazyLock) { if (!this.$lombok$lazy1i) { @@ -15,7 +15,7 @@ public class GetterLazyExample { return this.$lombok$lazy1v; } - private int[] expensive() { + private double[] expensive() { double[] result = new double[1000000]; for (int i = 0; i < result.length; i++) { result[i] = Math.asin(i); |