Hello,

Would you please explain why you need this change?

TY,
Gary

On Sat, Oct 26, 2024 at 5:12 AM <ebo...@apache.org> wrote:

> This is an automated email from the ASF dual-hosted git repository.
>
> ebourg pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/commons-text.git
>
> commit 31de78423c7f38e7fbdf4f0dd1c618e54a150df2
> Author: Emmanuel Bourg <ebo...@apache.org>
> AuthorDate: Sat Oct 26 10:35:13 2024 +0200
>
>     Removed the final modifier from the static methods
> ---
>  .../org/apache/commons/text/StringEscapeUtils.java | 30
> +++++++++++-----------
>  1 file changed, 15 insertions(+), 15 deletions(-)
>
> diff --git a/src/main/java/org/apache/commons/text/StringEscapeUtils.java
> b/src/main/java/org/apache/commons/text/StringEscapeUtils.java
> index 1a6bd9b7..5a531bd8 100644
> --- a/src/main/java/org/apache/commons/text/StringEscapeUtils.java
> +++ b/src/main/java/org/apache/commons/text/StringEscapeUtils.java
> @@ -506,7 +506,7 @@ public class StringEscapeUtils {
>       * @return The input String, enclosed in double quotes if the value
> contains a comma,
>       * newline or double quote, {@code null} if null string input
>       */
> -    public static final String escapeCsv(final String input) {
> +    public static String escapeCsv(final String input) {
>          return ESCAPE_CSV.translate(input);
>      }
>
> @@ -540,7 +540,7 @@ public class StringEscapeUtils {
>       * @param input  String to escape values in, may be null
>       * @return String with escaped values, {@code null} if null string
> input
>       */
> -    public static final String escapeEcmaScript(final String input) {
> +    public static String escapeEcmaScript(final String input) {
>          return ESCAPE_ECMASCRIPT.translate(input);
>      }
>
> @@ -552,7 +552,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to escape, may be null
>       * @return a new escaped {@code String}, {@code null} if null string
> input
>       */
> -    public static final String escapeHtml3(final String input) {
> +    public static String escapeHtml3(final String input) {
>          return ESCAPE_HTML3.translate(input);
>      }
>
> @@ -582,7 +582,7 @@ public class StringEscapeUtils {
>       * @see <a href="http://www.w3.org/TR/html401/charset.html#h-5.3";>HTML
> 4.01 Character References</a>
>       * @see <a href="
> http://www.w3.org/TR/html401/charset.html#code-position";>HTML 4.01 Code
> positions</a>
>       */
> -    public static final String escapeHtml4(final String input) {
> +    public static String escapeHtml4(final String input) {
>          return ESCAPE_HTML4.translate(input);
>      }
>
> @@ -607,7 +607,7 @@ public class StringEscapeUtils {
>       * @param input  String to escape values in, may be null
>       * @return String with escaped values, {@code null} if null string
> input
>       */
> -    public static final String escapeJava(final String input) {
> +    public static String escapeJava(final String input) {
>          return ESCAPE_JAVA.translate(input);
>      }
>
> @@ -634,7 +634,7 @@ public class StringEscapeUtils {
>       * @param input  String to escape values in, may be null
>       * @return String with escaped values, {@code null} if null string
> input
>       */
> -    public static final String escapeJson(final String input) {
> +    public static String escapeJson(final String input) {
>          return ESCAPE_JSON.translate(input);
>      }
>
> @@ -715,7 +715,7 @@ public class StringEscapeUtils {
>       * @param input  String to escape values in, may be null
>       * @return String with escaped values, {@code null} if null string
> input
>       */
> -    public static final String escapeXSI(final String input) {
> +    public static String escapeXSI(final String input) {
>          return ESCAPE_XSI.translate(input);
>      }
>
> @@ -739,7 +739,7 @@ public class StringEscapeUtils {
>       * @return The input String, with enclosing double quotes removed and
> embedded double
>       * quotes unescaped, {@code null} if null string input
>       */
> -    public static final String unescapeCsv(final String input) {
> +    public static String unescapeCsv(final String input) {
>          return UNESCAPE_CSV.translate(input);
>      }
>
> @@ -754,7 +754,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to unescape, may be null
>       * @return A new unescaped {@code String}, {@code null} if null
> string input
>       */
> -    public static final String unescapeEcmaScript(final String input) {
> +    public static String unescapeEcmaScript(final String input) {
>          return UNESCAPE_ECMASCRIPT.translate(input);
>      }
>
> @@ -766,7 +766,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to unescape, may be null
>       * @return a new unescaped {@code String}, {@code null} if null
> string input
>       */
> -    public static final String unescapeHtml3(final String input) {
> +    public static String unescapeHtml3(final String input) {
>          return UNESCAPE_HTML3.translate(input);
>      }
>
> @@ -785,7 +785,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to unescape, may be null
>       * @return a new unescaped {@code String}, {@code null} if null
> string input
>       */
> -    public static final String unescapeHtml4(final String input) {
> +    public static String unescapeHtml4(final String input) {
>          return UNESCAPE_HTML4.translate(input);
>      }
>
> @@ -798,7 +798,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to unescape, may be null
>       * @return a new unescaped {@code String}, {@code null} if null
> string input
>       */
> -    public static final String unescapeJava(final String input) {
> +    public static String unescapeJava(final String input) {
>          return UNESCAPE_JAVA.translate(input);
>      }
>
> @@ -813,7 +813,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to unescape, may be null
>       * @return A new unescaped {@code String}, {@code null} if null
> string input
>       */
> -    public static final String unescapeJson(final String input) {
> +    public static String unescapeJson(final String input) {
>          return UNESCAPE_JSON.translate(input);
>      }
>
> @@ -833,7 +833,7 @@ public class StringEscapeUtils {
>       * @see #escapeXml10(String)
>       * @see #escapeXml11(String)
>       */
> -    public static final String unescapeXml(final String input) {
> +    public static String unescapeXml(final String input) {
>          return UNESCAPE_XML.translate(input);
>      }
>
> @@ -844,7 +844,7 @@ public class StringEscapeUtils {
>       * @param input  the {@code String} to unescape, may be null
>       * @return a new unescaped {@code String}, {@code null} if null
> string input
>       */
> -    public static final String unescapeXSI(final String input) {
> +    public static String unescapeXSI(final String input) {
>          return UNESCAPE_XSI.translate(input);
>      }
>
>
>

Reply via email to