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-delombok | |
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-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/Constructors.java | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/Constructors.java b/test/transform/resource/after-delombok/Constructors.java new file mode 100644 index 00000000..f8b090a1 --- /dev/null +++ b/test/transform/resource/after-delombok/Constructors.java @@ -0,0 +1,69 @@ +class RequiredArgsConstructor1 { + final int x; + String name; + + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") + public RequiredArgsConstructor1(final int x) { + this.x = x; + } +} + +class RequiredArgsConstructorAccess { + final int x; + String name; + + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") + protected RequiredArgsConstructorAccess(final int x) { + this.x = x; + } +} + +class RequiredArgsConstructorStaticName { + final int x; + String name; + + @java.lang.SuppressWarnings("all") + private RequiredArgsConstructorStaticName(final int x) { + this.x = x; + } + + @java.lang.SuppressWarnings("all") + public static RequiredArgsConstructorStaticName staticname(final int x) { + return new RequiredArgsConstructorStaticName(x); + } +} + +class RequiredArgsConstructorWithAnnotations { + final int x; + String name; + + @Deprecated + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") + public RequiredArgsConstructorWithAnnotations(final int x) { + this.x = x; + } +} + +class AllArgsConstructor1 { + final int x; + String name; + + @java.beans.ConstructorProperties({"x", "name"}) + @java.lang.SuppressWarnings("all") + public AllArgsConstructor1(final int x, final String name) { + this.x = x; + this.name = name; + } +} + +class NoArgsConstructor1 { + final int x; + String name; + + @java.lang.SuppressWarnings("all") + public NoArgsConstructor1() { + } +}
\ No newline at end of file |