From f0a5b43f02c0eb48601150a934c4a1bcf4a665ea Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 22 Oct 2022 11:45:01 +0300 Subject: [PATCH] Fix Javadoc errors --- .../plan/component/ComponentService.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Plan/api/src/main/java/com/djrapitops/plan/component/ComponentService.java b/Plan/api/src/main/java/com/djrapitops/plan/component/ComponentService.java index da6a408ca..cbf3c765d 100644 --- a/Plan/api/src/main/java/com/djrapitops/plan/component/ComponentService.java +++ b/Plan/api/src/main/java/com/djrapitops/plan/component/ComponentService.java @@ -41,10 +41,10 @@ public interface ComponentService { /** * Translates ampersands into section signs for color codes. Defaults to {@link Component#AMPERSAND} to {@link Component#SECTION}. - * Example: &ctext to §ctext. + * Example: {@code &ctext} to {@code §ctext}. * - * @param input the input color string with color codes using ampersands (&) - * @return the same input string with ampersands (&) for color codes replaced with section signs (§) + * @param input the input color string with color codes using ampersands ({@code &}) + * @return the same input string with ampersands ({@code &}) for color codes replaced with section signs ({@code §}) * @see #translateLegacy(String, char, char) */ default String translateLegacy(String input) { @@ -52,11 +52,11 @@ public interface ComponentService { } /** - * Translates ampersands into section signs for color codes. Example: &ctext to §ctext. + * Translates ampersands into section signs for color codes. Example: {@code &ctext} to {@code §ctext}. * - * @param input the input color string with color codes using ampersands (&) - * @param inputCharacter the input character for translation, usually &. - * @param outputCharacter the output character for translation, usually §. + * @param input the input color string with color codes using ampersands ({@code &}) + * @param inputCharacter the input character for translation, usually {@code &}. + * @param outputCharacter the output character for translation, usually {@code §}. * @return the same input string with input characters for color codes replaced with output characters * @see #translateLegacy(String) * @see Component#SECTION @@ -75,7 +75,7 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example §ctext. + * Input example {@code §ctext}. * * @param legacy the input legacy * @return a {@link Component} @@ -87,10 +87,10 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example §ctext. + * Input example {@code §ctext}. * * @param legacy the input legacy - * @param character the character to use as the color prefix, usually §. + * @param character the character to use as the color prefix, usually {@code §}. * @return a {@link Component} * @see #fromLegacy(String) * @see Component#SECTION @@ -100,7 +100,7 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example: &#rrggbbtext. + * Input example: {@code &#rrggbbtext}. * * @param adventureLegacy the input adventure legacy * @return a {@link Component} @@ -112,10 +112,10 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example: &#rrggbbtext. + * Input example: {@code &#rrggbbtext}. * * @param adventureLegacy the input adventure legacy - * @param character the character to use as the color prefix, usually &. + * @param character the character to use as the color prefix, usually {@code &}. * @return a {@link Component} * @see #fromAdventureLegacy(String) * @see Component#SECTION @@ -125,7 +125,7 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example: §x§r§r§g§g§b§btext. + * Input example: {@code §x§r§r§g§g§b§btext}. * * @param bungeeLegacy the input bungee legacy * @return a {@link Component} @@ -136,10 +136,10 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example: §x§r§r§g§g§b§btext. + * Input example: {@code §x§r§r§g§g§b§btext}. * * @param bungeeLegacy the input bungee legacy - * @param character the character to use as the color prefix, usually §. + * @param character the character to use as the color prefix, usually {@code §}. * @return a {@link Component} * @see Component#SECTION * @see Component#AMPERSAND @@ -157,7 +157,7 @@ public interface ComponentService { /** * Converts the given input into a {@link Component}. - * Input example: {text:"text",color:"red"} (standard Minecraft json). + * Input example: {@code {text:"text",color:"red"}} (standard Minecraft json). * * @param json the input json * @return a {@link Component}