eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
35 stars 86 forks source link

Bug 546311 - [code mining] Parameter name annotations not shown when parameter value contains it #1437

Closed jjohnstn closed 2 months ago

jjohnstn commented 2 months ago

Code mining parameters are skipped when the passed parameter name is a substring of the passed parameter. For example,

public void foo(int a, int b, int c) {
}

public void foo2(int abc) {
   foo(abc, abc, abc); <== this line will show no parameter names because a, b, and c can be found in all the parameter names
}

The parameter name should only be dropped if it is an exact/lower-case match. An option can be added to filter out partial name matches.