Browse Source

HADOOP-7687 Make getProtocolSignature public (sanjay)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1177002 13f79535-47bb-0310-9956-ffa450edef68
Sanjay Radia 13 năm trước cách đây
mục cha
commit
bfc830caa4

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -23,6 +23,8 @@ Trunk (unreleased changes)
     HADOOP-7668. Add a NetUtils method that can tell if an InetAddress 
     belongs to local host. (suresh)
 
+    HADOOP-7687 Make getProtocolSignature public  (sanjay)
+
   BUGS
 
     HADOOP-7606. Upgrade Jackson to version 1.7.1 to match the version required

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtocolSignature.java

@@ -199,7 +199,7 @@ public class ProtocolSignature implements Writable {
    * @param protocol protocol
    * @return the server's protocol signature
    */
-  static ProtocolSignature getProtocolSignature(
+  public static ProtocolSignature getProtocolSignature(
       int clientMethodsHashCode,
       long serverVersion,
       Class<? extends VersionedProtocol> protocol) {