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.
|
||||
*
|
||||
*
|
||||
* @author The Netty Project (netty-dev@lists.jboss.org)
|
||||
* @author Trustin Lee (tlee@redhat.com)
|
||||
* @version $Rev$, $Date$
|
||||
*/
|
||||
public class StringUtil {
|
||||
|
||||
|
||||
private StringUtil() {
|
||||
// Unused.
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Strip an Object of it's ISO control characters.
|
||||
*
|
||||
* @param value
|
||||
* Strip an Object of it's ISO control characters.
|
||||
*
|
||||
* @param value
|
||||
* The Object that should be stripped. This objects toString method will
|
||||
* called and the result passed to {@link #stripControlCharacters(String)}.
|
||||
* @return {@code String}
|
||||
* A new String instance with its hexadecimal control characters replaced
|
||||
* by a space. Or the unmodified String if it does not contain any ISO
|
||||
* controll characters.
|
||||
* A new String instance with its hexadecimal control characters replaced
|
||||
* by a space. Or the unmodified String if it does not contain any ISO
|
||||
* control characters.
|
||||
*/
|
||||
public static String stripControlCharacters(Object value) {
|
||||
if (value == null) {
|
||||
@ -54,14 +55,14 @@ public class StringUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip a String of it's ISO control characters.
|
||||
*
|
||||
* @param value
|
||||
* The String that should be stripped.
|
||||
* Strip a String of it's ISO control characters.
|
||||
*
|
||||
* @param value
|
||||
* The String that should be stripped.
|
||||
* @return {@code String}
|
||||
* A new String instance with its hexadecimal control characters replaced
|
||||
* by a space. Or the unmodified String if it does not contain any ISO
|
||||
* controll characters.
|
||||
* A new String instance with its hexadecimal control characters replaced
|
||||
* by a space. Or the unmodified String if it does not contain any ISO
|
||||
* control characters.
|
||||
*/
|
||||
public static String stripControlCharacters(String value) {
|
||||
if (value == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user