Commit 5f271d3
authored
Fix add final for fields cleanup for generic class and lambda (#2493)
- fix VariableDeclarationFixCore.fieldCanBeFinal() method to
add call to IVariableBinding.getVariableDeclaration() in
lambda visitor because reference to the field in lambda will
be ParameterizedFieldBinding and will not be equal to original
generic field binding
- add new test to CleanUpTest
- fixes #24921 parent c49c85f commit 5f271d3
2 files changed
Lines changed: 47 additions & 1 deletion
File tree
- org.eclipse.jdt.core.manipulation/core extension/org/eclipse/jdt/internal/corext/fix
- org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28046 | 28046 | | |
28047 | 28047 | | |
28048 | 28048 | | |
| 28049 | + | |
| 28050 | + | |
| 28051 | + | |
| 28052 | + | |
| 28053 | + | |
| 28054 | + | |
| 28055 | + | |
| 28056 | + | |
| 28057 | + | |
| 28058 | + | |
| 28059 | + | |
| 28060 | + | |
| 28061 | + | |
| 28062 | + | |
| 28063 | + | |
| 28064 | + | |
| 28065 | + | |
| 28066 | + | |
| 28067 | + | |
| 28068 | + | |
| 28069 | + | |
| 28070 | + | |
| 28071 | + | |
| 28072 | + | |
| 28073 | + | |
| 28074 | + | |
| 28075 | + | |
| 28076 | + | |
| 28077 | + | |
| 28078 | + | |
| 28079 | + | |
| 28080 | + | |
| 28081 | + | |
| 28082 | + | |
| 28083 | + | |
| 28084 | + | |
| 28085 | + | |
| 28086 | + | |
| 28087 | + | |
| 28088 | + | |
| 28089 | + | |
| 28090 | + | |
| 28091 | + | |
| 28092 | + | |
| 28093 | + | |
| 28094 | + | |
28049 | 28095 | | |
28050 | 28096 | | |
28051 | 28097 | | |
| |||
0 commit comments