From 3b8993e8605b286c9f3f6da8c4fc742f54ed5212 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 13 Jul 2019 11:38:01 +0000 Subject: [PATCH] Replace Hashtable with HashMap, since Hashtable are deprecated --- .../org/airsonic/player/service/JukeboxJavaService.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/service/JukeboxJavaService.java b/airsonic-main/src/main/java/org/airsonic/player/service/JukeboxJavaService.java index aca789e6..b22194a4 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/service/JukeboxJavaService.java +++ b/airsonic-main/src/main/java/org/airsonic/player/service/JukeboxJavaService.java @@ -11,10 +11,7 @@ import org.springframework.stereotype.Service; import java.io.File; import java.io.IOException; -import java.util.ArrayList; -import java.util.Hashtable; -import java.util.List; -import java.util.Map; +import java.util.*; /** @@ -35,8 +32,8 @@ public class JukeboxJavaService { private TransferStatus status; - private Map activeAudioPlayers = new Hashtable<>(); - private Map> activeAudioPlayersPerMixer = new Hashtable<>(); + private Map activeAudioPlayers = new HashMap<>(); + private Map> activeAudioPlayersPerMixer = new HashMap<>(); private final static String DEFAULT_MIXER_ENTRY_KEY = "_default";