Bug 543402 - Use Objects.equals(...) and Objects.hashCode(...)
Summary: Use Objects.equals(...) and Objects.hashCode(...)
Status: NEW
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 4.7.0 Oxygen   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted, performance
Depends on:
Blocks:
 
Reported: 2019-01-14 02:54 EST by Mickael Istria CLA
Modified: 2019-03-08 06:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2019-01-14 02:54:02 EST
Most p2 code defines equals and hashCode with a lot of boilerplate code regarding mull-check or boolean conversion.
This code would rather rely on the JVM utility methods like Objects.hashCode() and Objects.equals() which improve maintenance, reduce class size (and thus memory consumption) and might even perform better.