You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/06/23 08:12:00 UTC

[jira] [Commented] (MRESOLVER-125) Use type conversions returning primitives

    [ https://issues.apache.org/jira/browse/MRESOLVER-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17142712#comment-17142712 ] 

Hudson commented on MRESOLVER-125:
----------------------------------

Build succeeded in Jenkins: Maven TLP » maven-resolver » master #89

See https://builds.apache.org/job/maven-box/job/maven-resolver/job/master/89/

> Use type conversions returning primitives
> -----------------------------------------
>
>                 Key: MRESOLVER-125
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-125
>             Project: Maven Resolver
>          Issue Type: Improvement
>          Components: resolver
>            Reporter: Konrad Windszus
>            Assignee: Michael Osipov
>            Priority: Trivial
>             Fix For: 1.4.3
>
>
> 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)