Commit f4ed0c2
authored
Fix unused suppressed warnings quick fix counts (#1720)
- add new logic for UnusedSuppressWarningsCleanUp.computeNumberOfFixes()
that screens the problems for the current literal or returns 1 if
removing all unused tokens
- fix SuppressWarningsBaseSubProcessor to remove the call to remove
all instances of current literal since the computeNumberOfFixes()
call in the clean up will offer an option to do this automatically
- fix the test in QuickFixTest1d8
- fixes #17191 parent 84472de commit f4ed0c2
File tree
3 files changed
+25
-34
lines changed- org.eclipse.jdt.core.manipulation
- common/org/eclipse/jdt/internal/ui/fix
- proposals/org/eclipse/jdt/internal/ui/text/correction
- org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix
3 files changed
+25
-34
lines changedLines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
131 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
132 | 154 | | |
133 | 155 | | |
| 156 | + | |
134 | 157 | | |
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 248 | | |
258 | 249 | | |
259 | 250 | | |
260 | 251 | | |
261 | 252 | | |
262 | | - | |
263 | 253 | | |
264 | 254 | | |
265 | 255 | | |
| |||
Lines changed: 1 addition & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3050 | 3050 | | |
3051 | 3051 | | |
3052 | 3052 | | |
3053 | | - | |
3054 | 3053 | | |
3055 | 3054 | | |
3056 | 3055 | | |
| |||
3060 | 3059 | | |
3061 | 3060 | | |
3062 | 3061 | | |
3063 | | - | |
3064 | | - | |
3065 | | - | |
3066 | | - | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
3072 | | - | |
3073 | | - | |
3074 | | - | |
3075 | | - | |
3076 | | - | |
3077 | | - | |
3078 | | - | |
3079 | | - | |
3080 | | - | |
3081 | | - | |
3082 | | - | |
3083 | | - | |
3084 | | - | |
| 3062 | + | |
3085 | 3063 | | |
3086 | 3064 | | |
0 commit comments