hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject hadoop git commit: HADOOP-13766. Fix a typo in the comments of RPC.getProtocolVersion. Contributed by Ethan Li.
Date Thu, 24 Nov 2016 01:08:42 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 860d49aa6 -> c7a5f2906


HADOOP-13766. Fix a typo in the comments of RPC.getProtocolVersion. Contributed by Ethan Li.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/c7a5f290
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/c7a5f290
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/c7a5f290

Branch: refs/heads/trunk
Commit: c7a5f2906fcfd073a402b6981b091bd6d9b80294
Parents: 860d49a
Author: Andrew Wang <wang@apache.org>
Authored: Wed Nov 23 17:08:38 2016 -0800
Committer: Andrew Wang <wang@apache.org>
Committed: Wed Nov 23 17:08:38 2016 -0800

----------------------------------------------------------------------
 .../hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c7a5f290/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
index a62748e..e16a8f5 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
@@ -158,8 +158,9 @@ public class RPC {
   
   /**
    * Get the protocol version from protocol class.
-   * If the protocol class has a ProtocolAnnotation, then get the protocol
-   * name from the annotation; otherwise the class name is the protocol name.
+   * If the protocol class has a ProtocolAnnotation,
+   * then get the protocol version from the annotation;
+   * otherwise get it from the versionID field of the protocol class.
    */
   static public long getProtocolVersion(Class<?> protocol) {
     if (protocol == null) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message