Buggy code:
public class FieldUtils { public FieldUtils ( ) { } public static Field getField ( final Class < ? > cls , final String fieldName ) { } public static Field getField ( final Class < ? > cls , final String fieldName , final boolean forceAccess ) { } public static Field getDeclaredField ( final Class < ? > cls , final String fieldName ) { } public static Field getDeclaredField ( final Class < ? > cls , final String fieldName , final boolean forceAccess ) { } public static Field [ ] getAllFields ( Class < ? > cls ) { } public static List < Field > getAllFieldsList ( Class < ? > cls ) { } public static Object readStaticField ( final Field field ) throws IllegalAccessException { } public static Object readStaticField ( final Field field , final boolean forceAccess ) throws IllegalAccessException { } public static Object readStaticField ( final Class < ? > cls , final String fieldName ) throws IllegalAccessException { } public static Object readStaticField ( final Class < ? > cls , final String fieldName , final boolean forceAccess ) throws IllegalAccessException { } public static Object readDeclaredStaticField ( final Class < ? > cls , final String fieldName ) throws IllegalAccessException { } public static Object readDeclaredStaticField ( final Class < ? > cls , final String fieldName , final boolean forceAccess ) throws IllegalAccessException { } public static Object readField ( final Field field , final Object target ) throws IllegalAccessException { } public static Object readField ( final Field field , final Object target , final boolean forceAccess ) throws IllegalAccessException { } public static Object readField ( final Object target , final String fieldName ) throws IllegalAccessException { } public static Object readField ( final Object target , final String fieldName , final boolean forceAccess ) throws IllegalAccessException { } public static Object readDeclaredField ( final Object target , final String fieldName ) throws IllegalAccessException { } public static Object readDeclaredField ( final Object target , final String fieldName , final boolean forceAccess ) throws IllegalAccessException { } public static void writeStaticField ( final Field field , final Object value ) throws IllegalAccessException { } public static void writeStaticField ( final Field field , final Object value , final boolean forceAccess ) throws IllegalAccessException { } public static void writeStaticField ( final Class < ? > cls , final String fieldName , final Object value ) throws IllegalAccessException { } public static void writeStaticField ( final Class < ? > cls , final String fieldName , final Object value , final boolean forceAccess ) throws IllegalAccessException { } public static void writeDeclaredStaticField ( final Class < ? > cls , final String fieldName , final Object value ) throws IllegalAccessException { } public static void writeDeclaredStaticField ( final Class < ? > cls , final String fieldName , final Object value , final boolean forceAccess ) throws IllegalAccessException { } public static void writeField ( final Field field , final Object target , final Object value ) throws IllegalAccessException { } public static void writeField ( final Field field , final Object target , final Object value , final boolean forceAccess ) throws IllegalAccessException { } public static void removeFinalModifier ( Field field ) { } public static void writeField ( final Object target , final String fieldName , final Object value ) throws IllegalAccessException { } public static void writeField ( final Object target , final String fieldName , final Object value , final boolean forceAccess ) throws IllegalAccessException { } public static void writeDeclaredField ( final Object target , final String fieldName , final Object value ) throws IllegalAccessException { } public static void writeDeclaredField ( final Object target , final String fieldName , final Object value , final boolean forceAccess ) throws IllegalAccessException { Validate . isTrue ( ( target != null ) , "target<seq2seq4repair_space>object<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; final Class < ? > cls = target . getClass ( ) ; final Field field = FieldUtils . getDeclaredField ( cls , fieldName , forceAccess ) ; Validate . isTrue ( ( field != null ) , "Cannot<seq2seq4repair_space>locate<seq2seq4repair_space>declared<seq2seq4repair_space>field<seq2seq4repair_space>%s.%s" , cls . getName ( ) , fieldName ) ; <START_BUG> FieldUtils . writeField ( field , target , value ) ; <END_BUG> } }

Fix:
FieldUtils . writeField ( field , target , value , false ) ;