aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderWithDeprecated.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2017-12-04 21:41:22 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2017-12-04 21:41:47 +0100
commit9aac454aecafa2ea831af914161326295db5e481 (patch)
treeed16cb070314a9fa6c5f1b442e9349735cb3bd7b /test/transform/resource/after-delombok/BuilderWithDeprecated.java
parentd7c019c07c3851fa0c89b3080da6c08d021fd272 (diff)
downloadlombok-9aac454aecafa2ea831af914161326295db5e481.tar.gz
lombok-9aac454aecafa2ea831af914161326295db5e481.tar.bz2
lombok-9aac454aecafa2ea831af914161326295db5e481.zip
fixing tests to account for generation of javax.annotation.Generated and ConstructorProperties being default-off.
Diffstat (limited to 'test/transform/resource/after-delombok/BuilderWithDeprecated.java')
-rw-r--r--test/transform/resource/after-delombok/BuilderWithDeprecated.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/transform/resource/after-delombok/BuilderWithDeprecated.java b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
index 766f23a6..cd887529 100644
--- a/test/transform/resource/after-delombok/BuilderWithDeprecated.java
+++ b/test/transform/resource/after-delombok/BuilderWithDeprecated.java
@@ -10,9 +10,7 @@ public class BuilderWithDeprecated {
java.util.List<String> strings;
@Deprecated
ImmutableList<Integer> numbers;
- @java.beans.ConstructorProperties({"dep1", "dep2", "strings", "numbers"})
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithDeprecated(final String dep1, final int dep2, final java.util.List<String> strings, final ImmutableList<Integer> numbers) {
this.dep1 = dep1;
this.dep2 = dep2;
@@ -20,41 +18,32 @@ public class BuilderWithDeprecated {
this.numbers = numbers;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static class BuilderWithDeprecatedBuilder {
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private String dep1;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private int dep2;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private java.util.ArrayList<String> strings;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
private com.google.common.collect.ImmutableList.Builder<Integer> numbers;
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
BuilderWithDeprecatedBuilder() {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder dep1(final String dep1) {
this.dep1 = dep1;
return this;
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder dep2(final int dep2) {
this.dep2 = dep2;
return this;
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder string(final String string) {
if (this.strings == null) this.strings = new java.util.ArrayList<String>();
this.strings.add(string);
@@ -62,7 +51,6 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder strings(final java.util.Collection<? extends String> strings) {
if (this.strings == null) this.strings = new java.util.ArrayList<String>();
this.strings.addAll(strings);
@@ -70,14 +58,12 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder clearStrings() {
if (this.strings != null) this.strings.clear();
return this;
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder number(final Integer number) {
if (this.numbers == null) this.numbers = com.google.common.collect.ImmutableList.builder();
this.numbers.add(number);
@@ -85,7 +71,6 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder numbers(final java.lang.Iterable<? extends Integer> numbers) {
if (this.numbers == null) this.numbers = com.google.common.collect.ImmutableList.builder();
this.numbers.addAll(numbers);
@@ -93,13 +78,11 @@ public class BuilderWithDeprecated {
}
@java.lang.Deprecated
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecatedBuilder clearNumbers() {
this.numbers = null;
return this;
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public BuilderWithDeprecated build() {
java.util.List<String> strings;
switch (this.strings == null ? 0 : this.strings.size()) {
@@ -117,13 +100,11 @@ public class BuilderWithDeprecated {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public java.lang.String toString() {
return "BuilderWithDeprecated.BuilderWithDeprecatedBuilder(dep1=" + this.dep1 + ", dep2=" + this.dep2 + ", strings=" + this.strings + ", numbers=" + this.numbers + ")";
}
}
@java.lang.SuppressWarnings("all")
- @javax.annotation.Generated("lombok")
public static BuilderWithDeprecatedBuilder builder() {
return new BuilderWithDeprecatedBuilder();
}