diff options
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav')
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 ) |