hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-17416 Changed size() == 0 to isEmpty in hbase-protocol-shaded
Date Fri, 13 Jan 2017 16:39:02 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 6d98c4869 -> 7794c530b


HBASE-17416 Changed size() == 0 to isEmpty in hbase-protocol-shaded

Signed-off-by: Michael Stack <stack@apache.org>


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

Branch: refs/heads/master
Commit: 7794c530bd8dea47e16ca5329270aecc46ea9c8f
Parents: 6d98c48
Author: Jan Hentschel <jan.hentschel@ultratendency.com>
Authored: Thu Jan 12 13:18:11 2017 +0100
Committer: Michael Stack <stack@apache.org>
Committed: Fri Jan 13 08:38:58 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/7794c530/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java
----------------------------------------------------------------------
diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java
b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java
index b3176ee..0ccd9f9 100644
--- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java
+++ b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java
@@ -130,7 +130,7 @@ public final class ForeignExceptionUtil {
    *         the sender).
    */
   public static StackTraceElement[] toStackTrace(List<StackTraceElementMessage> traceList)
{
-    if (traceList == null || traceList.size() == 0) {
+    if (traceList == null || traceList.isEmpty()) {
       return new StackTraceElement[0]; // empty array
     }
     StackTraceElement[] trace = new StackTraceElement[traceList.size()];


Mime
View raw message