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
This commit is contained in:
Gary D. Gregory 2014-01-30 21:33:17 +00:00
parent fd3057092d
commit 8f06368cd4
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
/**