JDK-7156459 : Remove unnecessary get() from Currency.getInstance()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-03-23
  • Updated: 2015-02-02
  • Resolved: 2012-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u80Fixed 8 b34Fixed
Related Reports
Relates :  
Description
The fix to 7145454 (http://hg.openjdk.java.net/jdk8/tl/jdk/rev/4a5817f9e249) included unnecessary get() at the end.

Comments
EVALUATION Eliminate get() by saving the newly created Currency instance for putIfAbsent() and return it if needed.
23-03-2012