Opened 5 weeks ago

Last modified 13 days ago

#19174 new enhancement

Use Objects.equals and Objects.hash throughout the codebase

Reported by: simon04 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: refactoring Cc:


The functions Objects.equals and Objects.hash permit concise implementations of equals and hashCode. This brings clarity, reduces code size.

Is there a better way (tool) to perform this refactoring than doing it manually one by one?

Attachments (1)

19174.patch (21.3 KB) - added by simon04 5 weeks ago.

Download all attachments as: .zip

Change History (2)

Changed 5 weeks ago by simon04

Attachment: 19174.patch added

comment:1 Changed 13 days ago by simon04

In 16488/josm:

fix #19281, see #19174 - Use Objects.hash where it is not used (patch by hiddewie, modified)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to simon04
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.