1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5package org.mockito.internal.util.reflection;
6
7import java.lang.reflect.Field;
8
9public class FieldCopier {
10
11    public <T> void copyValue(T from, T to, Field field) throws IllegalAccessException {
12        Object value = field.get(from);
13        field.set(to, value);
14    }
15}
16