From 7cedac098072ff551aa7e978fc7fccda2adcb385 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 22 Mar 2020 19:20:48 +1300 Subject: [PATCH] Deprecate setWatcher on Disguise because no one uses it properly --- .../me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 0e6a3470..1db644dc 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -443,6 +443,10 @@ public abstract class Disguise { return watcher; } + /** + * Deprecated as this isn't used as it should be + */ + @Deprecated public Disguise setWatcher(FlagWatcher newWatcher) { if (!getType().getWatcherClass().isInstance(newWatcher)) { throw new IllegalArgumentException(newWatcher.getClass().getSimpleName() + " is not a instance of " +