diff options
author | grootjans <grootjans@gmail.com> | 2011-02-14 20:25:44 +0100 |
---|---|---|
committer | grootjans <grootjans@gmail.com> | 2011-02-14 22:51:53 +0100 |
commit | 3a6615234d40cf7e300dfc52c9a212e7b65eed8b (patch) | |
tree | 26ac21852efcabc5529cbe1e645bc636beb9a9e2 /src/core/lombok/NoArgsConstructor.java | |
parent | b15bcb09e9e05b584e73c999dd9c29b6cfb94a44 (diff) | |
download | lombok-3a6615234d40cf7e300dfc52c9a212e7b65eed8b.tar.gz lombok-3a6615234d40cf7e300dfc52c9a212e7b65eed8b.tar.bz2 lombok-3a6615234d40cf7e300dfc52c9a212e7b65eed8b.zip |
Added annotation for handleconstructor: issue 172
Diffstat (limited to 'src/core/lombok/NoArgsConstructor.java')
-rw-r--r-- | src/core/lombok/NoArgsConstructor.java | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/lombok/NoArgsConstructor.java b/src/core/lombok/NoArgsConstructor.java index 2270631f..9b8544ac 100644 --- a/src/core/lombok/NoArgsConstructor.java +++ b/src/core/lombok/NoArgsConstructor.java @@ -1,5 +1,5 @@ /* - * Copyright © 2010 Reinier Zwitserloot and Roel Spilker. + * Copyright © 2010-2011 Reinier Zwitserloot, Roel Spilker and Robbert Jan Grootjans. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -51,4 +51,18 @@ public @interface NoArgsConstructor { * Sets the access level of the constructor. By default, generated constructors are {@code public}. */ AccessLevel access() default lombok.AccessLevel.PUBLIC; + + /** + * If you want your constructor to have additional annotations, you can specify them here. + */ + AnyAnnotation[] onConstructor() default {}; + + /** + * Placeholder annotation to enable the placement of annotations on the constructor. + * @deprecated Don't use this annotation, since we might remove it. + */ + @Deprecated + @Retention(RetentionPolicy.SOURCE) + @Target({}) + @interface AnyAnnotation {} } |