Program: 28724
Project: 28724
Buggy source:
/** 
 * This is method contains the additional parameters which require to initialize distributed transport
 * @param streamDefinition         Definition of the stream this sink instance is publishing to
 * @param type                     Type of the transport that (e.g., TCP, JMS)
 * @param transportOptionHolder    Option holder for carrying options for the transport
 * @param sinkConfigReader         This hold the {@link Sink} extensions configuration reader for the sink
 * @param sinkMapper               Hold the mapper that's used in this sink
 * @param mapType                  Type of the mapper
 * @param mapOptionHolder          Options of the mapper
 * @param payloadElementList       The template list of the payload messages
 * @param mapperConfigReader       This hold the {@link Sink} extensions configuration reader for the mapper
 * @param siddhiAppContext         The siddhi app context
 * @param destinationOptionHolders List of option holders containing the options mentioned in @destination
 * @param sinkAnnotation           The annotation of the Sink
 * @param strategy                 Publishing strategy to be used by the distributed transport
 * @param supportedDynamicOptions  List of supported dynamic options
 */
public void init(StreamDefinition streamDefinition,String type,OptionHolder transportOptionHolder,ConfigReader sinkConfigReader,SinkMapper sinkMapper,String mapType,OptionHolder mapOptionHolder,SinkHandler sinkHandler,List<Element> payloadElementList,ConfigReader mapperConfigReader,SiddhiAppContext siddhiAppContext,List<OptionHolder> destinationOptionHolders,Annotation sinkAnnotation,DistributionStrategy strategy,String[] supportedDynamicOptions){
  this.strategy=strategy;
  this.supportedDynamicOptions=supportedDynamicOptions;
  init(streamDefinition,type,transportOptionHolder,sinkConfigReader,sinkMapper,mapType,mapOptionHolder,sinkHandler,payloadElementList,mapperConfigReader,siddhiAppContext);
  initTransport(sinkOptionHolder,destinationOptionHolders,sinkAnnotation,sinkConfigReader,siddhiAppContext);
}

Fixed version (ground truth):
/** 
 * This is method contains the additional parameters which require to initialize distributed transport
 * @param streamDefinition         Definition of the stream this sink instance is publishing to
 * @param type                     Type of the transport that (e.g., TCP, JMS)
 * @param transportOptionHolder    Option holder for carrying options for the transport
 * @param sinkConfigReader         This hold the {@link Sink} extensions configuration reader for the sink
 * @param sinkMapper               Hold the mapper that's used in this sink
 * @param mapType                  Type of the mapper
 * @param mapOptionHolder          Options of the mapper
 * @param sinkHandler              Sink handler to do optional processing
 * @param payloadElementList       The template list of the payload messages
 * @param mapperConfigReader       This hold the {@link Sink} extensions configuration reader for the mapper
 * @param siddhiAppContext         The siddhi app context
 * @param destinationOptionHolders List of option holders containing the options mentioned in @destination
 * @param sinkAnnotation           The annotation of the Sink
 * @param strategy                 Publishing strategy to be used by the distributed transport
 * @param supportedDynamicOptions  List of supported dynamic options
 */
public void init(StreamDefinition streamDefinition,String type,OptionHolder transportOptionHolder,ConfigReader sinkConfigReader,SinkMapper sinkMapper,String mapType,OptionHolder mapOptionHolder,SinkHandler sinkHandler,List<Element> payloadElementList,ConfigReader mapperConfigReader,SiddhiAppContext siddhiAppContext,List<OptionHolder> destinationOptionHolders,Annotation sinkAnnotation,DistributionStrategy strategy,String[] supportedDynamicOptions){
  this.strategy=strategy;
  this.supportedDynamicOptions=supportedDynamicOptions;
  init(streamDefinition,type,transportOptionHolder,sinkConfigReader,sinkMapper,mapType,mapOptionHolder,sinkHandler,payloadElementList,mapperConfigReader,siddhiAppContext);
  initTransport(sinkOptionHolder,destinationOptionHolders,sinkAnnotation,sinkConfigReader,siddhiAppContext);
}