diff --git a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityEscaper.java b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityEscaper.java index 77f6d8dce..9d7346667 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityEscaper.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/NumericEntityEscaper.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,7 +21,7 @@ import java.io.Writer; /** * Translates codepoints to their XML numeric entity escaped value. - * + * * @author Apache Software Foundation * @since 3.0 * @version $Id$ @@ -33,9 +33,9 @@ public class NumericEntityEscaper extends CodePointTranslator { private final boolean between; /** - *

Constructs a NumericEntityEscaper for the specified range. This is + *

Constructs a NumericEntityEscaper for the specified range. This is * the underlying method for the other constructors/builders. The below - * and above boundaries are inclusive when between is + * and above boundaries are inclusive when between is * true and exclusive when it is false.

* * @param below int value representing the lowest codepoint boundary @@ -51,7 +51,7 @@ public class NumericEntityEscaper extends CodePointTranslator { /** *

Constructs a NumericEntityEscaper for all characters.

*/ - public NumericEntityEscaper() { + public NumericEntityEscaper() { this(0, Integer.MAX_VALUE, true); } @@ -59,6 +59,7 @@ public class NumericEntityEscaper extends CodePointTranslator { *

Constructs a NumericEntityEscaper below the specified value (exclusive).

* * @param codepoint below which to escape + * @return the newly created {@code NumericEntityEscaper} instance */ public static NumericEntityEscaper below(int codepoint) { return outsideOf(codepoint, Integer.MAX_VALUE); @@ -68,6 +69,7 @@ public class NumericEntityEscaper extends CodePointTranslator { *

Constructs a NumericEntityEscaper above the specified value (exclusive).

* * @param codepoint above which to escape + * @return the newly created {@code NumericEntityEscaper} instance */ public static NumericEntityEscaper above(int codepoint) { return outsideOf(0, codepoint); @@ -78,6 +80,7 @@ public class NumericEntityEscaper extends CodePointTranslator { * * @param codepointLow above which to escape * @param codepointHigh below which to escape + * @return the newly created {@code NumericEntityEscaper} instance */ public static NumericEntityEscaper between(int codepointLow, int codepointHigh) { return new NumericEntityEscaper(codepointLow, codepointHigh, true); @@ -88,6 +91,7 @@ public class NumericEntityEscaper extends CodePointTranslator { * * @param codepointLow below which to escape * @param codepointHigh above which to escape + * @return the newly created {@code NumericEntityEscaper} instance */ public static NumericEntityEscaper outsideOf(int codepointLow, int codepointHigh) { return new NumericEntityEscaper(codepointLow, codepointHigh, false);