aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-04-10 23:11:38 +1000
committerOlivier Lamy <olamy@apache.org>2014-04-10 23:11:38 +1000
commitd6c28781b0b0f9de8142c8b96b810ab6c415cb26 (patch)
tree99e10f3e0058db84f706d5dc5998a64e75357e98 /archiva-modules/archiva-web/archiva-webdav
parentb244153061054a1efd45e2d07d69b751070660f2 (diff)
downloadarchiva-d6c28781b0b0f9de8142c8b96b810ab6c415cb26.tar.gz
archiva-d6c28781b0b0f9de8142c8b96b810ab6c415cb26.zip
more diamond
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java2
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java2
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/MimeTypes.java2
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/TemporaryGroupIndexSessionCleaner.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
index 93c403fad..070d93687 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
@@ -1291,7 +1291,7 @@ public class ArchivaDavResourceFactory
TemporaryGroupIndexSessionCleaner.TEMPORARY_INDEX_SESSION_KEY );
if ( temporaryGroupIndexMap == null )
{
- temporaryGroupIndexMap = new HashMap<String, TemporaryGroupIndex>();
+ temporaryGroupIndexMap = new HashMap<>();
}
TemporaryGroupIndex tmp = temporaryGroupIndexMap.get( repositoryGroupConfiguration.getId() );
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java
index ee9f750eb..14fd0fe3d 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/IndexWriter.java
@@ -151,7 +151,7 @@ public class IndexWriter
else
{
// virtual repository - filter unique directories
- Map<String, List<String>> uniqueChildFiles = new HashMap<String, List<String>>();
+ Map<String, List<String>> uniqueChildFiles = new HashMap<>();
List<String> sortedList = new ArrayList<>();
for ( File resource : localResources )
{
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/MimeTypes.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/MimeTypes.java
index f691bae55..f437efb03 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/MimeTypes.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/MimeTypes.java
@@ -50,7 +50,7 @@ public class MimeTypes
private String resource = "org/apache/archiva/webdav/util/mime.types";
- private Map<String, String> mimeMap = new HashMap<String, String>();
+ private Map<String, String> mimeMap = new HashMap<>();
private Logger log = LoggerFactory.getLogger( MimeTypes.class );
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/TemporaryGroupIndexSessionCleaner.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/TemporaryGroupIndexSessionCleaner.java
index e0ffaad68..450044876 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/TemporaryGroupIndexSessionCleaner.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/util/TemporaryGroupIndexSessionCleaner.java
@@ -53,7 +53,7 @@ public class TemporaryGroupIndexSessionCleaner
if ( httpSessionEvent.getSession().getAttribute( TEMPORARY_INDEX_SESSION_KEY ) == null )
{
httpSessionEvent.getSession().setAttribute( TEMPORARY_INDEX_SESSION_KEY,
- new HashMap<String, TemporaryGroupIndex>() );
+ new HashMap<>() );
}
if ( indexMerger == null )