From 95bd8f270d35945831a07903aff87acf3a76589a Mon Sep 17 00:00:00 2001 From: LlmDl Date: Tue, 29 Oct 2024 16:46:49 -0500 Subject: [PATCH] Clean up javadoc issues. --- .../src/main/java/com/palmergames/bukkit/towny/Towny.java | 2 +- .../palmergames/bukkit/towny/db/TownyDatabaseHandler.java | 2 -- .../com/palmergames/bukkit/towny/object/Resident.java | 8 ++++---- .../palmergames/bukkit/towny/utils/AreaSelectionUtil.java | 1 - .../main/java/com/palmergames/bukkit/util/ChatTools.java | 1 - 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/Towny.java b/Towny/src/main/java/com/palmergames/bukkit/towny/Towny.java index a4074169afd..fe7ad64ac63 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/Towny.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/Towny.java @@ -708,7 +708,7 @@ public void setPlayerMode(Player player, String[] modes, boolean notify) { /** * Remove ALL current modes (and set the defaults) * - * @deprecated since 0.100.4.6, use {@link ResidentModeHandler#clearModes(Player))} instead. + * @deprecated since 0.100.4.6, use {@link ResidentModeHandler#clearModes(Player)} instead. * @param player Player, whose modes are to be reset (all removed). */ @Deprecated diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/db/TownyDatabaseHandler.java b/Towny/src/main/java/com/palmergames/bukkit/towny/db/TownyDatabaseHandler.java index 7a06fb66fa4..6898a9a0a44 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/db/TownyDatabaseHandler.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/db/TownyDatabaseHandler.java @@ -1132,8 +1132,6 @@ public void deleteFile(String fileName) { * * @param succumbingNation - Nation to be removed, towns put into prevailingNation. * @param prevailingNation - Nation which survives, absorbs other nation's towns. - * - * @author LlmDl */ public void mergeNation(Nation succumbingNation, Nation prevailingNation) { diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/object/Resident.java b/Towny/src/main/java/com/palmergames/bukkit/towny/object/Resident.java index b2fc7ffad4f..03e33387ce4 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/object/Resident.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/object/Resident.java @@ -44,6 +44,7 @@ import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.w3c.dom.UserDataHandler; import java.util.ArrayList; import java.util.Arrays; @@ -570,7 +571,7 @@ public boolean hasMode(String mode) { } /** - * @deprecated since 0.100.4.6. Use {@link ResidentModeHandler#toggleModes(Resident, String[], boolean)} instead. + * @deprecated since 0.100.4.6. Use {@link ResidentModeHandler#toggleModes(Resident, String[], boolean, boolean)} instead. * * @param newModes * @param notify @@ -581,9 +582,8 @@ public void toggleMode(String[] newModes, boolean notify) { } /** - * @deprecated since 0.100.4.6. Use {@link ResidentModeHandler#toggleModes(Resident, String[], boolean)} instead. - * - * @param newModes + * @deprecated since 0.100.4.6. Use {@link ResidentModeHandler#toggleModes(Resident, String[], boolean, boolean)} instead. + * @param modes * @param notify */ @Deprecated diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/utils/AreaSelectionUtil.java b/Towny/src/main/java/com/palmergames/bukkit/towny/utils/AreaSelectionUtil.java index 47eccb4decb..550e4c7661d 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/utils/AreaSelectionUtil.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/utils/AreaSelectionUtil.java @@ -435,7 +435,6 @@ public static boolean filterHomeBlock(Town town, List selection) { * @param group The plot group to filter against. * @param selection The selection of townblocks. * @return A List of {@link WorldCoord} that contains the coordinates of townblocks part of the specified group. - * @author Suneet Tipirneni (Siris) */ public static List filterPlotsByGroup(PlotGroup group, List selection) { diff --git a/Towny/src/main/java/com/palmergames/bukkit/util/ChatTools.java b/Towny/src/main/java/com/palmergames/bukkit/util/ChatTools.java index 09e4a95d98d..fa9a7d59cab 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/util/ChatTools.java +++ b/Towny/src/main/java/com/palmergames/bukkit/util/ChatTools.java @@ -155,7 +155,6 @@ public static String formatCommand(String requirement, String command, String su * @param list - Any list that is in an order of ranking. * @param page - Already formatted TownySettings.getListPageMsg(page,total) handler. * @return - Fully formatted output which should be sent to the player. - * @author - Articdive */ public static String[] formatList(String title, String subject, List list, String page) { List output = new ArrayList<>();