Commit de200b2
authored
Fix MavenDependency#findNewerVersion ExactVersion edge cases (#7305)
Closes #5062
- Add early exit for ExactVersion before downloading metadata when the
target version is not an upgrade from the current version, avoiding
unnecessary HTTP traffic.
- Fix the corrupt-metadata fallback to verify the exact version is
actually an upgrade before returning it, instead of returning it
unconditionally.1 parent 365840d commit de200b2
1 file changed
Lines changed: 13 additions & 1 deletion
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
| |||
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
108 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
109 | 121 | | |
110 | 122 | | |
111 | 123 | | |
| |||
0 commit comments