Modify ↓

Opened 3 hours ago

#24976 new task

[patch] Fix Sonar issues in DownloadFileTask

Reported by: DanProgs <Abenteurer.2901@…> Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

The URL constructor in DownloadFileTask, previously marked as deprecated, has been updated, and the exception handling has been adjusted. Furthermore, an integer overflow (in the count variable) has been eliminated, and a safeguard against division by zero has been added. Finally, curly braces have been restored to control structures, and fields and variables have been declared as final.

see:https://josm.openstreetmap.de/sonar/project/issues?files=src%2Forg%2Fopenstreetmap%2Fjosm%2Fgui%2Fio%2FDownloadFileTask.java&issueStatuses=CONFIRMED%2COPEN&open=8a1eb504-ebdd-4c02-9ea6-7ee6f7d5a6c9&id=josm

Attachments (1)

patch-Fix-Sonar-issues-in-DownloadFileTask.patch​ (5.2 KB ) - added by DanProgs <Abenteurer.2901@…> 3 hours ago.

Download all attachments as: .zip

Change History (1)

by DanProgs <Abenteurer.2901@…>, 3 hours ago

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to DanProgs <Abenteurer.2901@…>.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.