Commit f248c71
committed
fix: Adjust timeout and exception handling for URLDownload compatibility
- Import java.time.Duration for timeout settings
- Use Duration.ofMillis() for setConnectTimeout (URLDownload only supports connect timeout)
- Remove setReadTimeout (not supported by URLDownload class)
- Change catch block to ParseException | FetcherException (IOException not thrown)
- Code now compiles successfully1 parent 64b8d07 commit f248c71
File tree
1 file changed
+4
-5
lines changed- jablib/src/main/java/org/jabref/logic/importer/fetcher
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 102 | + | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
291 | | - | |
| 290 | + | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
| |||
0 commit comments