Log in
Skip to main content
Skip to sidebar
Dashboards
Projects
Issues
Help
Jira Core help
Keyboard Shortcuts
About Jira
Jira Credits
Log In
Watched Subcomponents
JDK
JDK-8274894
Use Optional.empty() instead of ofNullable(null) in HttpResponse.BodySubscribers.discarding
Log In
Export
XML
Word
Printable
Details
Type:
Enhancement
Status:
Resolved
Priority:
P5
Resolution:
Fixed
Affects Version/s:
None
Fix Version/s:
18
Component/s:
core-libs
Labels:
noreg-cleanup
Subcomponent:
java.net
Resolved In Build:
b19
Description
Usage of Optional.ofNullable is unnecessary when value is known. If it's null value Optional.empty() should be preferred, as it doesn't perform redundant null check.
Attachments
Issue Links
links to
Commit
openjdk/jdk/d04d4ee2
Review
openjdk/jdk/5159
Activity
People
Assignee:
Andrey Turbanov
Reporter:
Andrey Turbanov
Votes:
0
Vote for this issue
Watchers:
4
Start watching this issue
Dates
Created:
2021-10-07 03:20
Updated:
2021-10-18 12:55
Resolved:
2021-10-12 04:15