diff options
author | Roel Spilker <r.spilker@gmail.com> | 2015-12-18 20:37:17 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2015-12-18 20:44:17 +0100 |
commit | dce98cc978d10eb0d54215cee9188bfe213980ca (patch) | |
tree | 5c8c2ef7738e269220c2d20ce57539d76ff1dd6a | |
parent | 34a6fd644f6036bef5c2d94d925b6cf8e20ab17d (diff) | |
download | lombok-dce98cc978d10eb0d54215cee9188bfe213980ca.tar.gz lombok-dce98cc978d10eb0d54215cee9188bfe213980ca.tar.bz2 lombok-dce98cc978d10eb0d54215cee9188bfe213980ca.zip |
fix #986: add @Target and @Retention to @Builder.ObtainVia
-rw-r--r-- | doc/changelog.markdown | 1 | ||||
-rw-r--r-- | src/core/lombok/Builder.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown index 74d2fdc8..b355ba77 100644 --- a/doc/changelog.markdown +++ b/doc/changelog.markdown @@ -18,6 +18,7 @@ Lombok Changelog * BUGFIX: When using delombok, a source file with only `@NonNull` annotations on parameters as lombok feature would not get properly delomboked. [Issue #950](https://github.com/rzwitserloot/lombok/issues/950). * BUGFIX: `@Delegate` in javac would generate arrays instead of varargs parameters. [Issue #932](https://github.com/rzwitserloot/lombok/issues/932). * BUGFIX: `@Value` and `@FieldDefaults` no longer make uninitialized static fields final. [Issue #928](https://github.com/rzwitserloot/lombok/issues/928). +* ENHANCEMENT: `@Builder.ObtainVia` now has `@Retention(SOURCE)` [Issue #986](https://github.com/rzwitserloot/lombok/issues/986). * ENHANCEMENT: Putting `@NonNull` on a parameter of an abstract method no longer generates a warning, to allow you to use this annotation to document intended behaviour [Issue #807](https://github.com/rzwitserloot/lombok/issues/807). ### v1.16.6 (August 18th, 2015) diff --git a/src/core/lombok/Builder.java b/src/core/lombok/Builder.java index 6a92028c..7a965486 100644 --- a/src/core/lombok/Builder.java +++ b/src/core/lombok/Builder.java @@ -139,6 +139,8 @@ public @interface Builder { * <p> * The default behaviour is to obtain a value by referencing the name of the parameter as a field on 'this'. */ + @Target({FIELD, PARAMETER}) + @Retention(SOURCE) public @interface ObtainVia { /** Tells lombok to obtain a value with the expression {@code this.value}. */ String field() default ""; |