From d6c28781b0b0f9de8142c8b96b810ab6c415cb26 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 10 Apr 2014 23:11:38 +1000 Subject: more diamond --- .../archiva/plugins/npanday/NPandayArtifactMappingProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archiva-modules/plugins/npanday-support') diff --git a/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java b/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java index f8a60905a..76b79e282 100644 --- a/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java +++ b/archiva-modules/plugins/npanday-support/src/main/java/org/apache/archiva/plugins/npanday/NPandayArtifactMappingProvider.java @@ -37,7 +37,7 @@ public class NPandayArtifactMappingProvider public NPandayArtifactMappingProvider() { - extensionToTypeMap = new HashMap(); + extensionToTypeMap = new HashMap<>(); // TODO: this could be one of many - we need to look up the artifact metadata from the POM instead // should do this anyway so that plugins don't compete for providing an extension @@ -46,7 +46,7 @@ public class NPandayArtifactMappingProvider extensionToTypeMap.put( "netmodule", "dotnet-module" ); extensionToTypeMap.put( "exe", "dotnet-executable" ); - typeToExtensionMap = new HashMap(); + typeToExtensionMap = new HashMap<>(); typeToExtensionMap.put( "dotnet-library", "dll" ); typeToExtensionMap.put( "dotnet-library-config", "dll.config" ); typeToExtensionMap.put( "dotnet-executable", "exe" ); -- cgit v1.2.3