Skip to content
Browse files

NXCM-5194: Applied comments

From Alin to simplify the method.
  • Loading branch information...
1 parent f620637 commit 12631d4afc0075f26f13b7d7150bdecbe2743bbc @cstamas cstamas committed
View
18 ...s-core/src/main/java/org/sonatype/nexus/proxy/maven/metadata/operations/MetadataUtil.java
@@ -47,24 +47,14 @@ public static boolean isPluginEquals( Plugin p1, Plugin p2 )
p2.setName( "" );
}
- if ( StringUtils.equals( p1.getArtifactId(), p2.getArtifactId() )
- && StringUtils.equals( p1.getPrefix(), p2.getPrefix() ) && StringUtils.equals( p1.getName(), p2.getName() ) )
- {
- return true;
- }
-
- return false;
+ return StringUtils.equals( p1.getArtifactId(), p2.getArtifactId() )
+ && StringUtils.equals( p1.getPrefix(), p2.getPrefix() ) && StringUtils.equals( p1.getName(), p2.getName() );
}
public static boolean isPluginPrefixAndArtifactIdEquals( Plugin p1, Plugin p2 )
{
- if ( StringUtils.equals( p1.getArtifactId(), p2.getArtifactId() )
- && StringUtils.equals( p1.getPrefix(), p2.getPrefix() ) )
- {
- return true;
- }
-
- return false;
+ return StringUtils.equals( p1.getArtifactId(), p2.getArtifactId() )
+ && StringUtils.equals( p1.getPrefix(), p2.getPrefix() );
}
}

0 comments on commit 12631d4

Please sign in to comment.
Something went wrong with that request. Please try again.