Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-125

Use type conversions returning primitives

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.5.0, 1.6.0, 1.6.1
    • Resolver
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: