[
https://issues.apache.org/jira/browse/FLINK-4665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephan Ewen resolved FLINK-4665.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Fixed in 37c9512fadb2b2ad6d3167b97d25fd00a2fa7620
Thank you for the contribution!
> Remove boxing/unboxing to parse a primitive
> -------------------------------------------
>
> Key: FLINK-4665
> URL: https://issues.apache.org/jira/browse/FLINK-4665
> Project: Flink
> Issue Type: Bug
> Components: Java API
> Reporter: Alexander Pivovarov
> Priority: Trivial
> Fix For: 1.2.0
>
>
> I found the following issues with boxing/unboxing and Integer
> 1. Current code doing boxing/unboxing to parse a primitive - It is more
> efficient to just call the static parseXXX method.
> 2. boxing/unboxing to do type cast
> 3. new Integer instead of valueOf - Using new Integer(int) is guaranteed to
> always result in a new object whereas Integer.valueOf(int) allows caching of
> values to be done by the compiler.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)