From cbdcd1ec19a3f3fcc1447ab70ccdae224ee195db Mon Sep 17 00:00:00 2001 From: Krakenied Date: Thu, 30 May 2024 08:25:46 +0200 Subject: Fix codacy issue --- .../leonardobishop/quests/bukkit/tasktype/BukkitTaskTypeManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bukkit/src') 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)) { -- cgit v1.2.3-70-g09d2