Skip to content

Commit

Permalink
Getting a field by default checks inheritance
Browse files Browse the repository at this point in the history
- This has been the previous behavior as well.
  • Loading branch information
steffen-wilke committed Nov 14, 2020
1 parent eddb149 commit b721dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de/gurkenlabs/litiengine/util/ReflectionUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private ReflectionUtilities() {
}

public static <T> Field getField(Class<T> cls, final String fieldName) {
return getField(cls, fieldName, false);
return getField(cls, fieldName, true);
}

public static <T> Field getField(Class<T> cls, final String fieldName, boolean recursive) {
Expand Down

0 comments on commit b721dc9

Please sign in to comment.