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

Use type conversions returning primitives

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0, 1.6.0, 1.6.1
    • Component/s: Resolver
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: