Permalink
Browse files

NXCM-5194: Renamed badly named method

  • Loading branch information...
1 parent 6744f66 commit f620637dc611a234552ebad0f6ab17aae4c14491 @cstamas cstamas committed Apr 9, 2013
@@ -12,8 +12,6 @@
*/
package org.sonatype.nexus.proxy.maven.metadata.operations;
-import static org.sonatype.nexus.proxy.maven.metadata.operations.MetadataUtil.isPluginPrefixAndNameEquals;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -23,6 +21,8 @@
import org.apache.maven.artifact.repository.metadata.Metadata;
import org.apache.maven.artifact.repository.metadata.Plugin;
+import static org.sonatype.nexus.proxy.maven.metadata.operations.MetadataUtil.isPluginPrefixAndArtifactIdEquals;
+
/**
* adds new plugin to metadata
*
@@ -88,7 +88,7 @@ public boolean perform( Metadata metadata )
{
if ( p.getArtifactId().equals( plugin.getArtifactId() ) )
{
- if ( isPluginPrefixAndNameEquals( p, plugin ) )
+ if ( isPluginPrefixAndArtifactIdEquals( p, plugin ) )
{
p.setName( plugin.getName() );
// plugin already enlisted
@@ -56,7 +56,7 @@ public static boolean isPluginEquals( Plugin p1, Plugin p2 )
return false;
}
- public static boolean isPluginPrefixAndNameEquals( Plugin p1, Plugin p2 )
+ public static boolean isPluginPrefixAndArtifactIdEquals( Plugin p1, Plugin p2 )
{
if ( StringUtils.equals( p1.getArtifactId(), p2.getArtifactId() )
&& StringUtils.equals( p1.getPrefix(), p2.getPrefix() ) )

0 comments on commit f620637

Please sign in to comment.