Skip to content

Minor Map tweaks in NoteBlockAPI #31

@JarvisCraft

Description

@JarvisCraft

Collections.synchronizedMap(new HashMap<UUID, ArrayList<SongPlayer>>());
Might be replaced with ConcurrentHashMap
if (plugin.playingSongs.get(player.getUniqueId()) == null) {
Might be replaced with Map#contains or result of Map#get may be cached not to be called twice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions