diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-14 01:21:17 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-14 01:21:24 +0100 |
commit | 72f546f9cb424932024e91b2c4431aea51909c42 (patch) | |
tree | 03b89ddae6d70ae312fa1e13ebd42cee776ab327 /test/transform | |
parent | 89f98da78d3ffd9e9f6f7151fcaf5e4329d2e8dd (diff) | |
download | lombok-72f546f9cb424932024e91b2c4431aea51909c42.tar.gz lombok-72f546f9cb424932024e91b2c4431aea51909c42.tar.bz2 lombok-72f546f9cb424932024e91b2c4431aea51909c42.zip |
[trivial] improving consistency between javac vs. ecj output
wasn't worth an issue on the tracker: javac and ecj handlers for static constructors would differ; ecjs would specify the return type and constructor invocation using fully qualified types, whereas the handler for javac did not.
Diffstat (limited to 'test/transform')
3 files changed, 29 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ConstructorInner.java b/test/transform/resource/after-delombok/ConstructorInner.java new file mode 100644 index 00000000..fb0852dc --- /dev/null +++ b/test/transform/resource/after-delombok/ConstructorInner.java @@ -0,0 +1,11 @@ +class ConstructorInner { + static class Inner { + @java.lang.SuppressWarnings("all") + private Inner() { + } + @java.lang.SuppressWarnings("all") + public static ConstructorInner.Inner of() { + return new ConstructorInner.Inner(); + } + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/ConstructorInner.java b/test/transform/resource/after-ecj/ConstructorInner.java new file mode 100644 index 00000000..be8ea17e --- /dev/null +++ b/test/transform/resource/after-ecj/ConstructorInner.java @@ -0,0 +1,13 @@ +class ConstructorInner { + static @lombok.AllArgsConstructor(staticName = "of") class Inner { + private @java.lang.SuppressWarnings("all") Inner() { + super(); + } + public static @java.lang.SuppressWarnings("all") ConstructorInner.Inner of() { + return new ConstructorInner.Inner(); + } + } + ConstructorInner() { + super(); + } +}
\ No newline at end of file diff --git a/test/transform/resource/before/ConstructorInner.java b/test/transform/resource/before/ConstructorInner.java new file mode 100644 index 00000000..dd74d43a --- /dev/null +++ b/test/transform/resource/before/ConstructorInner.java @@ -0,0 +1,5 @@ +class ConstructorInner { + @lombok.AllArgsConstructor(staticName = "of") + static class Inner { + } +}
\ No newline at end of file |