X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fnet%2Fpterodactylus%2Ffcp%2Fhighlevel%2FHighLevelCallback.java;h=b43a8ccd9709cfb482b29a24cdadf59a4bf65517;hb=33e57ae1719a87ba663e1f640db264c8c698a8c4;hp=304d24e263105a375f0aa6ff96ac0d44134f0ec1;hpb=7020af8093e423c6a990a6db20da3514ac56236a;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelCallback.java b/src/net/pterodactylus/fcp/highlevel/HighLevelCallback.java index 304d24e..b43a8cc 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelCallback.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelCallback.java @@ -35,13 +35,19 @@ import java.util.List; public class HighLevelCallback { /** Object used for synchronization. */ - public final Object syncObject = new Object(); + private final Object syncObject = new Object(); /** The list of callback listeners. */ - public final List> highLevelCallbackListeners = Collections.synchronizedList(new ArrayList>()); + private final List> highLevelCallbackListeners = Collections.synchronizedList(new ArrayList>()); /** The result of the operation. */ - public R result = null; + private R result = null; + + /** + * Package-private construtor. + */ + HighLevelCallback() { + } /** * Adds a callback listener to this callback. The callback listener will be