aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-12 02:04:20 +0100
committerGitHub <noreply@github.com>2023-01-12 02:04:20 +0100
commit9e6f66c557205bff3c87eefb4c7a7631d0b89ff0 (patch)
treecaa14a97db0852d16444575892db6d0761cc18de /test/transform/resource/after-ecj
parent8bb4dc5daa8792e718e88c596812f232a2b73e6e (diff)
parentf13b4dbbfccfe5a6bb72906c84c2e640e05d7788 (diff)
downloadlombok-9e6f66c557205bff3c87eefb4c7a7631d0b89ff0.tar.gz
lombok-9e6f66c557205bff3c87eefb4c7a7631d0b89ff0.tar.bz2
lombok-9e6f66c557205bff3c87eefb4c7a7631d0b89ff0.zip
Merge pull request #3325 from Rawi01/builder-default-array
Convert short array initializers to long version
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/BuilderDefaultsArray.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/BuilderDefaultsArray.java b/test/transform/resource/after-ecj/BuilderDefaultsArray.java
new file mode 100644
index 00000000..d25e0371
--- /dev/null
+++ b/test/transform/resource/after-ecj/BuilderDefaultsArray.java
@@ -0,0 +1,57 @@
+import lombok.Builder;
+import lombok.Value;
+public @Builder class BuilderDefaultsArray {
+ public static @java.lang.SuppressWarnings("all") class BuilderDefaultsArrayBuilder {
+ private @java.lang.SuppressWarnings("all") int[] x$value;
+ private @java.lang.SuppressWarnings("all") boolean x$set;
+ private @java.lang.SuppressWarnings("all") java.lang.String[][] y$value;
+ private @java.lang.SuppressWarnings("all") boolean y$set;
+ @java.lang.SuppressWarnings("all") BuilderDefaultsArrayBuilder() {
+ super();
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") BuilderDefaultsArray.BuilderDefaultsArrayBuilder x(final int[] x) {
+ this.x$value = x;
+ x$set = true;
+ return this;
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") BuilderDefaultsArray.BuilderDefaultsArrayBuilder y(final java.lang.String[][] y) {
+ this.y$value = y;
+ y$set = true;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderDefaultsArray build() {
+ int[] x$value = this.x$value;
+ if ((! this.x$set))
+ x$value = BuilderDefaultsArray.$default$x();
+ java.lang.String[][] y$value = this.y$value;
+ if ((! this.y$set))
+ y$value = BuilderDefaultsArray.$default$y();
+ return new BuilderDefaultsArray(x$value, y$value);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (((("BuilderDefaultsArray.BuilderDefaultsArrayBuilder(x$value=" + java.util.Arrays.toString(this.x$value)) + ", y$value=") + java.util.Arrays.deepToString(this.y$value)) + ")");
+ }
+ }
+ @Builder.Default int[] x;
+ @Builder.Default java.lang.String[][] y;
+ private static @java.lang.SuppressWarnings("all") int[] $default$x() {
+ return new int[]{1, 2};
+ }
+ private static @java.lang.SuppressWarnings("all") java.lang.String[][] $default$y() {
+ return new java.lang.String[][]{};
+ }
+ @java.lang.SuppressWarnings("all") BuilderDefaultsArray(final int[] x, final java.lang.String[][] y) {
+ super();
+ this.x = x;
+ this.y = y;
+ }
+ public static @java.lang.SuppressWarnings("all") BuilderDefaultsArray.BuilderDefaultsArrayBuilder builder() {
+ return new BuilderDefaultsArray.BuilderDefaultsArrayBuilder();
+ }
+} \ No newline at end of file