I ran in to a strange issue with Vert.x futures the other day that doesn't break the code but bothers me still.
Future without parameter results in the following warning:
Future is a raw type. References to generic type Future should be parameterized
Add the parameter, problem solved:
Future<YourClassName> future = ...
When dealing with a list of futures, you can also parameterize it just fine:
List<Future<YourClassName>> future = ...
But CompositeFuture.all()
can't seem to deal with a parameterized list and forces you to remove the parameter.
Is there any way to make parameterized list of futures work with CompositeFuture
or do we just have to ignore that warning? It doesn't break anything but would still be nice to find a solution to get rid of that warning.