• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito.internal.util.reflection;
6 
7 import java.lang.reflect.Field;
8 
9 public class FieldCopier {
10 
copyValue(T from, T to, Field field)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