Skip to content

Commit

Permalink
added success return to unregister methods
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Apr 23, 2024
1 parent 6a05dfe commit 734e6b2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ public interface FlagRegistry {
* Unregisters a flag identified by the given NamespacedKey.
*
* @param flag the NamespacedKey of the flag to unregister
* @throws IllegalStateException if no flag with the same key was registered
* @return true if the flag was unregistered, false otherwise
*/
void unregister(@NotNull NamespacedKey flag) throws IllegalStateException;
boolean unregister(@NotNull NamespacedKey flag);

/**
* Unregisters all flags associated with the specified plugin.
*
* @param plugin the plugin for which to unregister flags
* @return true if any flag was unregistered, false otherwise
*/
void unregisterAll(@NotNull Plugin plugin);
boolean unregisterAll(@NotNull Plugin plugin);
}

0 comments on commit 734e6b2

Please sign in to comment.