inference variable T has incompatible bounds collectors.tolist in Function.identity

55 Views Asked by At
@Override
Public List<TranslationKey> getKeys(){
    return Stream.of(Arrays.stream(Message.values)), Arrays.stream(TranslationKeys.values()))
        .flatMap(Function.identity())
        .collect(Collectors.toList());
}

getting error as inference variable T has incompatible bounds what could be the issue, guide us. thanks

0

There are 0 best solutions below