Buggy code:
public class XpandExecutionContextImpl extends ExecutionContextImpl implements XpandExecutionContext { private final Log log = LogFactory . getLog ( getClass ( ) ) ; protected final Output output ; protected final ProtectedRegionResolver protectedRegionResolver ; private List < XpandAdvice > registeredAdvices = new ArrayList < XpandAdvice > ( ) ; public XpandExecutionContextImpl ( Output output , ProtectedRegionResolver prs ) { } public XpandExecutionContextImpl ( Output output , ProtectedRegionResolver prs , Map < String , Variable > globalVars , ExceptionHandler exceptionHandler , NullEvaluationHandler nullEvaluationHandler ) { } protected XpandExecutionContextImpl ( final TypeSystemImpl ts , Output output , ProtectedRegionResolver prs , Map < String , Variable > globalVars , ExceptionHandler exceptionHandler , NullEvaluationHandler nullEvaluationHandler ) { } protected XpandExecutionContextImpl ( ResourceManager resourceManager , Resource currentResource , TypeSystemImpl typeSystem , Map < String , Variable > vars , Map < String , Variable > globalVars , Output output , ProtectedRegionResolver protectedRegionResolver , ProgressMonitor monitor , ExceptionHandler exceptionHandler , List < Around > advices , NullEvaluationHandler nullEvaluationHandler , Map < Resource , Set < Extension > > allExtensionsPerResource ) { } @ Override public XpandExecutionContextImpl cloneContext ( ) { } public List < XpandDefinition > getAllDefinitions ( ) { } public XpandDefinition findDefinition ( final String name , final Type target , final Type [ ] paramTypes ) { } public void registerAdvices ( final String fullyQualifiedName ) { final XpandResource tpl = findTemplate ( fullyQualifiedName ) ; if ( tpl == null ) throw new NoSuchTemplateException ( fullyQualifiedName ) ; final XpandAdvice [ ] as = tpl . getAdvices ( ) ; for ( int i = 0 ; i < ( as . length ) ; i ++ ) { final XpandAdvice advice = as [ i ] ; if ( registeredAdvices . contains ( advice ) ) { <START_BUG> log . warn ( ( ( "advice<seq2seq4repair_space>" + ( advice . toString ( ) ) ) + "<seq2seq4repair_space>allready<seq2seq4repair_space>registered!" ) ) ; <END_BUG> } else { registeredAdvices . add ( advice ) ; } } } public ProtectedRegionResolver getProtectedRegionResolver ( ) { } public Output getOutput ( ) { } public XpandResource findTemplate ( final String templateName ) { } public XpandResource findTemplate ( final String templateName , String [ ] importedNs ) { } private XpandDefinition findDefinition ( final XpandDefinition [ ] definitions , final String name , final Type target , Type [ ] paramTypes , final XpandExecutionContext ctx ) { } public class DefinitionOperationAdapter implements Operation { private String name ; private Type owner ; private List < Type > paramTypes ; public XpandDefinition def ; public DefinitionOperationAdapter ( final XpandDefinition def , final String name , final Type owner , final List < Type > paramTypes ) { } public String getName ( ) { } public Type getReturnType ( ) { } public Type getOwner ( ) { } public List < Type > getParameterTypes ( ) { } public Object evaluate ( final Object target , final Object [ ] params ) { } public String getDocumentation ( ) { } public Type getReturnType ( final Type targetType , final Type [ ] paramTpes ) { } } @ Override public void setFileEncoding ( final String fileEncoding ) { } }

Fix:
log . warn ( ( ( "advice<seq2seq4repair_space>" + ( advice . toString ( ) ) ) + "<seq2seq4repair_space>already<seq2seq4repair_space>registered!" ) ) ;