From e31286bf621273bb8e484f95b1a94fff15df034c Mon Sep 17 00:00:00 2001 From: manukranthk Date: Wed, 8 Oct 2014 10:36:02 -0700 Subject: [PATCH] Fix failures caused by Jacoco syncthetic methods Signed-off-by: Andrew Purtell --- .../src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java index 7f8069ac044..b9614b4ef4c 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogCounters.java @@ -88,7 +88,7 @@ public class SplitLogCounters { public static void resetCounters() throws Exception { Class cl = (new SplitLogCounters()).getClass(); for (Field fld : cl.getDeclaredFields()) { - ((AtomicLong)fld.get(null)).set(0); + if (!fld.isSynthetic()) ((AtomicLong)fld.get(null)).set(0); } } }