diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-07-22 04:40:19 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-07-22 04:40:19 +0200 |
commit | fd1d18a29957fc1999b7dd5725641662ad3bd887 (patch) | |
tree | 0795b1970d09ba39e97133afaba35370799b8b41 /src/core/lombok/NoArgsConstructor.java | |
parent | 334580ee548ddb09e34564183aba5008fdb29a22 (diff) | |
download | lombok-fd1d18a29957fc1999b7dd5725641662ad3bd887.tar.gz lombok-fd1d18a29957fc1999b7dd5725641662ad3bd887.tar.bz2 lombok-fd1d18a29957fc1999b7dd5725641662ad3bd887.zip |
Support for @NoArgsConstructor(force = true).
Diffstat (limited to 'src/core/lombok/NoArgsConstructor.java')
-rw-r--r-- | src/core/lombok/NoArgsConstructor.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/lombok/NoArgsConstructor.java b/src/core/lombok/NoArgsConstructor.java index ef347273..ff437bba 100644 --- a/src/core/lombok/NoArgsConstructor.java +++ b/src/core/lombok/NoArgsConstructor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2013 The Project Lombok Authors. + * Copyright (C) 2010-2015 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 @@ -61,6 +61,12 @@ public @interface NoArgsConstructor { AccessLevel access() default lombok.AccessLevel.PUBLIC; /** + * If {@code true}, initializes all final fields to 0 / null / false. + * Otherwise, a compile time error occurs. + */ + boolean force() default false; + + /** * Placeholder annotation to enable the placement of annotations on the generated code. * @deprecated Don't use this annotation, ever - Read the documentation. */ |