@@ -529,7 +529,7 @@ void invalidBothMapperAndCollectorHaveTypeargsUnresolvedCollectorTypearg() {
529
529
}
530
530
531
531
@ Test
532
- void validBothMapperCollectorAndResultTypeHaveTypeargs () {
532
+ void validBothMapperCollectorAndResultHaveTypeargs () {
533
533
List <String > sourceLines = withImports (
534
534
"@CommandLineArguments" ,
535
535
"abstract class ValidArguments {" ,
@@ -538,21 +538,21 @@ void validBothMapperCollectorAndResultTypeHaveTypeargs() {
538
538
" repeatable = true," ,
539
539
" mappedBy = Map.class," ,
540
540
" collectedBy = Collect.class)" ,
541
- " abstract List<List< Result<String> >> map();" ,
541
+ " abstract List<Result<String>> map();" ,
542
542
"" ,
543
- " static class Map<E, F> implements Supplier<Function<E, F>> {" ,
543
+ " static class Map<E, F extends java.util.Collection > implements Supplier<Function<E, F>> {" ,
544
544
" public Function<E, F> get() {" ,
545
545
" return null;" ,
546
546
" }" ,
547
547
" }" ,
548
548
"" ,
549
- " static class Collect<E extends List > implements Supplier<Collector<E , ?, List<E>>> {" ,
550
- " public Collector<E , ?, List<E>> get() {" ,
549
+ " static class Collect<E extends Result > implements Supplier<Collector<Set<E> , ?, List<E>>> {" ,
550
+ " public Collector<Set<E> , ?, List<E>> get() {" ,
551
551
" return null;" ,
552
552
" }" ,
553
553
" }" ,
554
554
"" ,
555
- " static class Result<E> {}" ,
555
+ " static class Result<E extends java.lang.CharSequence > {}" ,
556
556
"}" );
557
557
JavaFileObject javaFile = forSourceLines ("test.ValidArguments" , sourceLines );
558
558
assertAbout (javaSources ()).that (singletonList (javaFile ))
0 commit comments