Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Make the following changes to fix names of local variables:
diff --git a/geode-junit/src/main/java/com/gemstone/gemfire/test/junit/rules/serializable/FieldSerializationUtils.java b/geode-junit/src/main/java/com/gemstone/gemfire/test/junit/rules/serializable/FieldSerializationUtils.java index 97e9265..101b6dd 100755 --- a/geode-junit/src/main/java/com/gemstone/gemfire/test/junit/rules/serializable/FieldSerializationUtils.java +++ b/geode-junit/src/main/java/com/gemstone/gemfire/test/junit/rules/serializable/FieldSerializationUtils.java @@ -28,9 +28,9 @@ public class FieldSerializationUtils { public static Object readField(final Class targetClass, final Object targetInstance, final String fieldName) { try { - Field assureDeletionField = targetClass.getDeclaredField(fieldName); - assureDeletionField.setAccessible(true); - return assureDeletionField.get(targetInstance); + Field field = targetClass.getDeclaredField(fieldName); + field.setAccessible(true); + return field.get(targetInstance); } catch (IllegalAccessException | NoSuchFieldException e) { throw new Error(e); } @@ -38,9 +38,9 @@ public class FieldSerializationUtils { public static void writeField(final Class targetClass, final Object targetInstance, final String fieldName, final Object value) { try { - Field folderField = targetClass.getDeclaredField(fieldName); - folderField.setAccessible(true); - folderField.set(targetInstance, value); + Field field = targetClass.getDeclaredField(fieldName); + field.setAccessible(true); + field.set(targetInstance, value); } catch (IllegalAccessException | NoSuchFieldException e) { throw new Error(e); }