From 8f06368cd44cd7a8bf48248b3cae95fbe11b9780 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Thu, 30 Jan 2014 21:33:17 +0000 Subject: [PATCH] Make the write*Field impl match its in-line comment and not rely on the default behavior of writeField(field,target,value). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1562979 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/reflect/FieldUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java index 1ebccf3d3..6c043103c 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/FieldUtils.java @@ -565,7 +565,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: - writeStaticField(field, value); + writeStaticField(field, value, false); } /** @@ -614,7 +614,7 @@ public class FieldUtils { final Field field = getDeclaredField(cls, fieldName, forceAccess); Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName); // already forced access above, don't repeat it here: - writeField(field, (Object) null, value); + writeField(field, (Object) null, value, false); } /** @@ -734,7 +734,7 @@ public class FieldUtils { final Field field = getField(cls, fieldName, forceAccess); Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName); // already forced access above, don't repeat it here: - writeField(field, target, value); + writeField(field, target, value, false); } /**