diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-05-30 08:25:46 +0200 |
|---|---|---|
| committer | Leonardo Bishop <13875753+LMBishop@users.noreply.github.com> | 2024-06-03 18:48:22 +0100 |
| commit | cbdcd1ec19a3f3fcc1447ab70ccdae224ee195db (patch) | |
| tree | 9aeee8bcb4e18e12ccfba824d3e132f7375b6ef6 /bukkit/src/main/java/com/leonardobishop | |
| parent | e46b65f799c660e02efff0190ed0e43bda838d3a (diff) | |
Fix codacy issue
Diffstat (limited to 'bukkit/src/main/java/com/leonardobishop')
| -rw-r--r-- | bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java index 3b8eb7f8..d87caace 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java @@ -45,12 +45,12 @@ public final class BukkitTaskTypeManager extends TaskTypeManager { * * @param taskType the task type to register * @return true if the task type was successfully registered, false otherwise - * @throws RuntimeException if the task type is not an instance of {@link BukkitTaskType} + * @throws UnsupportedOperationException if the task type is not an instance of {@link BukkitTaskType} */ @Override public boolean registerTaskType(final @NotNull TaskType taskType) { if (!(taskType instanceof final BukkitTaskType bukkitTaskType)) { - throw new RuntimeException("BukkitTaskTypeManager implementation can only accept instances of BukkitTaskType!"); + throw new UnsupportedOperationException("BukkitTaskTypeManager implementation can only accept instances of BukkitTaskType!"); } if (super.registerTaskType(taskType)) { |
