code:
Field[] fields = obj.getClass().getDeclaredFields();
obj is a class which has 2 fields .
public class NullInfo implements Data {
@Idx(0)
private Integer index;
@Idx(1)
private String fieldName;
}
interface Data is empty .
my problem is : The field length is expected to be only 2. See the screenshot
what is $jacocoData?
quoting JaCoCo FAQ:
Method https://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Field.html#isSynthetic() allows to determine synthetic fields.