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

This commit is contained in:
Andrew Wang 2016-11-23 17:08:38 -08:00
parent 860d49aa6a
commit c7a5f2906f

View File

@ -158,8 +158,9 @@ static public String getProtocolName(Class<?> protocol) {
/** /**
* 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 * If the protocol class has a ProtocolAnnotation,
* name from the annotation; otherwise the class name is the protocol name. * 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) {