Remove improperly exposed getters from AsyncEvent

This commit is contained in:
md_5 2019-01-09 10:19:18 +11:00
parent 8b5a89bf12
commit 712a60ffd2

View File

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