Commit 4beeb8a
Normalize version numbers in
* Normalize version numbers in `FindJavaVersion`
Replace raw version strings with normalized major versions in the
`JavaVersionTable` data table. This addresses issue #968 where users
expect normalized values like "8" instead of "1.8".
- Use `getMajorVersion()` and `getMajorReleaseVersion()` instead of
raw `getSourceCompatibility()` and `getTargetCompatibility()` fields
- Update column descriptions to clarify they contain major versions
Closes #968
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Ensure both are updated in `UpgradeToJava17Test`
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>FindJavaVersion (#969)1 parent 1180190 commit 4beeb8a
File tree
3 files changed
+15
-7
lines changed- src
- main/java/org/openrewrite/java/migrate
- search
- table
- test/java/org/openrewrite/java/migrate
3 files changed
+15
-7
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| |||
0 commit comments