diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-17 06:54:33 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2010-07-17 06:54:33 +0200 |
commit | 32a23d77866093c5ba97eefdd5482868cf505de5 (patch) | |
tree | f97477bdc0cc3547a90e6d2798a1f34337f30798 /src/core/lombok/Setter.java | |
parent | 99f763a7294065333bee1d269dc28a744e072bcc (diff) | |
download | lombok-32a23d77866093c5ba97eefdd5482868cf505de5.tar.gz lombok-32a23d77866093c5ba97eefdd5482868cf505de5.tar.bz2 lombok-32a23d77866093c5ba97eefdd5482868cf505de5.zip |
Implements issue #129: @Getter and @Setter are now legal on entire types.
Diffstat (limited to 'src/core/lombok/Setter.java')
-rw-r--r-- | src/core/lombok/Setter.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lombok/Setter.java b/src/core/lombok/Setter.java index 778bb00d..6e0485c2 100644 --- a/src/core/lombok/Setter.java +++ b/src/core/lombok/Setter.java @@ -1,5 +1,5 @@ /* - * Copyright © 2009 Reinier Zwitserloot and Roel Spilker. + * Copyright © 2009-2010 Reinier Zwitserloot and Roel Spilker. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -44,8 +44,11 @@ import java.lang.annotation.Target; * * If any method named {@code setFoo} exists, regardless of return type or parameters, no method is generated, * and instead a compiler warning is emitted. + * <p> + * This annotation can also be applied to a class, in which case it'll be as if all non-static fields that don't already have + * a {@code Setter} annotation have the annotation. */ -@Target(ElementType.FIELD) +@Target({ElementType.FIELD, ElementType.TYPE}) @Retention(RetentionPolicy.SOURCE) public @interface Setter { /** |