diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-05 14:22:40 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-05 14:22:40 +0200 |
commit | b6fb3c03fa35db3423ea4274f35d2c77859a3286 (patch) | |
tree | 4e34a00e9684baedba46fdf635e5382679c2188d /src/core/lombok/experimental/FieldNameConstants.java | |
parent | 2c93d336c1d694a286b53710cbeaa01339ba3f1c (diff) | |
download | lombok-b6fb3c03fa35db3423ea4274f35d2c77859a3286.tar.gz lombok-b6fb3c03fa35db3423ea4274f35d2c77859a3286.tar.bz2 lombok-b6fb3c03fa35db3423ea4274f35d2c77859a3286.zip |
[fieldNameConstants] code review, docs, tests, fixup.
Diffstat (limited to 'src/core/lombok/experimental/FieldNameConstants.java')
-rw-r--r-- | src/core/lombok/experimental/FieldNameConstants.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/core/lombok/experimental/FieldNameConstants.java b/src/core/lombok/experimental/FieldNameConstants.java index 0f582f18..41b33ac7 100644 --- a/src/core/lombok/experimental/FieldNameConstants.java +++ b/src/core/lombok/experimental/FieldNameConstants.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2013 The Project Lombok Authors. + * Copyright (C) 2014-2018 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -28,16 +28,11 @@ import java.lang.annotation.Target; import lombok.AccessLevel; - - - /** * Generates String constants containing the field name for each field. - * */ -@Target(ElementType.TYPE) +@Target({ElementType.TYPE, ElementType.FIELD}) @Retention(RetentionPolicy.SOURCE) public @interface FieldNameConstants { - - lombok.AccessLevel level()default AccessLevel.PUBLIC; + lombok.AccessLevel level() default AccessLevel.PUBLIC; } |