From 712a60ffd24ab28130c225391195041ff8a40c89 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 9 Jan 2019 10:19:18 +1100 Subject: [PATCH] Remove improperly exposed getters from AsyncEvent --- api/src/main/java/net/md_5/bungee/api/event/AsyncEvent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();