Closed HannesWell closed 6 days ago
Given one has the following code
Stream<IExecutionEnvironment> ees = Stream.empty(); ees.map(ee -> ee.getId());
if one applies the quick-fix clean up (from pressing Ctrl+1) Convert to method reference to the lambda an unnecessary cast is added:
Ctrl+1
Convert to method reference
ees.map((Function<? super IExecutionEnvironment, ? extends String>) IExecutionEnvironment::getId);
I would have expected the resulting code to be:
ees.map(IExecutionEnvironment::getId);
I always have to edit it manually afterwards to be like that.
Given one has the following code
if one applies the quick-fix clean up (from pressing
Ctrl+1
)Convert to method reference
to the lambda an unnecessary cast is added:I would have expected the resulting code to be:
I always have to edit it manually afterwards to be like that.