diff options
author | grootjans <grootjans@gmail.com> | 2011-02-14 22:35:20 +0100 |
---|---|---|
committer | grootjans <grootjans@gmail.com> | 2011-02-14 22:53:08 +0100 |
commit | ed4068d84289390c74ca2e45149c9a22f96ce764 (patch) | |
tree | ee51222b0edb471049c9a447da3baa972b37d0a1 /test/transform/resource/after-ecj/Constructors.java | |
parent | 3a6615234d40cf7e300dfc52c9a212e7b65eed8b (diff) | |
download | lombok-ed4068d84289390c74ca2e45149c9a22f96ce764.tar.gz lombok-ed4068d84289390c74ca2e45149c9a22f96ce764.tar.bz2 lombok-ed4068d84289390c74ca2e45149c9a22f96ce764.zip |
Added a number of test for AllArgsConstuctor, RequiredArgsConstructor, NoArgsConstructor annotations and added a test for issue: 172
Diffstat (limited to 'test/transform/resource/after-ecj/Constructors.java')
-rw-r--r-- | test/transform/resource/after-ecj/Constructors.java | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/Constructors.java b/test/transform/resource/after-ecj/Constructors.java new file mode 100644 index 00000000..e4fba7ff --- /dev/null +++ b/test/transform/resource/after-ecj/Constructors.java @@ -0,0 +1,56 @@ +@lombok.RequiredArgsConstructor class RequiredArgsConstructor1 { + final int x; + String name; + public @java.beans.ConstructorProperties({"x"}) @java.lang.SuppressWarnings("all") RequiredArgsConstructor1(final int x) { + super(); + this.x = x; + } +} + +@lombok.RequiredArgsConstructor(access = lombok.AccessLevel.PROTECTED) class RequiredArgsConstructorAccess { + final int x; + String name; + protected @java.beans.ConstructorProperties({"x"}) @java.lang.SuppressWarnings("all") RequiredArgsConstructorAccess(final int x) { + super(); + this.x = x; + } +} + +@lombok.RequiredArgsConstructor(staticName = "staticname") class RequiredArgsConstructorStaticName { + final int x; + String name; + private @java.lang.SuppressWarnings("all") RequiredArgsConstructorStaticName(final int x) { + super(); + this.x = x; + } + public static @java.lang.SuppressWarnings("all") RequiredArgsConstructorStaticName staticname(final int x) { + return new RequiredArgsConstructorStaticName(x); + } +} + +@lombok.RequiredArgsConstructor() class RequiredArgsConstructorWithAnnotations { + final int x; + String name; + public @Deprecated @java.beans.ConstructorProperties({"x"}) @java.lang.SuppressWarnings("all") RequiredArgsConstructorWithAnnotations(final int x) { + super(); + this.x = x; + } +} + +@lombok.AllArgsConstructor class AllArgsConstructor1 { + final int x; + String name; + public @java.beans.ConstructorProperties({"x", "name"}) @java.lang.SuppressWarnings("all") AllArgsConstructor1(final int x, final String name) { + super(); + this.x = x; + this.name = name; + } +} + +@lombok.NoArgsConstructor class NoArgsConstructor1 { + final int x; + String name; + public @java.lang.SuppressWarnings("all") NoArgsConstructor1() { + super(); + } +}
\ No newline at end of file |