Replace Hashtable with HashMap, since Hashtable are deprecated

master
jvoisin 5 years ago committed by GitHub
parent a997fd4873
commit 3b8993e860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      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<Integer, com.github.biconou.AudioPlayer.api.Player> activeAudioPlayers = new Hashtable<>();
private Map<String, List<com.github.biconou.AudioPlayer.api.Player>> activeAudioPlayersPerMixer = new Hashtable<>();
private Map<Integer, com.github.biconou.AudioPlayer.api.Player> activeAudioPlayers = new HashMap<>();
private Map<String, List<com.github.biconou.AudioPlayer.api.Player>> activeAudioPlayersPerMixer = new HashMap<>();
private final static String DEFAULT_MIXER_ENTRY_KEY = "_default";

Loading…
Cancel
Save