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 283ec57641
commit ad2064d8a5
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);
}
}
}