diff --git a/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java b/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java index 63f34307..cf85ca06 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java @@ -5,8 +5,10 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; +import lombok.AccessLevel; import lombok.Data; import lombok.EqualsAndHashCode; +import lombok.Getter; import lombok.ToString; import net.md_5.bungee.api.Callback; import net.md_5.bungee.api.plugin.Event; @@ -18,13 +20,14 @@ import net.md_5.bungee.api.plugin.Plugin; * @param Type of this event */ @Data +@Getter(AccessLevel.NONE) @ToString(callSuper = true) @EqualsAndHashCode(callSuper = true) public class AsyncEvent extends Event { private final Callback done; - private final Map intents = new ConcurrentHashMap(); + private final Map intents = new ConcurrentHashMap<>(); private final AtomicBoolean fired = new AtomicBoolean(); private final AtomicInteger latch = new AtomicInteger();