diff options
author | peichhorn <peichhor@web.de> | 2011-06-22 09:52:00 +0200 |
---|---|---|
committer | peichhorn <peichhor@web.de> | 2011-06-22 09:52:00 +0200 |
commit | 917518bbeafc73232955d67fdbfce533e8a69f75 (patch) | |
tree | 4a6012d37a80d1fffdf04b1f7805581dfea1edf4 /usage_examples/GetterLazyExample_pre.jpage | |
parent | 865b7dbc6a8be1c2415d55fa40b30ddc3227d9f5 (diff) | |
download | lombok-917518bbeafc73232955d67fdbfce533e8a69f75.tar.gz lombok-917518bbeafc73232955d67fdbfce533e8a69f75.tar.bz2 lombok-917518bbeafc73232955d67fdbfce533e8a69f75.zip |
fixed type mismatch in lazy getter example (issue 223)
note: this example shows how lazy getter would work once issue 160 is no more
Diffstat (limited to 'usage_examples/GetterLazyExample_pre.jpage')
-rw-r--r-- | usage_examples/GetterLazyExample_pre.jpage | 4 |
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); |