Lines Matching refs:Field
21 import java.lang.reflect.Field;
67 final Field[] fields = getClass().getDeclaredFields();
68 for (Field field : fields) {
69 final Class<?> fieldClass = field.getDeclaringClass();
70 if (testCaseClass.isAssignableFrom(fieldClass) && !field.getType().isPrimitive()
71 && (field.getModifiers() & Modifier.FINAL) == 0) {
73 field.setAccessible(true);
74 field.set(this, null);
76 android.util.Log.d("TestCase", "Error: Could not nullify field!");
79 if (field.get(this) != null) {
80 android.util.Log.d("TestCase", "Error: Could not nullify field!");