Checkstyle and trailing spaces.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1083052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ced4aa7699
commit
7fa56af132
|
@ -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;
|
||||
|
||||
/**
|
||||
* <p>Constructs a <code>NumericEntityEscaper</code> for the specified range. This is
|
||||
* <p>Constructs a <code>NumericEntityEscaper</code> for the specified range. This is
|
||||
* the underlying method for the other constructors/builders. The <code>below</code>
|
||||
* and <code>above</code> boundaries are inclusive when <code>between</code> is
|
||||
* and <code>above</code> boundaries are inclusive when <code>between</code> is
|
||||
* <code>true</code> and exclusive when it is <code>false</code>. </p>
|
||||
*
|
||||
* @param below int value representing the lowest codepoint boundary
|
||||
|
@ -51,7 +51,7 @@ public class NumericEntityEscaper extends CodePointTranslator {
|
|||
/**
|
||||
* <p>Constructs a <code>NumericEntityEscaper</code> for all characters. </p>
|
||||
*/
|
||||
public NumericEntityEscaper() {
|
||||
public NumericEntityEscaper() {
|
||||
this(0, Integer.MAX_VALUE, true);
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,7 @@ public class NumericEntityEscaper extends CodePointTranslator {
|
|||
* <p>Constructs a <code>NumericEntityEscaper</code> below the specified value (exclusive). </p>
|
||||
*
|
||||
* @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 {
|
|||
* <p>Constructs a <code>NumericEntityEscaper</code> above the specified value (exclusive). </p>
|
||||
*
|
||||
* @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);
|
||||
|
|
Loading…
Reference in New Issue