Fix failures caused by Jacoco syncthetic methods
Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
e952e73624
commit
e31286bf62
|
@ -88,7 +88,7 @@ public class SplitLogCounters {
|
||||||
public static void resetCounters() throws Exception {
|
public static void resetCounters() throws Exception {
|
||||||
Class<?> cl = (new SplitLogCounters()).getClass();
|
Class<?> cl = (new SplitLogCounters()).getClass();
|
||||||
for (Field fld : cl.getDeclaredFields()) {
|
for (Field fld : cl.getDeclaredFields()) {
|
||||||
((AtomicLong)fld.get(null)).set(0);
|
if (!fld.isSynthetic()) ((AtomicLong)fld.get(null)).set(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue