Fixed typo and a compiler warning
This commit is contained in:
parent
0f8c1be142
commit
48634e3d30
@ -24,26 +24,27 @@ package org.jboss.netty.util.internal;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* String utility class.
|
* String utility class.
|
||||||
*
|
*
|
||||||
* @author The Netty Project (netty-dev@lists.jboss.org)
|
* @author The Netty Project (netty-dev@lists.jboss.org)
|
||||||
* @author Trustin Lee (tlee@redhat.com)
|
* @author Trustin Lee (tlee@redhat.com)
|
||||||
* @version $Rev$, $Date$
|
* @version $Rev$, $Date$
|
||||||
*/
|
*/
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
|
|
||||||
private StringUtil() {
|
private StringUtil() {
|
||||||
|
// Unused.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strip an Object of it's ISO control characters.
|
* Strip an Object of it's ISO control characters.
|
||||||
*
|
*
|
||||||
* @param value
|
* @param value
|
||||||
* The Object that should be stripped. This objects toString method will
|
* The Object that should be stripped. This objects toString method will
|
||||||
* called and the result passed to {@link #stripControlCharacters(String)}.
|
* called and the result passed to {@link #stripControlCharacters(String)}.
|
||||||
* @return {@code String}
|
* @return {@code String}
|
||||||
* A new String instance with its hexadecimal control characters replaced
|
* A new String instance with its hexadecimal control characters replaced
|
||||||
* by a space. Or the unmodified String if it does not contain any ISO
|
* by a space. Or the unmodified String if it does not contain any ISO
|
||||||
* controll characters.
|
* control characters.
|
||||||
*/
|
*/
|
||||||
public static String stripControlCharacters(Object value) {
|
public static String stripControlCharacters(Object value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
@ -54,14 +55,14 @@ public class StringUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strip a String of it's ISO control characters.
|
* Strip a String of it's ISO control characters.
|
||||||
*
|
*
|
||||||
* @param value
|
* @param value
|
||||||
* The String that should be stripped.
|
* The String that should be stripped.
|
||||||
* @return {@code String}
|
* @return {@code String}
|
||||||
* A new String instance with its hexadecimal control characters replaced
|
* A new String instance with its hexadecimal control characters replaced
|
||||||
* by a space. Or the unmodified String if it does not contain any ISO
|
* by a space. Or the unmodified String if it does not contain any ISO
|
||||||
* controll characters.
|
* control characters.
|
||||||
*/
|
*/
|
||||||
public static String stripControlCharacters(String value) {
|
public static String stripControlCharacters(String value) {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user