Fix failures caused by Jacoco syncthetic methods

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
manukranthk 2014-10-08 10:36:02 -07:00 committed by Andrew Purtell
parent e952e73624
commit e31286bf62
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}