aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java')
-rw-r--r--test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java b/test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java
new file mode 100644
index 00000000..7e5b51f2
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java
@@ -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();
+ }
+}