Modify ↓

Opened 25 hours ago

Last modified 25 hours ago

#25041 new task

[patch] Fix Sonar issues in MainApplication

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

Description

I moved the shutdown of the single-thread ExecutorService into a finally block to prevent an unused thread from remaining active. Additionally, I ensured that execution terminates prematurely if an InterruptedException occurs. Finally, I added curly braces back to the control structures and declared fields and variables as final.
see: https://josm.openstreetmap.de/sonar/project/issues?s=TYPE_SEVERITY&severities=BLOCKER&issueStatuses=CONFIRMED%2COPEN&types=BUG&id=josm&open=2568b3f9-2040-40d3-98b4-6a5fcc7a37f9

Attachments (1)

#25041-Fix-Sonar-issues-in-MainApplication.patch​ (15.4 KB ) - added by DanProgs <Abenteurer.2901@…> 25 hours ago.

Download all attachments as: .zip

Change History (2)

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

comment:1 by stoecker, 25 hours ago

Milestone: → 26.12

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.