Deprecate setWatcher on Disguise because no one uses it properly
This commit is contained in:
parent
f5090cc288
commit
7cedac0980
@ -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 " +
|
||||
|
Loading…
Reference in New Issue
Block a user