mirror of https://github.com/apache/maven.git
[MNG-7298] - Avoid redundant conditions.
This commit is contained in:
parent
274388fc0f
commit
4c21e11b01
|
@ -160,7 +160,7 @@ public class VersionRange
|
|||
|
||||
process = process.substring( index + 1 ).trim();
|
||||
|
||||
if ( process.length() > 0 && process.startsWith( "," ) )
|
||||
if ( process.startsWith( "," ) )
|
||||
{
|
||||
process = process.substring( 1 ).trim();
|
||||
}
|
||||
|
|
|
@ -214,7 +214,7 @@ public class DefaultLegacyArtifactCollector
|
|||
Map<String, Artifact> managedVersions )
|
||||
{
|
||||
ManagedVersionMap versionMap;
|
||||
if ( ( managedVersions != null ) && ( managedVersions instanceof ManagedVersionMap ) )
|
||||
if ( managedVersions instanceof ManagedVersionMap )
|
||||
{
|
||||
versionMap = (ManagedVersionMap) managedVersions;
|
||||
}
|
||||
|
|
|
@ -175,7 +175,7 @@ public class MetadataGraphVertex
|
|||
@Override
|
||||
public boolean equals( Object vo )
|
||||
{
|
||||
if ( vo == null || !( vo instanceof MetadataGraphVertex ) )
|
||||
if ( !( vo instanceof MetadataGraphVertex ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue