From fa38498f793ae1af8a916a51de01735f727bc7fc Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 30 Mar 2015 22:01:14 +0200 Subject: A capital/lowercase letter messup in a test file means people on case sensitive file systems had problems running tests. Fixed it by renaming the whole file, as I know renames on case INsensitive file systems to fix capitalization usually doesn’t work well either. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../after-delombok/BuilderSingularNoAuto.java | 121 +++++++++++++++++++++ .../BuilderSingularNoAutosingularize.java | 121 --------------------- .../resource/after-ecj/BuilderSingularNoAuto.java | 99 +++++++++++++++++ .../BuilderSingularNoAutosingularize.java | 99 ----------------- .../resource/before/BuilderSingularNoAuto.java | 11 ++ .../before/BuilderSingularNoAutoSingularize.java | 11 -- .../BuilderSingularNoAuto.java.messages | 2 + .../BuilderSingularNoAutosingularize.java.messages | 2 - .../BuilderSingularNoAuto.java.messages | 2 + .../BuilderSingularNoAutosingularize.java.messages | 2 - 10 files changed, 235 insertions(+), 235 deletions(-) create mode 100644 test/transform/resource/after-delombok/BuilderSingularNoAuto.java delete mode 100644 test/transform/resource/after-delombok/BuilderSingularNoAutosingularize.java create mode 100644 test/transform/resource/after-ecj/BuilderSingularNoAuto.java delete mode 100644 test/transform/resource/after-ecj/BuilderSingularNoAutosingularize.java create mode 100644 test/transform/resource/before/BuilderSingularNoAuto.java delete mode 100644 test/transform/resource/before/BuilderSingularNoAutoSingularize.java create mode 100644 test/transform/resource/messages-delombok/BuilderSingularNoAuto.java.messages delete mode 100644 test/transform/resource/messages-delombok/BuilderSingularNoAutosingularize.java.messages create mode 100644 test/transform/resource/messages-ecj/BuilderSingularNoAuto.java.messages delete mode 100644 test/transform/resource/messages-ecj/BuilderSingularNoAutosingularize.java.messages (limited to 'test/transform/resource') diff --git a/test/transform/resource/after-delombok/BuilderSingularNoAuto.java b/test/transform/resource/after-delombok/BuilderSingularNoAuto.java new file mode 100644 index 00000000..0be33a84 --- /dev/null +++ b/test/transform/resource/after-delombok/BuilderSingularNoAuto.java @@ -0,0 +1,121 @@ +import java.util.List; +class BuilderSingularNoAuto { + private List things; + private List widgets; + private List items; + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + BuilderSingularNoAuto(final List things, final List widgets, final List items) { + this.things = things; + this.widgets = widgets; + this.items = items; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public static class BuilderSingularNoAutoBuilder { + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + private java.util.ArrayList things; + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + private java.util.ArrayList widgets; + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + private java.util.ArrayList items; + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + BuilderSingularNoAutoBuilder() { + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAutoBuilder things(final String things) { + if (this.things == null) this.things = new java.util.ArrayList(); + this.things.add(things); + return this; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAutoBuilder things(final java.util.Collection things) { + if (this.things == null) this.things = new java.util.ArrayList(); + this.things.addAll(things); + return this; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAutoBuilder widget(final String widget) { + if (this.widgets == null) this.widgets = new java.util.ArrayList(); + this.widgets.add(widget); + return this; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAutoBuilder widgets(final java.util.Collection widgets) { + if (this.widgets == null) this.widgets = new java.util.ArrayList(); + this.widgets.addAll(widgets); + return this; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAutoBuilder items(final String items) { + if (this.items == null) this.items = new java.util.ArrayList(); + this.items.add(items); + return this; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAutoBuilder items(final java.util.Collection items) { + if (this.items == null) this.items = new java.util.ArrayList(); + this.items.addAll(items); + return this; + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public BuilderSingularNoAuto build() { + java.util.List things; + switch (this.things == null ? 0 : this.things.size()) { + case 0: + things = java.util.Collections.emptyList(); + break; + case 1: + things = java.util.Collections.singletonList(this.things.get(0)); + break; + default: + things = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.things)); + } + java.util.List widgets; + switch (this.widgets == null ? 0 : this.widgets.size()) { + case 0: + widgets = java.util.Collections.emptyList(); + break; + case 1: + widgets = java.util.Collections.singletonList(this.widgets.get(0)); + break; + default: + widgets = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.widgets)); + } + java.util.List items; + switch (this.items == null ? 0 : this.items.size()) { + case 0: + items = java.util.Collections.emptyList(); + break; + case 1: + items = java.util.Collections.singletonList(this.items.get(0)); + break; + default: + items = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.items)); + } + return new BuilderSingularNoAuto(things, widgets, items); + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public java.lang.String toString() { + return "BuilderSingularNoAuto.BuilderSingularNoAutoBuilder(things=" + this.things + ", widgets=" + this.widgets + ", items=" + this.items + ")"; + } + } + @java.lang.SuppressWarnings("all") + @javax.annotation.Generated("lombok") + public static BuilderSingularNoAutoBuilder builder() { + return new BuilderSingularNoAutoBuilder(); + } +} \ No newline at end of file diff --git a/test/transform/resource/after-delombok/BuilderSingularNoAutosingularize.java b/test/transform/resource/after-delombok/BuilderSingularNoAutosingularize.java deleted file mode 100644 index 8a1d4ef2..00000000 --- a/test/transform/resource/after-delombok/BuilderSingularNoAutosingularize.java +++ /dev/null @@ -1,121 +0,0 @@ -import java.util.List; -class BuilderSingularNoAutosingularize { - private List things; - private List widgets; - private List items; - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - BuilderSingularNoAutosingularize(final List things, final List widgets, final List items) { - this.things = things; - this.widgets = widgets; - this.items = items; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public static class BuilderSingularNoAutosingularizeBuilder { - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - private java.util.ArrayList things; - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - private java.util.ArrayList widgets; - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - private java.util.ArrayList items; - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - BuilderSingularNoAutosingularizeBuilder() { - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularizeBuilder things(final String things) { - if (this.things == null) this.things = new java.util.ArrayList(); - this.things.add(things); - return this; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularizeBuilder things(final java.util.Collection things) { - if (this.things == null) this.things = new java.util.ArrayList(); - this.things.addAll(things); - return this; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularizeBuilder widget(final String widget) { - if (this.widgets == null) this.widgets = new java.util.ArrayList(); - this.widgets.add(widget); - return this; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularizeBuilder widgets(final java.util.Collection widgets) { - if (this.widgets == null) this.widgets = new java.util.ArrayList(); - this.widgets.addAll(widgets); - return this; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularizeBuilder items(final String items) { - if (this.items == null) this.items = new java.util.ArrayList(); - this.items.add(items); - return this; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularizeBuilder items(final java.util.Collection items) { - if (this.items == null) this.items = new java.util.ArrayList(); - this.items.addAll(items); - return this; - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public BuilderSingularNoAutosingularize build() { - java.util.List things; - switch (this.things == null ? 0 : this.things.size()) { - case 0: - things = java.util.Collections.emptyList(); - break; - case 1: - things = java.util.Collections.singletonList(this.things.get(0)); - break; - default: - things = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.things)); - } - java.util.List widgets; - switch (this.widgets == null ? 0 : this.widgets.size()) { - case 0: - widgets = java.util.Collections.emptyList(); - break; - case 1: - widgets = java.util.Collections.singletonList(this.widgets.get(0)); - break; - default: - widgets = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.widgets)); - } - java.util.List items; - switch (this.items == null ? 0 : this.items.size()) { - case 0: - items = java.util.Collections.emptyList(); - break; - case 1: - items = java.util.Collections.singletonList(this.items.get(0)); - break; - default: - items = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.items)); - } - return new BuilderSingularNoAutosingularize(things, widgets, items); - } - @java.lang.Override - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public java.lang.String toString() { - return "BuilderSingularNoAutosingularize.BuilderSingularNoAutosingularizeBuilder(things=" + this.things + ", widgets=" + this.widgets + ", items=" + this.items + ")"; - } - } - @java.lang.SuppressWarnings("all") - @javax.annotation.Generated("lombok") - public static BuilderSingularNoAutosingularizeBuilder builder() { - return new BuilderSingularNoAutosingularizeBuilder(); - } -} \ No newline at end of file diff --git a/test/transform/resource/after-ecj/BuilderSingularNoAuto.java b/test/transform/resource/after-ecj/BuilderSingularNoAuto.java new file mode 100644 index 00000000..d5b06f1e --- /dev/null +++ b/test/transform/resource/after-ecj/BuilderSingularNoAuto.java @@ -0,0 +1,99 @@ +import java.util.List; +import lombok.Singular; +@lombok.Builder class BuilderSingularNoAuto { + public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") class BuilderSingularNoAutoBuilder { + private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.util.ArrayList things; + private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.util.ArrayList widgets; + private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.util.ArrayList items; + @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder() { + super(); + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder things(String things) { + if ((this.things == null)) + this.things = new java.util.ArrayList(); + this.things.add(things); + return this; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder things(java.util.Collection things) { + if ((this.things == null)) + this.things = new java.util.ArrayList(); + this.things.addAll(things); + return this; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder widget(String widget) { + if ((this.widgets == null)) + this.widgets = new java.util.ArrayList(); + this.widgets.add(widget); + return this; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder widgets(java.util.Collection widgets) { + if ((this.widgets == null)) + this.widgets = new java.util.ArrayList(); + this.widgets.addAll(widgets); + return this; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder items(String items) { + if ((this.items == null)) + this.items = new java.util.ArrayList(); + this.items.add(items); + return this; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder items(java.util.Collection items) { + if ((this.items == null)) + this.items = new java.util.ArrayList(); + this.items.addAll(items); + return this; + } + public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAuto build() { + java.util.List things; + switch (((this.things == null) ? 0 : this.things.size())) { + case 0 : + things = java.util.Collections.emptyList(); + break; + case 1 : + things = java.util.Collections.singletonList(this.things.get(0)); + break; + default : + things = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.things)); + } + java.util.List widgets; + switch (((this.widgets == null) ? 0 : this.widgets.size())) { + case 0 : + widgets = java.util.Collections.emptyList(); + break; + case 1 : + widgets = java.util.Collections.singletonList(this.widgets.get(0)); + break; + default : + widgets = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.widgets)); + } + java.util.List items; + switch (((this.items == null) ? 0 : this.items.size())) { + case 0 : + items = java.util.Collections.emptyList(); + break; + case 1 : + items = java.util.Collections.singletonList(this.items.get(0)); + break; + default : + items = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.items)); + } + return new BuilderSingularNoAuto(things, widgets, items); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() { + return (((((("BuilderSingularNoAuto.BuilderSingularNoAutoBuilder(things=" + this.things) + ", widgets=") + this.widgets) + ", items=") + this.items) + ")"); + } + } + private @Singular List things; + private @Singular("widget") List widgets; + private @Singular List items; + @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAuto(final List things, final List widgets, final List items) { + super(); + this.things = things; + this.widgets = widgets; + this.items = items; + } + public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder builder() { + return new BuilderSingularNoAutoBuilder(); + } +} diff --git a/test/transform/resource/after-ecj/BuilderSingularNoAutosingularize.java b/test/transform/resource/after-ecj/BuilderSingularNoAutosingularize.java deleted file mode 100644 index 0e0594e4..00000000 --- a/test/transform/resource/after-ecj/BuilderSingularNoAutosingularize.java +++ /dev/null @@ -1,99 +0,0 @@ -import java.util.List; -import lombok.Singular; -@lombok.Builder class BuilderSingularNoAutosingularize { - public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") class BuilderSingularNoAutosingularizeBuilder { - private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.util.ArrayList things; - private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.util.ArrayList widgets; - private @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.util.ArrayList items; - @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder() { - super(); - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder things(String things) { - if ((this.things == null)) - this.things = new java.util.ArrayList(); - this.things.add(things); - return this; - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder things(java.util.Collection things) { - if ((this.things == null)) - this.things = new java.util.ArrayList(); - this.things.addAll(things); - return this; - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder widget(String widget) { - if ((this.widgets == null)) - this.widgets = new java.util.ArrayList(); - this.widgets.add(widget); - return this; - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder widgets(java.util.Collection widgets) { - if ((this.widgets == null)) - this.widgets = new java.util.ArrayList(); - this.widgets.addAll(widgets); - return this; - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder items(String items) { - if ((this.items == null)) - this.items = new java.util.ArrayList(); - this.items.add(items); - return this; - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder items(java.util.Collection items) { - if ((this.items == null)) - this.items = new java.util.ArrayList(); - this.items.addAll(items); - return this; - } - public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularize build() { - java.util.List things; - switch (((this.things == null) ? 0 : this.things.size())) { - case 0 : - things = java.util.Collections.emptyList(); - break; - case 1 : - things = java.util.Collections.singletonList(this.things.get(0)); - break; - default : - things = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.things)); - } - java.util.List widgets; - switch (((this.widgets == null) ? 0 : this.widgets.size())) { - case 0 : - widgets = java.util.Collections.emptyList(); - break; - case 1 : - widgets = java.util.Collections.singletonList(this.widgets.get(0)); - break; - default : - widgets = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.widgets)); - } - java.util.List items; - switch (((this.items == null) ? 0 : this.items.size())) { - case 0 : - items = java.util.Collections.emptyList(); - break; - case 1 : - items = java.util.Collections.singletonList(this.items.get(0)); - break; - default : - items = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.items)); - } - return new BuilderSingularNoAutosingularize(things, widgets, items); - } - public @java.lang.Override @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") java.lang.String toString() { - return (((((("BuilderSingularNoAutosingularize.BuilderSingularNoAutosingularizeBuilder(things=" + this.things) + ", widgets=") + this.widgets) + ", items=") + this.items) + ")"); - } - } - private @Singular List things; - private @Singular("widget") List widgets; - private @Singular List items; - @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularize(final List things, final List widgets, final List items) { - super(); - this.things = things; - this.widgets = widgets; - this.items = items; - } - public static @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutosingularizeBuilder builder() { - return new BuilderSingularNoAutosingularizeBuilder(); - } -} diff --git a/test/transform/resource/before/BuilderSingularNoAuto.java b/test/transform/resource/before/BuilderSingularNoAuto.java new file mode 100644 index 00000000..f58c4075 --- /dev/null +++ b/test/transform/resource/before/BuilderSingularNoAuto.java @@ -0,0 +1,11 @@ +//CONF: lombok.singular.auto = false +import java.util.List; + +import lombok.Singular; + +@lombok.Builder +class BuilderSingularNoAuto { + @Singular private List things; + @Singular("widget") private List widgets; + @Singular private List items; +} diff --git a/test/transform/resource/before/BuilderSingularNoAutoSingularize.java b/test/transform/resource/before/BuilderSingularNoAutoSingularize.java deleted file mode 100644 index 31e2c3ca..00000000 --- a/test/transform/resource/before/BuilderSingularNoAutoSingularize.java +++ /dev/null @@ -1,11 +0,0 @@ -//CONF: lombok.singular.auto = false -import java.util.List; - -import lombok.Singular; - -@lombok.Builder -class BuilderSingularNoAutosingularize { - @Singular private List things; - @Singular("widget") private List widgets; - @Singular private List items; -} diff --git a/test/transform/resource/messages-delombok/BuilderSingularNoAuto.java.messages b/test/transform/resource/messages-delombok/BuilderSingularNoAuto.java.messages new file mode 100644 index 00000000..8719789b --- /dev/null +++ b/test/transform/resource/messages-delombok/BuilderSingularNoAuto.java.messages @@ -0,0 +1,2 @@ +8 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. +10 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. diff --git a/test/transform/resource/messages-delombok/BuilderSingularNoAutosingularize.java.messages b/test/transform/resource/messages-delombok/BuilderSingularNoAutosingularize.java.messages deleted file mode 100644 index 8719789b..00000000 --- a/test/transform/resource/messages-delombok/BuilderSingularNoAutosingularize.java.messages +++ /dev/null @@ -1,2 +0,0 @@ -8 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. -10 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. diff --git a/test/transform/resource/messages-ecj/BuilderSingularNoAuto.java.messages b/test/transform/resource/messages-ecj/BuilderSingularNoAuto.java.messages new file mode 100644 index 00000000..8719789b --- /dev/null +++ b/test/transform/resource/messages-ecj/BuilderSingularNoAuto.java.messages @@ -0,0 +1,2 @@ +8 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. +10 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. diff --git a/test/transform/resource/messages-ecj/BuilderSingularNoAutosingularize.java.messages b/test/transform/resource/messages-ecj/BuilderSingularNoAutosingularize.java.messages deleted file mode 100644 index 8719789b..00000000 --- a/test/transform/resource/messages-ecj/BuilderSingularNoAutosingularize.java.messages +++ /dev/null @@ -1,2 +0,0 @@ -8 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. -10 The singular must be specified explicitly (e.g. @Singular("task")) because auto singularization is disabled. -- cgit