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@1562977 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5ba58d45d0
commit
fc41d6bb88
|
@ -429,7 +429,7 @@ public class FieldUtils {
|
|||
final Field field = getField(cls, fieldName, forceAccess);
|
||||
Validate.isTrue(field != null, "Cannot locate field %s on %s" , fieldName, cls);
|
||||
// already forced access above, don't repeat it here:
|
||||
return readField(field, target);
|
||||
return readField(field, target, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue