Log in
Skip to main content
Skip to sidebar
Dashboards
Projects
Issues
Help
Keyboard Shortcuts
About Jira
Jira Credits
Log In
Watched Subcomponents
JDK
JDK-8282662
Use List.of() factory method to reduce memory consumption
Log In
Resolved
Export
null
XML
Word
Printable
Details
Type:
Enhancement
Resolution:
Fixed
Priority:
P4
Fix Version/s:
19
Affects Version/s:
None
Component/s:
core-libs
Labels:
None
Subcomponent:
java.util
Resolved In Build:
b26
Description
List.of() along with Set.of() create unmodifiable List/Set but with smaller footprint comparing to Arrays.asList() / new HashSet() when called with vararg of size 0, 1, 2.
Attachments
Issue Links
links to
Commit
openjdk/jdk/168b226b
Review
openjdk/jdk/7729
Activity
People
Assignee:
Sergey Tsypanov
Reporter:
Sergey Tsypanov
Votes
:
0
Vote for this issue
Watchers:
4
Start watching this issue
Dates
Created:
2022-03-04 07:05
Updated:
2022-06-09 22:10
Resolved:
2022-06-01 06:33