Buggy code:
public class CodeGeneratorContextImpl implements CodeGeneratorContext { private static final String PKG_NAME = "com.mailjet.api.model.v3.%1$s.%2$s" ; private Map < String , JType > knownTypes = new HashMap < String , JType > ( ) ; private Map < String , JType > resourceTypes = new HashMap < String , JType > ( ) ; private Map < String , JType > predefinedTypes = new HashMap < String , JType > ( ) ; private List < String > dictionary = new ArrayList < String > ( ) ; private JCodeModel context ; public CodeGeneratorContextImpl ( String configDir ) throws Exception { } public JCodeModel getCodeModel ( ) { } public String generatedClassNameForResource ( ResourceMetadata method , String suffix ) { } public String generateClassNameForComponentType ( ComponentMetadata component ) { } private String camelCase ( String name ) { } private Map < String , JType > loadPredefinedTypes ( String fileName , JCodeModel cm ) throws Exception { } private List < String > loadDictionary ( String dictionaryFile ) throws Exception { } public void registerCustomType ( ComponentMetadata metadata , JType beanClass ) { } public void registerCustomTypeForResource ( ResourceMetadata resourceMetadata , ComponentMetadata propertyMetadata , JType beanClass ) { } public void registerTypeForResource ( ResourceMetadata metadata , JType beanClass ) { } private String customTypeKey ( ComponentMetadata metadata ) { } private String customTypeForResourceKey ( ResourceMetadata resourceMetadata , ComponentMetadata propertyMetadata ) { } private String resourceKey ( ResourceMetadata metadata ) { } private String normalizeKey ( String className ) { } private static String capitalizeFirst ( String value ) { } public void generateJavaPropertyForComponent ( JDefinedClass beanClass , ResourceMetadata resourceMetadata , ComponentMetadata metadata ) throws Exception { JType type = getTypeForComponent ( resourceMetadata , metadata ) ; String name = metadata . getName ( ) ; if ( type == null ) { type = context . ref ( Long . class ) ; name = name + "ID" ; } String fieldName = ( name . equals ( "List" ) ) ? "_" + name : name ; JFieldVar field = beanClass . field ( PRIVATE , type , fieldName ) ; if ( metadata != null ) { JAnnotationUse annotate = field . annotate ( Component . class ) ; <START_BUG> annotate . param ( "name" , metadata . getName ( ) ) ; <END_BUG> annotate . param ( "type" , metadata . getDataType ( ) ) ; annotate . param ( "defaultValue" , metadata . getDefaultValue ( ) ) ; annotate . param ( "required" , metadata . getIsRequired ( ) ) ; annotate . param ( "description" , metadata . getDescription ( ) ) ; } JMethod getterMethod = beanClass . method ( PUBLIC , type , ( "get" + ( CodeGeneratorContextImpl . capitalizeFirst ( name ) ) ) ) ; if ( metadata != null ) { JDocComment getDoc = getterMethod . javadoc ( ) ; getDoc . add ( String . format ( "Gets<seq2seq4repair_space>\"%1$s\"<seq2seq4repair_space>property." , metadata . getDescription ( ) ) ) ; getDoc . addReturn ( ) . add ( "the<seq2seq4repair_space>value<seq2seq4repair_space>set<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>property<seq2seq4repair_space>or<seq2seq4repair_space>null<seq2seq4repair_space>if<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>present" ) ; } JBlock block = getterMethod . body ( ) ; block . _return ( field ) ; JMethod setterMethod = beanClass . method ( PUBLIC , beanClass , ( "set" + ( CodeGeneratorContextImpl . capitalizeFirst ( name ) ) ) ) ; setterMethod . param ( type , "value" ) ; setterMethod . body ( ) . assign ( field , JExpr . ref ( "value" ) ) . _return ( JExpr . _this ( ) ) ; if ( metadata != null ) { JDocComment setDoc = setterMethod . javadoc ( ) ; setDoc . add ( String . format ( "Sets<seq2seq4repair_space>the<seq2seq4repair_space>specified<seq2seq4repair_space>value<seq2seq4repair_space>to<seq2seq4repair_space>\"%1$s\"<seq2seq4repair_space>property." , metadata . getDescription ( ) ) ) ; setDoc . addParam ( "value" ) . add ( "the<seq2seq4repair_space>new<seq2seq4repair_space>value<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>property" ) ; setDoc . addReturn ( ) . add ( "not<seq2seq4repair_space>null,<seq2seq4repair_space>the<seq2seq4repair_space>object<seq2seq4repair_space>on<seq2seq4repair_space>which<seq2seq4repair_space>this<seq2seq4repair_space>method<seq2seq4repair_space>was<seq2seq4repair_space>called<seq2seq4repair_space>" ) ; } } public JType getTypeForComponent ( ResourceMetadata metadata , ComponentMetadata component ) throws Exception { } public boolean isPredefinedType ( ComponentMetadata component ) throws Exception { } public boolean needsInnerType ( ComponentMetadata component ) throws Exception { } public JClass getTypeForResource ( ResourceMetadata resourceMetadata ) throws Exception { } }

Fix:
annotate . param ( "name" , name ) ;