diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
3 files changed, 61 insertions, 5 deletions
diff --git a/test/transform/resource/after-delombok/Constructors.java b/test/transform/resource/after-delombok/Constructors.java index 12aa75ab..4ffdc62b 100644 --- a/test/transform/resource/after-delombok/Constructors.java +++ b/test/transform/resource/after-delombok/Constructors.java @@ -58,12 +58,10 @@ class NoArgsConstructor1 { class RequiredArgsConstructorStaticNameGenerics<T extends Number> { final T x; String name; - @java.lang.SuppressWarnings("all") private RequiredArgsConstructorStaticNameGenerics(final T x) { this.x = x; } - @java.lang.SuppressWarnings("all") public static <T extends Number> RequiredArgsConstructorStaticNameGenerics<T> of(final T x) { return new RequiredArgsConstructorStaticNameGenerics<T>(x); @@ -72,14 +70,19 @@ class RequiredArgsConstructorStaticNameGenerics<T extends Number> { class RequiredArgsConstructorStaticNameGenerics2<T extends Number> { final Class<T> x; String name; - @java.lang.SuppressWarnings("all") private RequiredArgsConstructorStaticNameGenerics2(final Class<T> x) { this.x = x; } - @java.lang.SuppressWarnings("all") public static <T extends Number> RequiredArgsConstructorStaticNameGenerics2<T> of(final Class<T> x) { return new RequiredArgsConstructorStaticNameGenerics2<T>(x); } -}
\ No newline at end of file +} +class AllArgsConstructorPackageAccess { + final String x; + @java.lang.SuppressWarnings("all") + AllArgsConstructorPackageAccess(final String x) { + this.x = x; + } +} diff --git a/test/transform/resource/after-delombok/ConstructorsConfiguration.java b/test/transform/resource/after-delombok/ConstructorsConfiguration.java new file mode 100644 index 00000000..5bec3ae3 --- /dev/null +++ b/test/transform/resource/after-delombok/ConstructorsConfiguration.java @@ -0,0 +1,15 @@ +class ConstructorsConfiguration { + int x; + @java.lang.SuppressWarnings("all") + public ConstructorsConfiguration(final int x) { + this.x = x; + } +} +class ConstructorsConfigurationExplicit { + int x; + @java.beans.ConstructorProperties({"x"}) + @java.lang.SuppressWarnings("all") + public ConstructorsConfigurationExplicit(final int x) { + this.x = x; + } +} diff --git a/test/transform/resource/after-delombok/DataConfiguration.java b/test/transform/resource/after-delombok/DataConfiguration.java new file mode 100644 index 00000000..230083ec --- /dev/null +++ b/test/transform/resource/after-delombok/DataConfiguration.java @@ -0,0 +1,38 @@ +class DataConfiguration { + final int x; + @java.lang.SuppressWarnings("all") + public DataConfiguration(final int x) { + this.x = x; + } + @java.lang.SuppressWarnings("all") + public int getX() { + return this.x; + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public boolean equals(final java.lang.Object o) { + if (o == this) return true; + if (!(o instanceof DataConfiguration)) return false; + final DataConfiguration other = (DataConfiguration)o; + if (!other.canEqual((java.lang.Object)this)) return false; + if (this.getX() != other.getX()) return false; + return true; + } + @java.lang.SuppressWarnings("all") + protected boolean canEqual(final java.lang.Object other) { + return other instanceof DataConfiguration; + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = result * PRIME + this.getX(); + return result; + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "DataConfiguration(x=" + this.getX() + ")"; + } +} |