From 9d3452304c1bd4aae6aab0d2f709ef24568a4dde Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Wed, 22 Mar 2023 01:09:44 -0700 Subject: [PATCH] Minor cleanup --- lib/src/main/java/rife/render/RenderUtils.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/src/main/java/rife/render/RenderUtils.java b/lib/src/main/java/rife/render/RenderUtils.java index a4a7457..5850a0f 100644 --- a/lib/src/main/java/rife/render/RenderUtils.java +++ b/lib/src/main/java/rife/render/RenderUtils.java @@ -160,7 +160,7 @@ public final class RenderUtils { /** * Fetches the content (body) of a URL. * - * @param url the URL string. + * @param url the URL sSng. * @param defaultContent the default content to return if none fetched. * @return the url content, or empty. */ @@ -223,7 +223,7 @@ public final class RenderUtils { } /** - * Converts a text string to HTML decimal entities. + * Converts a text String to HTML decimal entities. * * @param src the String to convert * @return the converted String @@ -383,7 +383,9 @@ public final class RenderUtils { } /** - *

Shortens a URL using is.gid. The URL string must a valid http or https URL.

+ *

Shortens a URL using is.gid.

+ * + *

The URL String must be a valid http or https URL.

* *

Based on isgd-shorten

* @@ -465,8 +467,9 @@ public final class RenderUtils { * * @param uptime the uptime in milliseconds * @param properties the format properties - * @return ghe formatted uptime. + * @return the formatted uptime. */ + @SuppressWarnings("UnnecessaryUnicodeEscape") public static String uptime(long uptime, Properties properties) { var sb = new StringBuilder();