aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderSingularToBuilderGuava.java
blob: 7e5b51f2dd00a602ad58f580c4b09faea5c76c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
	}
}