Commit 317bcf6
OSInfo: re-interrupt thread in 3 catch clauses that swallow InterruptedException (#172)
Fixes SonarQube java:S2142 reported on isAndroidTermux, getHardwareName,
and resolveArmArchType. Each affected catch now calls
Thread.currentThread().interrupt() to restore the interrupt flag instead
of silently swallowing it. Documented as deviation #5 from the vendored
xerial/sqlite-jdbc source.
Co-authored-by: Claude <noreply@anthropic.com>1 parent e545435 commit 317bcf6
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
188 | 197 | | |
189 | 198 | | |
190 | 199 | | |
| |||
229 | 238 | | |
230 | 239 | | |
231 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
232 | 244 | | |
233 | 245 | | |
234 | 246 | | |
| |||
301 | 313 | | |
302 | 314 | | |
303 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
304 | 319 | | |
305 | 320 | | |
306 | 321 | | |
| |||
0 commit comments