[
https://issues.apache.org/jira/browse/MRESOLVER-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated MRESOLVER-125:
--------------------------------------
Description: In
https://github.com/apache/maven-resolver/blob/master/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
type conversion is supported from String to int, long, float and boolean. Only
the latter though uses {{parse....(String)}} as method. All the other ones use
{{valueOf(String)}}. With {{valueOf}} unnecessary boxing and autoboxing
happens, therefore in all cases the {{parse...}} methods should be used. (was:
In
https://github.com/apache/maven-resolver/blob/master/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
type conversion is supported from String to int, long, float and boolean. Only
the latter though uses `parse....` as method. All the other ones use `valueOf`.
With `valueOf` unnecessary boxing and autoboxing happens, therefore in all
cases the `parse` methods should be used.)
> Improve type conversion of property types
> -----------------------------------------
>
> Key: MRESOLVER-125
> URL: https://issues.apache.org/jira/browse/MRESOLVER-125
> Project: Maven Resolver
> Issue Type: Improvement
> Components: resolver
> Reporter: Konrad Windszus
> Priority: Major
>
> In
> https://github.com/apache/maven-resolver/blob/master/maven-resolver-util/src/main/java/org/eclipse/aether/util/ConfigUtils.java
> type conversion is supported from String to int, long, float and boolean.
> Only the latter though uses {{parse....(String)}} as method. All the other
> ones use {{valueOf(String)}}. With {{valueOf}} unnecessary boxing and
> autoboxing happens, therefore in all cases the {{parse...}} methods should be
> used.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)