Buggy code:
public class FieldRetrievingFactoryBean implements BeanClassLoaderAware , BeanNameAware , FactoryBean < Object > , InitializingBean { private Class targetClass ; private Object targetObject ; private String targetField ; private String staticField ; private String beanName ; private ClassLoader beanClassLoader = ClassUtils . getDefaultClassLoader ( ) ; private Field fieldObject ; public void setTargetClass ( Class targetClass ) { } public Class getTargetClass ( ) { } public void setTargetObject ( Object targetObject ) { } public Object getTargetObject ( ) { } public void setTargetField ( String targetField ) { } public String getTargetField ( ) { } public void setStaticField ( String staticField ) { } public void setBeanName ( String beanName ) { } public void setBeanClassLoader ( ClassLoader classLoader ) { } public void afterPropertiesSet ( ) throws ClassNotFoundException , NoSuchFieldException { if ( ( ( this . targetClass ) != null ) && ( ( this . targetObject ) != null ) ) { throw new IllegalArgumentException ( "Specify<seq2seq4repair_space>either<seq2seq4repair_space>targetClass<seq2seq4repair_space>or<seq2seq4repair_space>targetObject,<seq2seq4repair_space>not<seq2seq4repair_space>both" ) ; } if ( ( ( this . targetClass ) == null ) && ( ( this . targetObject ) == null ) ) { if ( ( this . targetField ) != null ) { throw new IllegalArgumentException ( "Specify<seq2seq4repair_space>targetClass<seq2seq4repair_space>or<seq2seq4repair_space>targetObject<seq2seq4repair_space>in<seq2seq4repair_space>combination<seq2seq4repair_space>with<seq2seq4repair_space>targetField" ) ; } if ( ( this . staticField ) == null ) { this . staticField = this . beanName ; } int lastDotIndex = this . staticField . lastIndexOf ( '.' ) ; if ( ( lastDotIndex == ( - 1 ) ) || ( lastDotIndex == ( this . staticField . length ( ) ) ) ) { <START_BUG> throw new IllegalArgumentException ( ( "staticField<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>fully<seq2seq4repair_space>qualified<seq2seq4repair_space>class<seq2seq4repair_space>plus<seq2seq4repair_space>method<seq2seq4repair_space>name:<seq2seq4repair_space>" + "e.g.<seq2seq4repair_space>'example.MyExampleClass.MY_EXAMPLE_FIELD'" ) ) ; <END_BUG> } String className = this . staticField . substring ( 0 , lastDotIndex ) ; String fieldName = this . staticField . substring ( ( lastDotIndex + 1 ) ) ; this . targetClass = ClassUtils . forName ( className , this . beanClassLoader ) ; this . targetField = fieldName ; } else if ( ( this . targetField ) == null ) { throw new IllegalArgumentException ( "targetField<seq2seq4repair_space>is<seq2seq4repair_space>required" ) ; } Class targetClass = ( ( this . targetObject ) != null ) ? this . targetObject . getClass ( ) : this . targetClass ; this . fieldObject = targetClass . getField ( this . targetField ) ; } public Object getObject ( ) throws IllegalAccessException { } public Class < ? > getObjectType ( ) { } public boolean isSingleton ( ) { } }

Fix:
throw new IllegalArgumentException ( ( "staticField<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>fully<seq2seq4repair_space>qualified<seq2seq4repair_space>class<seq2seq4repair_space>plus<seq2seq4repair_space>static<seq2seq4repair_space>field<seq2seq4repair_space>name:<seq2seq4repair_space>" + "e.g.<seq2seq4repair_space>'example.MyExampleClass.MY_EXAMPLE_FIELD'" ) ) ;