Modify ↓

#25033 new task

[patch] Fix Sonar issues in AutoCompletionItem

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

Description

In equals(), I replaced instanceof with getClass() and used java.util.Objects.equals() for better readability and null safety. Furthermore, I added curly braces back to control structures and declared fields and variables as final.
see: https://josm.openstreetmap.de/sonar/project/issues?s=TYPE_SEVERITY&issueStatuses=OPEN%2CCONFIRMED&id=josm&open=AXt19rWYyP4JTgY8IS2q

Attachments (1)

#25033-Fix-Sonar-issues-in-AutoCompletionItem.patch​ (1.4 KB ) - added by DanProgs <Abenteurer.2901@…> 41 minutes ago.

Download all attachments as: .zip

Change History (1)

by DanProgs <Abenteurer.2901@…>, 41 minutes 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.