hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1692800 - in /hama/trunk: CHANGES.txt core/src/main/java/org/apache/hama/ipc/AsyncRPC.java core/src/main/java/org/apache/hama/ipc/RPC.java
Date Mon, 27 Jul 2015 00:17:45 GMT
Author: edwardyoon
Date: Mon Jul 27 00:17:45 2015
New Revision: 1692800

URL: http://svn.apache.org/r1692800
Log:
HAMA-967: Remove a meaningless checking condition (JongYoon Lim via edwardyoon)

Modified:
    hama/trunk/CHANGES.txt
    hama/trunk/core/src/main/java/org/apache/hama/ipc/AsyncRPC.java
    hama/trunk/core/src/main/java/org/apache/hama/ipc/RPC.java

Modified: hama/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hama/trunk/CHANGES.txt?rev=1692800&r1=1692799&r2=1692800&view=diff
==============================================================================
--- hama/trunk/CHANGES.txt (original)
+++ hama/trunk/CHANGES.txt Mon Jul 27 00:17:45 2015
@@ -11,6 +11,7 @@ Release 0.7.1 (unreleased changes)
 
   IMPROVEMENTS
 
+    HAMA-967: Remove a meaningless checking condition (JongYoon Lim via edwardyoon)
 
 Release 0.7.0 - Jun 14, 2015
 

Modified: hama/trunk/core/src/main/java/org/apache/hama/ipc/AsyncRPC.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/ipc/AsyncRPC.java?rev=1692800&r1=1692799&r2=1692800&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/ipc/AsyncRPC.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/ipc/AsyncRPC.java Mon Jul 27 00:17:45 2015
@@ -698,7 +698,7 @@ public class AsyncRPC {
 
     private static String classNameBase(String className) {
       String[] names = className.split("\\.", -1);
-      if (names == null || names.length == 0) {
+      if (names.length == 0) {
         return className;
       }
       return names[names.length - 1];

Modified: hama/trunk/core/src/main/java/org/apache/hama/ipc/RPC.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/ipc/RPC.java?rev=1692800&r1=1692799&r2=1692800&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/ipc/RPC.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/ipc/RPC.java Mon Jul 27 00:17:45 2015
@@ -574,7 +574,7 @@ public class RPC {
 
     private static String classNameBase(String className) {
       String[] names = className.split("\\.", -1);
-      if (names == null || names.length == 0) {
+      if (names.length == 0) {
         return className;
       }
       return names[names.length - 1];



Mime
View raw message