Make the readDeclaredField(final Object target, final String fieldName, final boolean forceAccess) impl match its in-line comment and not rely on the default behavior of readField(Field, Object).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
03c16e857d
commit
5ba58d45d0
|
@ -474,7 +474,7 @@ public class FieldUtils {
|
|||
final Field field = getDeclaredField(cls, fieldName, forceAccess);
|
||||
Validate.isTrue(field != null, "Cannot locate declared field %s.%s" , cls, fieldName);
|
||||
// already forced access above, don't repeat it here:
|
||||
return readField(field, target);
|
||||
return readField(field, target, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue