diff options
author | unknown <Roels@.tis.local> | 2009-10-18 15:12:41 +0200 |
---|---|---|
committer | unknown <Roels@.tis.local> | 2009-10-18 15:12:41 +0200 |
commit | 1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7 (patch) | |
tree | 41c3f687db56c92610f0687d3466ab573a02d573 /src/lombok/core/AnnotationValues.java | |
parent | 4bf8ee3f67f7c076421b6c6a396c85e7bd794749 (diff) | |
download | lombok-1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7.tar.gz lombok-1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7.tar.bz2 lombok-1b0d0ff5ad539f34fc27a8a27621b3f8d6d982b7.zip |
Configured warnings and solved some.
Diffstat (limited to 'src/lombok/core/AnnotationValues.java')
-rw-r--r-- | src/lombok/core/AnnotationValues.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/lombok/core/AnnotationValues.java b/src/lombok/core/AnnotationValues.java index 8912ccd8..0408de85 100644 --- a/src/lombok/core/AnnotationValues.java +++ b/src/lombok/core/AnnotationValues.java @@ -202,18 +202,19 @@ public class AnnotationValues<A extends Annotation> { Object defaultValue = method.getDefaultValue(); if (defaultValue == null) throw makeNoDefaultFail(v, method); return defaultValue; - } else return result; - } else { - if (result == null) { - if (v.valueGuesses.size() == 1) { - Object defaultValue = method.getDefaultValue(); - if (defaultValue == null) throw makeNoDefaultFail(v, method); - return defaultValue; - } else throw new AnnotationValueDecodeFail(v, - "I can't make sense of this annotation value. Try using a fully qualified literal.", idx); } - Array.set(array, idx++, result); + return result; + } + if (result == null) { + if (v.valueGuesses.size() == 1) { + Object defaultValue = method.getDefaultValue(); + if (defaultValue == null) throw makeNoDefaultFail(v, method); + return defaultValue; + } + throw new AnnotationValueDecodeFail(v, + "I can't make sense of this annotation value. Try using a fully qualified literal.", idx); } + Array.set(array, idx++, result); } return array; |