aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/experimental
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-06-04 23:34:25 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-06-04 23:36:10 +0200
commitb8e85f5dc7044e9a4bd43c41786bdda2a38f50ac (patch)
tree7b93ae4844e9d9cd64f3f8dcfd9a72f2407921d5 /src/core/lombok/experimental
parentfb5a5530148614e8d0c423077d9043e2d58f453b (diff)
downloadlombok-b8e85f5dc7044e9a4bd43c41786bdda2a38f50ac.tar.gz
lombok-b8e85f5dc7044e9a4bd43c41786bdda2a38f50ac.tar.bz2
lombok-b8e85f5dc7044e9a4bd43c41786bdda2a38f50ac.zip
FieldNameConstants now defaults to having a prefix ‘FIELD_’, which can be configured both on the annotation itself and via a config key. This totally breaks compatibility with the previous lombok release, but, hey, it’s in experimental and it’s been one week. This is better.
Diffstat (limited to 'src/core/lombok/experimental')
-rw-r--r--src/core/lombok/experimental/FieldNameConstants.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/experimental/FieldNameConstants.java b/src/core/lombok/experimental/FieldNameConstants.java
index 41b33ac7..31c2970c 100644
--- a/src/core/lombok/experimental/FieldNameConstants.java
+++ b/src/core/lombok/experimental/FieldNameConstants.java
@@ -35,4 +35,6 @@ import lombok.AccessLevel;
@Retention(RetentionPolicy.SOURCE)
public @interface FieldNameConstants {
lombok.AccessLevel level() default AccessLevel.PUBLIC;
+ String prefix() default " CONFIG DEFAULT ";
+ String suffix() default " CONFIG DEFAULT ";
}