Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3.9
-
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
Attachments
Issue Links
- mentioned in
-
Page Loading...