ea-async icon indicating copy to clipboard operation
ea-async copied to clipboard

Method references `Async::await` are not taken away

Open azurvii opened this issue 5 years ago • 1 comments

The instrumentation tool takes away all Async.await occurrences, but does not take away Async::await. I think this is a bug?

E.g.

final List<CompletableFuture<Void>> futures = new ArrayList<>();
futures.add(CompletableFuture.completedFuture(null));
futures.stream().map(Async::await).collect(Collectors.toList());

The Async::await stays after instrumentation.

azurvii avatar Nov 20 '19 13:11 azurvii

Yes, this is likely a bug. A PR would be welcome, unfortunately I am unlikely to get time to fix in the near future.

JoeHegarty avatar Nov 20 '19 18:11 JoeHegarty