Deprecate setWatcher on Disguise because no one uses it properly
This commit is contained in:
		| @@ -443,6 +443,10 @@ public abstract class Disguise { | |||||||
|         return watcher; |         return watcher; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     /** | ||||||
|  |      * Deprecated as this isn't used as it should be | ||||||
|  |      */ | ||||||
|  |     @Deprecated | ||||||
|     public Disguise setWatcher(FlagWatcher newWatcher) { |     public Disguise setWatcher(FlagWatcher newWatcher) { | ||||||
|         if (!getType().getWatcherClass().isInstance(newWatcher)) { |         if (!getType().getWatcherClass().isInstance(newWatcher)) { | ||||||
|             throw new IllegalArgumentException(newWatcher.getClass().getSimpleName() + " is not a instance of " + |             throw new IllegalArgumentException(newWatcher.getClass().getSimpleName() + " is not a instance of " + | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user