1
0
Преглед на файлове

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

Andrew Wang преди 8 години
родител
ревизия
c7a5f2906f
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java

+ 3 - 2
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.
    * 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) {
   static public long getProtocolVersion(Class<?> protocol) {
     if (protocol == null) {
     if (protocol == null) {