mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 00:16:47 +00:00
[fixes #3070] fix guava type name for SuperBuilder's toBuilder
This commit is contained in:
1 parent
be551db9ee
commit
3de5d0908a
5 files changed
+494
-2
No files matched your search
@@ -0,0 +1,19 @@
|
||||
public class SuperBuilderSingularToBuilderGuava {
|
||||
@lombok.experimental.SuperBuilder(toBuilder=true)
|
||||
public static class Parent<T> {
|
||||
@lombok.Singular private com.google.common.collect.ImmutableList<T> cards;
|
||||
@lombok.Singular private com.google.common.collect.ImmutableCollection<? extends Number> frogs;
|
||||
@SuppressWarnings("all") @lombok.Singular("rawSet") private com.google.common.collect.ImmutableSet rawSet;
|
||||
@lombok.Singular private com.google.common.collect.ImmutableSortedSet<String> passes;
|
||||
@lombok.Singular private com.google.common.collect.ImmutableTable<? extends Number, ? extends Number, String> users;
|
||||
}
|
||||
|
||||
@lombok.experimental.SuperBuilder(toBuilder=true)
|
||||
public static class Child<T> extends Parent<T> {
|
||||
private double field3;
|
||||
}
|
||||
|
||||
public static void test() {
|
||||
Child<Integer> x = Child.<Integer>builder().card(1).build().toBuilder().build();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user