HADOOP-7129. Fix typo in method name getProtocolSigature. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1066248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7fc59af99c
commit
f593f14bfb
@ -61,6 +61,8 @@ Trunk (unreleased changes)
|
||||
HADOOP-6939. Inconsistent lock ordering in
|
||||
AbstractDelegationTokenSecretManager. (Todd Lipcon via tomwhite)
|
||||
|
||||
HADOOP-7129. Fix typo in method name getProtocolSigature (todd)
|
||||
|
||||
Release 0.22.0 - Unreleased
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -225,7 +225,7 @@ static ProtocolSignature getProtocolSignature(
|
||||
* @throws IOException if any error occurs
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static ProtocolSignature getProtocolSigature(VersionedProtocol server,
|
||||
public static ProtocolSignature getProtocolSignature(VersionedProtocol server,
|
||||
String protocol,
|
||||
long clientVersion, int clientMethodsHash) throws IOException {
|
||||
Class<? extends VersionedProtocol> inter;
|
||||
@ -238,4 +238,16 @@ public static ProtocolSignature getProtocolSigature(VersionedProtocol server,
|
||||
return ProtocolSignature.getProtocolSignature(
|
||||
clientMethodsHash, serverVersion, inter);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Misspelled method name - to be removed after references
|
||||
* to this typo have been fixed in HDFS and MapRed.
|
||||
*/
|
||||
@Deprecated
|
||||
public static ProtocolSignature getProtocolSigature(VersionedProtocol server,
|
||||
String protocol,
|
||||
long clientVersion, int clientMethodsHash) throws IOException {
|
||||
return getProtocolSignature(server, protocol, clientVersion,
|
||||
clientMethodsHash);
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public long getProtocolVersion(String protocol,
|
||||
* @param clientMethodsHash the hashcode of client protocol methods
|
||||
* @return the server protocol signature containing its version and
|
||||
* a list of its supported methods
|
||||
* @see ProtocolSignature#getProtocolSigature(VersionedProtocol, String,
|
||||
* @see ProtocolSignature#getProtocolSignature(VersionedProtocol, String,
|
||||
* long, int) for a default implementation
|
||||
*/
|
||||
public ProtocolSignature getProtocolSignature(String protocol,
|
||||
|
Loading…
Reference in New Issue
Block a user