Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
Use the 'EnumMap' instead of 'HashMap'
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelkollus committed Mar 9, 2019
1 parent 5195217 commit 1291efb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import net.md_5.bungee.api.plugin.Cancellable;
import net.md_5.bungee.api.plugin.Event;

import java.util.HashMap;
import java.util.EnumMap;
import java.util.Map;

/**
Expand All @@ -21,7 +21,7 @@
public class PermissionsSendEvent extends Event implements Cancellable {

private ProxiedPlayer player;
private Map<Permission, Boolean> permissions = new HashMap<Permission, Boolean>();
private Map<Permission, Boolean> permissions = new EnumMap<>( Permission.class );
@Setter
private boolean cancelled;

Expand Down

0 comments on commit 1291efb

Please sign in to comment.