Mam taki blad:
incompatible types: inference variable R has incompatible bounds
[ERROR] equality constraints: java.util.Set<T>
[ERROR] lower bounds: java.util.List<org.openapitools.model.Car>,java.lang.Object
Wykonuje taki kod:
Mapuje Set<Car> na Set<Car>
Obiekty A i B sa enumami.
editDto.getCars().stream()
.map(Car -> com.domain.Car.findByCar((Car.getValue())))
.collect(Collectors.toSet()));
i mam taki blad jak powyzej