From 7794c530bd8dea47e16ca5329270aecc46ea9c8f Mon Sep 17 00:00:00 2001 From: Jan Hentschel Date: Thu, 12 Jan 2017 13:18:11 +0100 Subject: [PATCH] HBASE-17416 Changed size() == 0 to isEmpty in hbase-protocol-shaded Signed-off-by: Michael Stack --- .../main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b3176ee80b..0ccd9f9a22 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 traceList) { - if (traceList == null || traceList.size() == 0) { + if (traceList == null || traceList.isEmpty()) { return new StackTraceElement[0]; // empty array } StackTraceElement[] trace = new StackTraceElement[traceList.size()]; -- 2.11.4.GIT