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:
parent
fd3057092d
commit
8f06368cd4
|
@ -565,7 +565,7 @@ public class FieldUtils {
|
||||||
final Field field = getField(cls, fieldName, forceAccess);
|
final Field field = getField(cls, fieldName, forceAccess);
|
||||||
Validate.isTrue(field != null, "Cannot locate field %s on %s", fieldName, cls);
|
Validate.isTrue(field != null, "Cannot locate field %s on %s", fieldName, cls);
|
||||||
// already forced access above, don't repeat it here:
|
// 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);
|
final Field field = getDeclaredField(cls, fieldName, forceAccess);
|
||||||
Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName);
|
Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName);
|
||||||
// already forced access above, don't repeat it here:
|
// 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);
|
final Field field = getField(cls, fieldName, forceAccess);
|
||||||
Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName);
|
Validate.isTrue(field != null, "Cannot locate declared field %s.%s", cls.getName(), fieldName);
|
||||||
// already forced access above, don't repeat it here:
|
// already forced access above, don't repeat it here:
|
||||||
writeField(field, target, value);
|
writeField(field, target, value, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue