aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/Builder.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2015-12-18 20:37:17 +0100
committerRoel Spilker <r.spilker@gmail.com>2015-12-18 20:44:17 +0100
commitdce98cc978d10eb0d54215cee9188bfe213980ca (patch)
tree5c8c2ef7738e269220c2d20ce57539d76ff1dd6a /src/core/lombok/Builder.java
parent34a6fd644f6036bef5c2d94d925b6cf8e20ab17d (diff)
downloadlombok-dce98cc978d10eb0d54215cee9188bfe213980ca.tar.gz
lombok-dce98cc978d10eb0d54215cee9188bfe213980ca.tar.bz2
lombok-dce98cc978d10eb0d54215cee9188bfe213980ca.zip
fix #986: add @Target and @Retention to @Builder.ObtainVia
Diffstat (limited to 'src/core/lombok/Builder.java')
-rw-r--r--src/core/lombok/Builder.java2
1 files changed, 2 insertions, 0 deletions
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 "";