Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6081

Log refactoring - Method Invocation Replaced By Variable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.9
    • 3.5.0-alpha-1, 3.5.0
    • Core
    • None

    Description

      Method Invocation Replaced By Variable
      In file: apache-maven-3.3.9/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DebugResolutionListener.java

      from line 70:

      String keptVersion = kept.getVersion();
      
      if ( omittedVersion != null ? !omittedVersion.equals( keptVersion ) : keptVersion != null )
      {
          logger.debug( indent + omitted + " (removed - nearer found: " + kept.getVersion() + ")" );
      }
      

      the "kept.getVersion()" can be replaced with "keptVersion" for the sake of simplicity and readability.

      Attachments

        1. MNG-6081.patch
          0.8 kB
          Nemo Chen

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              chenfsd Nemo Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: