I want check that field type is List or not, but that is giving an error:
Incompatible conditional operand types Class<capture#5-of ?> and
List
- Incompatible conditional operand types Class<capture#6-of ?> and
List
How can I solve this?
private void convert(Class<?> load) {
Field[] fields = load.getDeclaredFields();
int i = 0;
for (Field field : fields) {
Class<?> type = field.getType();
if (type instanceof java.util.List) {
}
}
}