mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 18:18:48 +00:00
Fix more broken tests
This commit is contained in:
1 parent
24a49a9d2b
commit
ffb299730e
16 files changed
+30
-25
No files matched your search
@@ -95,7 +95,7 @@ class BuilderSingularMapsWithSetterPrefix<K, V> {
|
||||
return this;
|
||||
}
|
||||
@SuppressWarnings("all")
|
||||
public BuilderSingularMapsWithSetterPrefixBuilder<K, V> withRawMan(Object rawMapKey, Object rawMapValue) {
|
||||
public BuilderSingularMapsWithSetterPrefixBuilder<K, V> withRawMap(Object rawMapKey, Object rawMapValue) {
|
||||
if (this.rawMap$key == null) {
|
||||
this.rawMap$key = new java.util.ArrayList<Object>();
|
||||
this.rawMap$value = new java.util.ArrayList<Object>();
|
||||
@@ -125,7 +125,7 @@ class BuilderSingularMapsWithSetterPrefix<K, V> {
|
||||
return this;
|
||||
}
|
||||
@SuppressWarnings("all")
|
||||
public BuilderSingularMapsWithSetterPrefixBuilder<K, V> stringMap(String stringMapKey, V stringMapValue) {
|
||||
public BuilderSingularMapsWithSetterPrefixBuilder<K, V> withStringMap(String stringMapKey, V stringMapValue) {
|
||||
if (this.stringMap$key == null) {
|
||||
this.stringMap$key = new java.util.ArrayList<String>();
|
||||
this.stringMap$value = new java.util.ArrayList<V>();
|
||||
@@ -135,7 +135,7 @@ class BuilderSingularMapsWithSetterPrefix<K, V> {
|
||||
return this;
|
||||
}
|
||||
@SuppressWarnings("all")
|
||||
public BuilderSingularMapsWithSetterPrefixBuilder<K, V> stringMap(java.util.Map<? extends String, ? extends V> stringMap) {
|
||||
public BuilderSingularMapsWithSetterPrefixBuilder<K, V> withStringMap(java.util.Map<? extends String, ? extends V> stringMap) {
|
||||
if (this.stringMap$key == null) {
|
||||
this.stringMap$key = new java.util.ArrayList<String>();
|
||||
this.stringMap$value = new java.util.ArrayList<V>();
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
import java.util.List;
|
||||
import java.util.Collection;
|
||||
@Builder(toBuilder = true, setterPrefix = "with")
|
||||
class BuilderSingularWildcardListsWithToBuilderWithSetterPrefix {
|
||||
private List<?> objects;
|
||||
private Collection<? extends Number> numbers;
|
||||
|
||||
@@ -39,7 +39,7 @@ class BuilderWithAccessorsWithSetterPrefix {
|
||||
return this;
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithAccessorsWithSetterPrefixBuilder with_Bar(final int _bar) {
|
||||
public BuilderWithAccessorsWithSetterPrefixBuilder with_bar(final int _bar) {
|
||||
this._bar = _bar;
|
||||
return this;
|
||||
}
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
|
||||
public static <Z extends Number> BuilderWithExistingBuilderClassWithSetterPrefix<String, Z> staticMethod(Z arg1, boolean arg2, String arg3) {
|
||||
return null;
|
||||
}
|
||||
public static class BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z extends Number> {
|
||||
public static class BuilderWithExistingBuilderClassBuilderWithSetterPrefixBuilder<Z extends Number> {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
private boolean arg2;
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@@ -11,7 +11,7 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
|
||||
public void withArg2(boolean arg) {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
BuilderWithExistingBuilderClassWithSetterPrefixBuilder() {
|
||||
BuilderWithExistingBuilderClassBuilderWithSetterPrefixBuilder() {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z> withArg1(final Z arg1) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import lombok.Builder
|
||||
class BuilderWithNoBuilderMethodWithSetterPrefix {
|
||||
private String a = "";
|
||||
@java.lang.SuppressWarnings("all")
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import java.util.List;
|
||||
import lombok.Builder;
|
||||
class BuilderWithToBuilderWithSetterPrefix<T> {
|
||||
private String mOne;
|
||||
private String mTwo;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import java.util.List;
|
||||
@lombok.Builder(access = lombok.AccessLevel.PROTECTED,setterPrefix = "with") class BuilderSimpleWithSetterPrefix<T> {
|
||||
protected static @java.lang.SuppressWarnings("all") class BuilderSimpleWithSetterPrefix<T> {
|
||||
protected static @java.lang.SuppressWarnings("all") class BuilderSimpleWithSetterPrefixBuilder<T> {
|
||||
private @java.lang.SuppressWarnings("all") int unprefixed;
|
||||
@java.lang.SuppressWarnings("all") BuilderWithPrefixBuilder() {
|
||||
@java.lang.SuppressWarnings("all") BuilderSimpleWithSetterPrefixBuilder() {
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderWithPrefixBuilder<T> withUnprefixed(final int unprefixed) {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import lombok.Singular;
|
||||
@lombok.Builder(toBuilder = true, setterPrefix = "with") class BuilderSingularToBuilderWithNullWithSetterPrefix {
|
||||
@lombok.Builder(toBuilder = true,setterPrefix = "with") class BuilderSingularToBuilderWithNullWithSetterPrefix {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderSingularToBuilderWithNullWithSetterPrefixBuilder {
|
||||
private @java.lang.SuppressWarnings("all") java.util.ArrayList<String> elems;
|
||||
@java.lang.SuppressWarnings("all") BuilderSingularToBuilderWithNullWithSetterPrefixBuilder() {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import java.util.List;
|
||||
import java.util.Collection;
|
||||
import lombok.Singular;
|
||||
@lombok.Builder(toBuilder = true, setterPrefix = "with") class BuilderSingularWildcardListsWithToBuilderWithSetterPrefix {
|
||||
@lombok.Builder(toBuilder = true,setterPrefix = "with") class BuilderSingularWildcardListsWithToBuilderWithSetterPrefix {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderSingularWildcardListsWithToBuilderWithSetterPrefixBuilder {
|
||||
private @java.lang.SuppressWarnings("all") java.util.ArrayList<java.lang.Object> objects;
|
||||
private @java.lang.SuppressWarnings("all") java.util.ArrayList<Number> numbers;
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
import lombok.Singular;
|
||||
@lombok.Builder(setterPrefix = "with") @lombok.experimental.Accessors(prefix = "_") class BuilderSingularWithPrefixesWithSetterPrefixes {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderSingularWithPrefixesWithSetterPrefixesBuilder {
|
||||
@lombok.Builder(setterPrefix = "with") @lombok.experimental.Accessors(prefix = "_") class BuilderSingularWithPrefixesWithSetterPrefix {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderSingularWithPrefixesWithSetterPrefixBuilder {
|
||||
private @java.lang.SuppressWarnings("all") java.util.ArrayList<String> elems;
|
||||
@java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixesBuilder() {
|
||||
@java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixBuilder() {
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixesBuilder withElem(final String elem) {
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixBuilder withElem(final String elem) {
|
||||
if ((this.elems == null))
|
||||
this.elems = new java.util.ArrayList<String>();
|
||||
this.elems.add(elem);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixesBuilder withElems(final java.util.Collection<? extends String> elems) {
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixBuilder withElems(final java.util.Collection<? extends String> elems) {
|
||||
if ((this.elems == null))
|
||||
this.elems = new java.util.ArrayList<String>();
|
||||
this.elems.addAll(elems);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixesBuilder clearElems() {
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixBuilder clearElems() {
|
||||
if ((this.elems != null))
|
||||
this.elems.clear();
|
||||
return this;
|
||||
@@ -37,7 +37,7 @@ import lombok.Singular;
|
||||
return new BuilderSingularWithPrefixesWithSetterPrefixes(elems);
|
||||
}
|
||||
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
|
||||
return (("BuilderSingularWithPrefixesWithSetterPrefixes.BuilderSingularWithPrefixesWithSetterPrefixesBuilder(elems=" + this.elems) + ")");
|
||||
return (("BuilderSingularWithPrefixesWithSetterPrefixes.BuilderSingularWithPrefixesWithSetterPrefixBuilder(elems=" + this.elems) + ")");
|
||||
}
|
||||
}
|
||||
private @Singular java.util.List<String> _elems;
|
||||
@@ -45,7 +45,7 @@ import lombok.Singular;
|
||||
super();
|
||||
this._elems = elems;
|
||||
}
|
||||
public static @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixesBuilder builder() {
|
||||
return new BuilderSingularWithPrefixesWithSetterPrefixesBuilder();
|
||||
public static @java.lang.SuppressWarnings("all") BuilderSingularWithPrefixesWithSetterPrefixBuilder builder() {
|
||||
return new BuilderSingularWithPrefixesWithSetterPrefixBuilder();
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ final @lombok.Builder(setterPrefix = "with") @lombok.Value class BuilderAndValue
|
||||
return (("BuilderAndValueWithSetterPrefix(zero=" + this.getZero()) + ")");
|
||||
}
|
||||
}
|
||||
@lombok.Builder @lombok.Data class BuilderAndDataWithSetterPrefix {
|
||||
@lombok.Builder(setterPrefix = "with") @lombok.Data class BuilderAndDataWithSetterPrefix {
|
||||
public static @java.lang.SuppressWarnings("all") class BuilderAndDataWithSetterPrefixBuilder {
|
||||
@java.lang.SuppressWarnings("all") BuilderAndDataWithSetterPrefixBuilder() {
|
||||
super();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
this.foo = foo;
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderWithAccessorsWithSetterPrefixBuilder with_Bar(final int _bar) {
|
||||
public @java.lang.SuppressWarnings("all") BuilderWithAccessorsWithSetterPrefixBuilder with_bar(final int _bar) {
|
||||
this._bar = _bar;
|
||||
return this;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import lombok.Builder;
|
||||
class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
|
||||
public static class BuilderWithExistingBuilderClassWithSetterPrefixBuilder<Z extends Number> {
|
||||
public static class BuilderWithExistingBuilderClassBuilderWithSetterPrefixBuilder<Z extends Number> {
|
||||
private @java.lang.SuppressWarnings("all") boolean arg2;
|
||||
private @java.lang.SuppressWarnings("all") String arg3;
|
||||
private Z arg1;
|
||||
|
||||
@@ -6,7 +6,7 @@ class BuilderWithExistingBuilderClassWithSetterPrefix<T, K extends Number> {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static class BuilderWithExistingBuilderClassBuilderWithSetterPrefix<Z extends Number> {
|
||||
public static class BuilderWithExistingBuilderClassBuilderWithSetterPrefixBuilder<Z extends Number> {
|
||||
private Z arg1;
|
||||
|
||||
public void withArg2(boolean arg) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import lombok.Builder(setterPrefix = "with");
|
||||
@Builder(toBuilder = true, builderMethodName = "", setterPrefix = "with")
|
||||
import lombok.Builder
|
||||
@Builder(toBuilder = true, builderMethodName = "",setterPrefix = "with")
|
||||
class BuilderWithNoBuilderMethodWithSetterPrefix {
|
||||
private String a = "";
|
||||
}
|
||||
+2
@@ -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.
|
||||
Reference in new issue
Block a user