diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/ArtifactExtensionMapping.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/ArtifactExtensionMapping.java index 699f91352..3c28cec2c 100644 --- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/ArtifactExtensionMapping.java +++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/ArtifactExtensionMapping.java @@ -93,15 +93,15 @@ public class ArtifactExtensionMapping public static String mapExtensionToType( String extension ) { - if ( extension.equals( "tar.gz" ) ) + if ( "tar.gz".equals( extension ) ) { return "distribution-tgz"; } - else if ( extension.equals( "tar.bz2" ) ) + else if ( "tar.bz2".equals( extension ) ) { return "distribution-bzip"; } - else if ( extension.equals( "zip" ) ) + else if ( "zip".equals( extension ) ) { return "distribution-zip"; }