Commit 4f6719f
authored
Fix add block to handle if expressions over multiple lines (eclipse-jdt#2065)
- add logic to ControlStatementsFix to look at the last line
of the expression instead of the if statement start
- add new test to CleanUpTest
- fixes eclipse-jdt#20601 parent bf34c50 commit 4f6719f
File tree
2 files changed
+37
-2
lines changed- 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
2 files changed
+37
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20651 | 20651 | | |
20652 | 20652 | | |
20653 | 20653 | | |
| 20654 | + | |
| 20655 | + | |
| 20656 | + | |
| 20657 | + | |
| 20658 | + | |
| 20659 | + | |
| 20660 | + | |
| 20661 | + | |
| 20662 | + | |
| 20663 | + | |
| 20664 | + | |
| 20665 | + | |
| 20666 | + | |
| 20667 | + | |
| 20668 | + | |
| 20669 | + | |
| 20670 | + | |
| 20671 | + | |
| 20672 | + | |
| 20673 | + | |
| 20674 | + | |
| 20675 | + | |
| 20676 | + | |
| 20677 | + | |
| 20678 | + | |
| 20679 | + | |
| 20680 | + | |
| 20681 | + | |
| 20682 | + | |
| 20683 | + | |
| 20684 | + | |
| 20685 | + | |
| 20686 | + | |
| 20687 | + | |
| 20688 | + | |
20654 | 20689 | | |
20655 | 20690 | | |
20656 | 20691 | | |
| |||
0 commit comments