eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Content assist - Java proposal : Print types in lambdas

Open
#987 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

Hi guys,

When using lambdas, in a stream for example, the content assist - Java proposal propose `([Type] t) -> :` but when selected it prints only `t ->`.
Could it be possible to also print the type (for example `(String t) ->`, with an another proposal ?

One reason could be when using lambdas on maps, it's not always easy to read it (especially when we use only one letter for the key and the value).
Another reason could be a Sonar rule [https://rules.sonarsource.com/java/RSPEC-2211](https://rules.sonarsource.com/java/RSPEC-2211) activated in some projects..

Thanks.
Florent

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.