@@ -144,7 +144,7 @@ public static FieldInfo of(Field field) {
144
144
private Method [] settersMethodForField (Field field ) {
145
145
List <Method > methods = new ArrayList <>();
146
146
for (Method method : field .getDeclaringClass ().getDeclaredMethods ()) {
147
- if (Ascii .toLowerCase (method .getName ()).equals ("set" + field .getName (). toLowerCase ( ))
147
+ if (Ascii .toLowerCase (method .getName ()).equals ("set" + Ascii . toLowerCase ( field .getName ()))
148
148
&& method .getParameterTypes ().length == 1 ) {
149
149
methods .add (method );
150
150
}
@@ -221,9 +221,9 @@ public Object getValue(Object obj) {
221
221
}
222
222
223
223
/**
224
- * Sets to the given value of the field in the given object instance using reflection.
224
+ * Sets this field in the given object to the given value using reflection.
225
225
* <p>
226
- * If the field is final, it checks that value being set is identical to the existing value.
226
+ * If the field is final, it checks that the value being set is identical to the existing value.
227
227
*/
228
228
public void setValue (Object obj , Object value ) {
229
229
if (setters .length > 0 ) {
@@ -252,7 +252,7 @@ public <T extends Enum<T>> T enumValue() {
252
252
}
253
253
254
254
/**
255
- * Returns the value of the given field in the given object instance using reflection.
255
+ * Returns the value of the given field in the given object using reflection.
256
256
*/
257
257
public static Object getFieldValue (Field field , Object obj ) {
258
258
try {
@@ -263,9 +263,9 @@ public static Object getFieldValue(Field field, Object obj) {
263
263
}
264
264
265
265
/**
266
- * Sets to the given value of the given field in the given object instance using reflection.
266
+ * Sets the given field in the given object to the given value using reflection.
267
267
* <p>
268
- * If the field is final, it checks that value being set is identical to the existing value.
268
+ * If the field is final, it checks that the value being set is identical to the existing value.
269
269
*/
270
270
public static void setFieldValue (Field field , Object obj , Object value ) {
271
271
if (Modifier .isFinal (field .getModifiers ())) {
0 commit comments