commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1562976 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
Date Thu, 30 Jan 2014 21:29:53 GMT
Author: ggregory
Date: Thu Jan 30 21:29:53 2014
New Revision: 1562976

URL: http://svn.apache.org/r1562976
Log:
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).

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java?rev=1562976&r1=1562975&r2=1562976&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java
Thu Jan 30 21:29:53 2014
@@ -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);
     }
 
     /**



Mime
View raw message