From 32a23d77866093c5ba97eefdd5482868cf505de5 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 17 Jul 2010 06:54:33 +0200 Subject: Implements issue #129: @Getter and @Setter are now legal on entire types. --- src/core/lombok/Setter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/lombok/Setter.java') 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. + *

+ * 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 { /** -- cgit