Deprecate setWatcher on Disguise because no one uses it properly

This commit is contained in:
libraryaddict 2020-03-22 19:20:48 +13:00
parent f5090cc288
commit 7cedac0980
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -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 " +