Modify

Opened 4 years ago

Last modified 4 years 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:

Description

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 4 years ago.

Download all attachments as: .zip

Change History (2)

by simon04, 4 years ago

Attachment: 19174.patch added

comment:1 by simon04, 4 years ago

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
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 simon04.
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.