Commit 4f86913
committed
Fix flaky
The test's `2.1.\d+` regex matched `<johnzon.version>2.1.0</johnzon.version>`
before reaching the jakarta.json-api dependency, so when jakarta.json-api
was released as 2.1.3 the expected/actual diverged. Anchor the regex to
the jakarta.json-api artifact.
Also consolidate the `isReassigned` visitor to use `.reduce(...)` directly,
matching the existing idiom in NullCheck and other recipes.JohnzonJavaxtoJakartaTest and use .reduce in var helper1 parent b58ac91 commit 4f86913
2 files changed
Lines changed: 12 additions & 11 deletions
File tree
- src
- main/java/org/openrewrite/java/migrate/lang/var
- test/java/org/openrewrite/java/migrate/jakarta
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
| 257 | + | |
259 | 258 | | |
260 | 259 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
269 | | - | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
0 commit comments