Deprecate NetUtil.isIp4Word()

NetUtil.isIp4Word() was meant to be a utility method of other public
methods in NetUtil, and was published mistakenly.
This commit is contained in:
Trustin Lee 2015-01-20 16:44:19 +09:00
parent 718825e0fc
commit b0747e7432

View File

@ -554,6 +554,10 @@ public final class NetUtil {
return true; return true;
} }
/**
* @deprecated Do not use; published by mistake.
*/
@Deprecated
public static boolean isValidIp4Word(String word) { public static boolean isValidIp4Word(String word) {
char c; char c;
if (word.length() < 1 || word.length() > 3) { if (word.length() < 1 || word.length() > 3) {