nus-yam/ex-repair huggingface dataset:
Buggy code:
public class CheckBackendFacade { private final String _checkFile ; private final MiddleEnd _middleEnd ; private final Collection < MetaModel > _mms ; public static void checkAll ( String xtendFileName , Collection < MetaModel > mms , Issues issues , Collection < ? > allObjects ) { } public static void checkAll ( String checkFileName , String fileEncoding , Collection < MetaModel > mms , Issues issues , Collection < ? > allObjects ) { } public static Object invokeCheckFunction ( String checkFileName , String fileEncoding , Collection < MetaModel > mms , QualifiedName functionName , Object ... parameters ) { } public Object invokeCheckFunction ( QualifiedName functionName , Object ... parameters ) { } public static CheckBackendFacade createForFile ( String checkFileName , String fileEncoding , Collection < MetaModel > mms ) { } private Map < Class < ? > , Object > getSpecificParameters ( String fileEncoding , Collection < MetaModel > mms ) { fileEncoding = OldHelper . normalizedFileEncoding ( fileEncoding ) ; final ExecutionContextImpl ctx = new ExecutionContextImpl ( ) ; <START_BUG> ctx . setFileEncoding ( fileEncoding ) ; <END_BUG> for ( MetaModel mm : mms ) ctx . registerMetaModel ( mm ) ; final Map < Class < ? > , Object > result = new HashMap < Class < ? > , Object > ( ) ; result . put ( OldXtendRegistryFactory . class , ctx ) ; result . put ( OldCheckRegistryFactory . class , ctx ) ; return result ; } private CheckBackendFacade ( String checkFileName , String fileEncoding , Collection < MetaModel > mms ) { } public FunctionDefContext getFunctionDefContext ( ) { } }

Fix:
ctx . getResourceManager ( ) . setFileEncoding ( fileEncoding ) ;
Buggy code:
public class ConfidenceTest { @ Test public final void reverseListPatternMatching ( ) { } @ Test public final void reverseStringPatternMatching ( ) { <START_BUG> assertEquals ( "olleh" , Loop . run ( "test//loop//confidence//reverse_string.loop" , true ) ) ; <END_BUG> } @ Test ( expected = RuntimeException . class ) public final void reverseLoopPatternMissingError ( ) { } }

Fix:
assertEquals ( "olleh" , Loop . run ( "test//loop//confidence//reverse_string.loop" ) ) ;
Buggy code:
public class P4Sync extends P4Base { String label ; private String syncCmd = "" ; public void setLabel ( String label ) throws BuildException { <START_BUG> if ( ( label == null ) && ( ! ( label . equals ( "" ) ) ) ) { <END_BUG> throw new BuildException ( "P4Sync:<seq2seq4repair_space>Labels<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>Null<seq2seq4repair_space>or<seq2seq4repair_space>Empty" ) ; } this . label = label ; } public void setForce ( String force ) throws BuildException { } public void execute ( ) throws BuildException { } }

Fix:
if ( ( label == null ) || ( label . equals ( "" ) ) ) {
Buggy code:
public class IRCNamespace extends Namespace { private static final long serialVersionUID = 1005111581522377553L ; public static final String IRC_PROTOCOL = "irc" ; <START_BUG> public ID createInstance ( Class [ ] argTypes , Object [ ] args ) throws IDCreateException { <END_BUG> URI newURI = null ; String s = null ; try { s = ( ( String ) ( args [ 0 ] ) ) ; } catch ( ClassCastException e ) { throw new IDCreateException ( ( ( "Cannot<seq2seq4repair_space>cast<seq2seq4repair_space>argument<seq2seq4repair_space>" + ( args [ 0 ] ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>String" ) ) ; } try { newURI = new URI ( s ) ; } catch ( URISyntaxException e ) { throw new IDCreateException ( ( "Exception<seq2seq4repair_space>creating<seq2seq4repair_space>URI<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" + s ) ) ; } String uriScheme = newURI . getScheme ( ) ; if ( ( uriScheme == null ) || ( ! ( uriScheme . equalsIgnoreCase ( getScheme ( ) ) ) ) ) { throw new IDCreateException ( ( ( newURI + "<seq2seq4repair_space>has<seq2seq4repair_space>invalid<seq2seq4repair_space>protocol.<seq2seq4repair_space>URI<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>protocol<seq2seq4repair_space>" ) + ( IRCNamespace . IRC_PROTOCOL ) ) ) ; } return new IRCID ( this , newURI ) ; } public String getScheme ( ) { } }

Fix:
public ID createInstance ( Object [ ] args ) throws IDCreateException {
Buggy code:
public abstract class State { private static State currentState = null ; protected int width ; protected int height ; protected Toolkit tk = Toolkit . getDefaultToolkit ( ) ; protected static int fading ; public static int fadingTesto ; protected static int timing1 ; protected static int timing2 ; protected static int timing3 ; protected static int timing4 ; protected static int timing5 ; protected static int timing6 ; protected static int timing7 ; protected static int timing8 ; public static void setState ( State state ) { State . fading = 255 ; State . currentState = state ; if ( ( State . getState ( ) ) instanceof ScenaIniziale ) { State . timing1 = 400 ; State . timing2 = 900 ; <START_BUG> State . timing3 = 1100 ; <END_BUG> State . timing4 = 1250 ; State . timing5 = 1300 ; State . timing6 = 2000 ; State . timing7 = 2150 ; State . timing8 = 3350 ; } } public static State getState ( ) { } public abstract void tick ( ) { } public abstract void render ( Graphics g ) { } public static Element getElementByName ( String elementName ) { } protected int correctFontSize ( int size ) { } }

Fix:
State . timing3 = 1050 ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class SarWithinEarTestCase { private static final String EAR_WITHOUT_APPLICATION_XML = "sar-within-ear-without-application-xml.ear" ; private static final String EAR_WITH_APPLICATION_XML = "sar-within-ear-with-application-xml.ear" ; private ModelControllerClient client ; @ Before public void init ( ) throws UnknownHostException { } @ After public void destroy ( ) throws IOException { } @ Deployment ( name = "ear-without-application-xml" , testable = false ) public static EnterpriseArchive getEarWithoutApplicationDotXml ( ) { } @ Deployment ( name = "ear-with-application-xml" , testable = false ) public static EnterpriseArchive getEarWithApplicationDotXml ( ) { } @ OperateOnDeployment ( "ear-without-application-xml" ) @ Test public void testSarWithinEarWithoutApplicationXml ( ) throws Exception { } @ OperateOnDeployment ( "ear-with-application-xml" ) @ Test public void testSarWithinEarWithApplicationXml ( ) throws Exception { } private void testSarWithinEar ( final String serviceName ) throws Exception { } private MBeanServerConnection getMBeanServerConnection ( ) throws IOException { <START_BUG> return JMXConnectorFactory . connect ( new JMXServiceURL ( "service:jmx:remote:////localhost:9999" ) ) . getMBeanServerConnection ( ) ; <END_BUG> } }

Fix:
return JMXConnectorFactory . connect ( new JMXServiceURL ( "service:jmx:remoting-jmx:////localhost:9999" ) ) . getMBeanServerConnection ( ) ;
Buggy code:
public class Taskdef extends Definer { protected void addDefinition ( String name , Class c ) throws BuildException { <START_BUG> project . addTaskDefinition ( name , c ) ; <END_BUG> } }

Fix:
getProject ( ) . addTaskDefinition ( name , c ) ;
Buggy code:
public class SpatiotemporalModeEvents extends SpatiotemporalMode { protected Double amplitudeMax ; public SpatiotemporalModeEvents ( ) { } public SpatiotemporalModeEvents ( final OcelotlCore ocelotlCore ) { } @ SuppressWarnings ( "unchecked" ) @ Override protected void computeProportions ( EventProducerNode node ) { } @ Override public MainEvent getMainEvent ( EventProducerNode epn , int start , int end ) { double max = 0.0 ; MainEvent maj = new MainEvent ( Void , max ) ; <START_BUG> for ( String event : getAllEvents ( ) ) { <END_BUG> double amp = 0.0 ; for ( int i = start ; i < end ; i ++ ) amp += proportions . get ( epn ) . get ( i ) . get ( event ) ; amp = ( amp // ( end - start ) ) // ( amplitudeMax ) ; if ( amp > max ) { maj = new MainEvent ( event , amp ) ; max = amp ; } } return maj ; } }

Fix:
for ( String event : getEvents ( ) ) {
Buggy code:
public abstract class SwingScoutBasicFieldComposite < T extends IBasicField < ? > > extends SwingScoutValueFieldComposite < T > { private boolean m_validateOnAnyKey ; private boolean m_udateDisplayTextOnModify ; @ Override protected void attachScout ( ) { } @ Override public JTextComponent getSwingField ( ) { } protected void addInputListenersForBasicField ( JTextComponent textField , Document doc ) { } protected void setValidateOnAnyKeyFromScout ( boolean b ) { } protected void setUpdateDisplayTextOnModifyFromScout ( boolean b ) { } @ Override protected void setDisplayTextFromScout ( String newText ) { } protected abstract void setSelectionFromSwing ( ) { } protected abstract boolean isSelectAllOnFocusInScout ( ) { } @ Override protected boolean handleSwingInputVerifier ( ) { final String text = getSwingField ( ) . getText ( ) ; <START_BUG> if ( ( CompareUtility . equals ( text , SwingScoutBasicFieldComposite . getScoutObject ( ) . getDisplayText ( ) ) ) && ( ( SwingScoutBasicFieldComposite . getScoutObject ( ) . getErrorStatus ( ) ) == null ) ) { <END_BUG> return true ; } Runnable t = new Runnable ( ) { @ Override public void run ( ) { getScoutObject ( ) . getUIFacade ( ) . setTextFromUI ( text , false ) ; } } ; JobEx job = SwingScoutBasicFieldComposite . getSwingEnvironment ( ) . invokeScoutLater ( t , 0 ) ; try { job . join ( 2345 ) ; } catch ( InterruptedException e ) { } SwingScoutBasicFieldComposite . getSwingEnvironment ( ) . dispatchImmediateSwingJobs ( ) ; if ( ! ( m_validateOnAnyKey ) ) { setSelectionFromSwing ( ) ; } return true ; } @ Override protected void handleSwingFocusGained ( ) { } @ Override protected void handleScoutPropertyChange ( String name , Object newValue ) { } private class P_SwingCaretListener implements CaretListener { @ Override public void caretUpdate ( CaretEvent e ) { } } private class P_SwingDocumentListener implements DocumentListener { @ Override public void changedUpdate ( DocumentEvent e ) { } @ Override public void insertUpdate ( DocumentEvent e ) { } @ Override public void removeUpdate ( DocumentEvent e ) { } private void setDisplayTextInScout ( ) { } private void sendVerifyToScoutAndIgnoreResponses ( ) { } } }

Fix:
if ( ( ( ! ( m_udateDisplayTextOnModify ) ) && ( CompareUtility . equals ( text , SwingScoutBasicFieldComposite . getScoutObject ( ) . getDisplayText ( ) ) ) ) && ( ( SwingScoutBasicFieldComposite . getScoutObject ( ) . getErrorStatus ( ) ) == null ) ) {
Buggy code:
public final class AllTests { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private AllTests ( ) { } private static void logprop ( String prop , boolean show ) { } private static void logprop ( String prop ) { } public static void main ( String [ ] args ) { } protected static void initializeLogging ( String [ ] args ) { } protected static void initializeManager ( String [ ] args ) { } public static TestSuite suite ( ) { } private static TestSuite suite ( String searchPaths ) { TestSuite suite = new TestSuite ( "All<seq2seq4repair_space>Tests" ) ; System . out . println ( ( ( "Scanning<seq2seq4repair_space>" + searchPaths ) + "<seq2seq4repair_space>for<seq2seq4repair_space>test<seq2seq4repair_space>cases" ) ) ; int tests = 0 ; int suites = 0 ; try { AllTests . log . info ( "ClassFinder(TestCase)" ) ; List < String > classList = ClassFinder . findClassesThatExtend ( JOrphanUtils . split ( searchPaths , "," ) , new Class [ ] { TestCase . class } , true ) ; int sz = classList . size ( ) ; AllTests . log . info ( ( ( "ClassFinder(TestCase)<seq2seq4repair_space>found:<seq2seq4repair_space>" + sz ) + "<seq2seq4repair_space>TestCase<seq2seq4repair_space>classes" ) ) ; System . out . println ( ( ( "ClassFinder<seq2seq4repair_space>found:<seq2seq4repair_space>" + sz ) + "<seq2seq4repair_space>TestCase<seq2seq4repair_space>classes" ) ) ; for ( String name : classList ) { try { Class < ? > clazz = Class . forName ( name ) ; Test t = null ; try { Method m = clazz . getMethod ( "suite" , new Class [ 0 ] ) ; t = ( ( Test ) ( m . invoke ( clazz , ( ( Object [ ] ) ( null ) ) ) ) ) ; suites ++ ; } catch ( NoSuchMethodException e ) { } if ( t == null ) { t = new TestSuite ( clazz ) ; } tests ++ ; suite . addTest ( t ) ; } catch ( Exception ex ) { <START_BUG> System . out . println ( ( ( ( "Error<seq2seq4repair_space>adding<seq2seq4repair_space>test<seq2seq4repair_space>for<seq2seq4repair_space>class<seq2seq4repair_space>" + name ) + "<seq2seq4repair_space>" ) + ( ex . toString ( ) ) ) ) ; <END_BUG> AllTests . log . error ( "error<seq2seq4repair_space>adding<seq2seq4repair_space>test<seq2seq4repair_space>:" , ex ) ; } } } catch ( IOException e ) { AllTests . log . error ( "" , e ) ; } System . out . println ( ( ( ( ( "Created:<seq2seq4repair_space>" + tests ) + "<seq2seq4repair_space>tests<seq2seq4repair_space>including<seq2seq4repair_space>" ) + suites ) + "<seq2seq4repair_space>suites" ) ) ; return suite ; } }

Fix:
System . out . println ( ( ( ( "ERROR:<seq2seq4repair_space>(see<seq2seq4repair_space>logfile)<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>add<seq2seq4repair_space>test<seq2seq4repair_space>for<seq2seq4repair_space>class<seq2seq4repair_space>" + name ) + "<seq2seq4repair_space>" ) + ( ex . toString ( ) ) ) ) ;
Buggy code:
public class RunGame { private static Logger log = Utils . getLogger ( ) ; private Game game ; private String brokers = "" ; private TournamentProperties properties = TournamentProperties . getProperties ( ) ; private Session session ; private static boolean machinesAvailable ; public RunGame ( Game game ) { } private void run ( ) { } private boolean checkBootstrap ( ) { } private boolean checkBrokers ( ) { } private boolean checkMachineAvailable ( ) throws Exception { } private boolean startJob ( ) throws Exception { } public static void startRunnableGames ( List < Round > runningRounds ) { if ( ( runningRounds == null ) || ( runningRounds . isEmpty ( ) ) ) { RunGame . log . info ( "No<seq2seq4repair_space>rounds<seq2seq4repair_space>available<seq2seq4repair_space>for<seq2seq4repair_space>runnable<seq2seq4repair_space>games" ) ; return ; } RunGame . log . info ( "Looking<seq2seq4repair_space>for<seq2seq4repair_space>Runnable<seq2seq4repair_space>Games" ) ; List < Game > games = new ArrayList < Game > ( ) ; Session session = HibernateUtil . getSession ( ) ; Transaction transaction = session . beginTransaction ( ) ; try { games = GamesScheduler . getStartableGames ( session , runningRounds ) ; <START_BUG> RunGame . log . info ( "CheckForSims<seq2seq4repair_space>for<seq2seq4repair_space>startable<seq2seq4repair_space>games" ) ; <END_BUG> transaction . commit ( ) ; } catch ( Exception e ) { transaction . rollback ( ) ; e . printStackTrace ( ) ; } session . close ( ) ; RunGame . log . info ( String . format ( "Found<seq2seq4repair_space>%s<seq2seq4repair_space>game(s)<seq2seq4repair_space>ready<seq2seq4repair_space>to<seq2seq4repair_space>start" , games . size ( ) ) ) ; RunGame . machinesAvailable = true ; for ( Game game : games ) { RunGame . log . info ( String . format ( "Game<seq2seq4repair_space>%s<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>started<seq2seq4repair_space>..." , game . getGameId ( ) ) ) ; new RunGame ( game ) . run ( ) ; if ( ! ( RunGame . machinesAvailable ) ) { RunGame . log . info ( "No<seq2seq4repair_space>free<seq2seq4repair_space>machines,<seq2seq4repair_space>stop<seq2seq4repair_space>looking<seq2seq4repair_space>for<seq2seq4repair_space>Startable<seq2seq4repair_space>Games" ) ; break ; } } } }

Fix:
RunGame . log . info ( "Check<seq2seq4repair_space>for<seq2seq4repair_space>startable<seq2seq4repair_space>games" ) ;
Buggy code:
@ SuppressWarnings ( "FieldCanBeLocal" ) public class Main { public static AtomicBoolean jfxToolKitInit ; private static final long INIT_TIME_LIMIT = 10000 ; private final OutputManager outputManager ; private final ResourceManager resourceManager ; private final EventDistributor eventDistributor ; private final LocalEventManager localEventManager ; private final ActivatorManager activatorManager ; private final AddOnManager addOnManager ; private final FileManager fileManager ; private final FilePublisher filePublisher ; private final IzouLogger izouLogger ; private final ThreadPoolManager threadPoolManager ; private final EventPropertiesManager eventPropertiesManager ; private final Logger fileLogger = LogManager . getLogger ( this . getClass ( ) ) ; private Main ( boolean javaFX , boolean debug ) { } public Main ( List < AddOn > addOns ) { } public Main ( List < AddOn > addOns , boolean debug ) { } public Main ( List < AddOn > addOns , boolean javaFX , boolean debug ) { } public static void main ( String [ ] args ) { <START_BUG> if ( ( args [ 0 ] ) == null ) { <END_BUG> @ SuppressWarnings ( "UnusedAssignment" ) Main main = new Main ( Boolean . getBoolean ( args [ 0 ] ) , false ) ; } else { @ SuppressWarnings ( "UnusedAssignment" ) Main main = new Main ( false , false ) ; } } public OutputManager getOutputManager ( ) { } public LocalEventManager getLocalEventManager ( ) { } public ActivatorManager getActivatorManager ( ) { } public AddOnManager getAddOnManager ( ) { } public ResourceManager getResourceManager ( ) { } public EventDistributor getEventDistributor ( ) { } public EventPropertiesManager getEventPropertiesManager ( ) { } public ThreadPoolManager getThreadPoolManager ( ) { } public FileManager getFileManager ( ) { } public FilePublisher getFilePublisher ( ) { } public IzouLogger getIzouLogger ( ) { } }

Fix:
if ( ( args . length ) > 0 ) {
Buggy code:
public class PersistenceUnitXmlParserTestCase { @ Test public void testVersion ( ) throws Exception { <START_BUG> final String persistence_xml = "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"UTF-8\"?><seq2seq4repair_space>" + ( ( ( ( ( ( ( ( "<persistence<seq2seq4repair_space>xmlns=\"http:////java.sun.com//xml//ns//persistence\"<seq2seq4repair_space>version=\"1.0\">" + "<seq2seq4repair_space><persistence-unit<seq2seq4repair_space>name=\"mypc\">" ) + "<seq2seq4repair_space><description>Persistence<seq2seq4repair_space>Unit." ) + "<seq2seq4repair_space><//description>" ) + "<seq2seq4repair_space><jta-data-source>java://H2DS<//jta-data-source>" ) + "<seq2seq4repair_space><class>org.jboss.as.testsuite.integration.jpa.epcpropagation.MyEntity<//class>" ) + "<seq2seq4repair_space><properties><seq2seq4repair_space><property<seq2seq4repair_space>name=\"hibernate.hbm2ddl.auto\"<seq2seq4repair_space>value=\"create-drop\"//><//properties>" ) + "<seq2seq4repair_space><//persistence-unit>" ) + "<//persistence>" ) ; <END_BUG> XMLStreamReader reader = XMLInputFactory . newInstance ( ) . createXMLStreamReader ( new StringReader ( persistence_xml ) ) ; assertEquals ( "http:////woodstox.codehaus.org" , reader . getClass ( ) . getPackage ( ) . getImplementationVendor ( ) ) ; PersistenceUnitMetadataHolder metadataHolder = PersistenceUnitXmlParser . parse ( reader ) ; PersistenceUnitMetadata metadata = metadataHolder . getPersistenceUnits ( ) . get ( 0 ) ; String version = metadata . getPersistenceXMLSchemaVersion ( ) ; assertEquals ( "1.0" , version ) ; } }

Fix:
final String persistence_xml = "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"UTF-8\"?><seq2seq4repair_space>" + ( ( ( ( ( ( ( ( "<persistence<seq2seq4repair_space>xmlns=\"http:////java.sun.com//xml//ns//persistence\"<seq2seq4repair_space>version=\"1.0\">" + "<seq2seq4repair_space><persistence-unit<seq2seq4repair_space>name=\"mypc\">" ) + "<seq2seq4repair_space><description>Persistence<seq2seq4repair_space>Unit." ) + "<seq2seq4repair_space><//description>" ) + "<seq2seq4repair_space><jta-data-source>java://H2DS<//jta-data-source>" ) + "<seq2seq4repair_space><class>org.jboss.as.test.integration.jpa.epcpropagation.MyEntity<//class>" ) + "<seq2seq4repair_space><properties><seq2seq4repair_space><property<seq2seq4repair_space>name=\"hibernate.hbm2ddl.auto\"<seq2seq4repair_space>value=\"create-drop\"//><//properties>" ) + "<seq2seq4repair_space><//persistence-unit>" ) + "<//persistence>" ) ;
Buggy code:
public abstract class AbstractExecutor implements Executor { protected AgglomerativeClustering algorithm ; @ Override public AgglomerativeClustering getAlgorithm ( ) { } @ Override public void setAlgorithm ( AgglomerativeClustering algorithm ) { } protected CutoffStrategy getCutoffStrategy ( Props params ) { CutoffStrategy strategy ; String cutoffAlg = params . get ( CUTOFF_STRATEGY , "hill-climb<seq2seq4repair_space>inc" ) ; <START_BUG> if ( ! ( cutoffAlg . equals ( "--<seq2seq4repair_space>naive<seq2seq4repair_space>--" ) ) ) { <END_BUG> String evalAlg = params . get ( CUTOFF_SCORE , "AIC<seq2seq4repair_space>score" ) ; InternalEvaluator eval = InternalEvaluatorFactory . getInstance ( ) . getProvider ( evalAlg ) ; strategy = CutoffStrategyFactory . getInstance ( ) . getDefault ( ) ; strategy . setEvaluator ( eval ) ; } else { strategy = CutoffStrategyFactory . getInstance ( ) . getProvider ( cutoffAlg ) ; } return strategy ; } }

Fix:
if ( cutoffAlg . equals ( "--<seq2seq4repair_space>naive<seq2seq4repair_space>--" ) ) {
Buggy code:
public final class PageView extends Panel { private static final long serialVersionUID = 1L ; public PageView ( final String id , final Page page ) { } private List getComponentData ( final Page page ) { final List data = new ArrayList ( ) ; page . visitChildren ( new IVisitor ( ) { public Object component ( final Component component ) { if ( ! ( component . getPath ( ) . startsWith ( PageView . this . getPath ( ) ) ) ) { final PageView . ComponentData object = new PageView . ComponentData ( ) ; String name = component . getClass ( ) . getName ( ) ; if ( ( name . indexOf ( "$" ) ) > 0 ) { name = component . getClass ( ) . getSuperclass ( ) . getName ( ) ; } <START_BUG> name = Strings . lastPathComponent ( name , ':' ) ; <END_BUG> object . path = component . getPageRelativePath ( ) ; object . type = name ; try { object . value = component . getModelObjectAsString ( ) ; } catch ( Exception e ) { object . value = e . getMessage ( ) ; } data . add ( object ) ; } return IVisitor . CONTINUE_TRAVERSAL ; } } ) ; return data ; } private class ComponentData implements Serializable { private static final long serialVersionUID = 1L ; public String path ; public String type ; public String value ; } }

Fix:
name = Strings . lastPathComponent ( name , PATH_SEPARATOR ) ;
Buggy code:
public class StockManagement implements IStockLogic { static IInStock iInStock ; static IOrderStock iOrderStock ; static IStockRoomInfo stockRoom ; static IRobotCoordinator robotCoordinator ; static int tasks = 0 ; static ArrayList < Order > delayedOrderQueue = new ArrayList < Order > ( ) ; static final int CART_CAPACITY = Cart . MAX_CAPACITY ; static final ExecutorService es = Executors . newCachedThreadPool ( ) ; private static Map < ProductType , Integer > lowerBound ; private static Map < ProductType , Integer > upperBound ; private static HashMap < ProductType , Integer > pendingGoods ; public static boolean receivedOrderDetected ( Order o ) { } private static void delayReceivedOrder ( Order o ) { } private static SentOrder planSentOrder ( ProductType goodType , int amount ) { } private static ReceivedOrder planReceivedOrder ( Order order ) { } private static void replenishStock ( ReceivedOrder rO ) { ProductType [ ] prodArray = new ProductType [ rO . goodTypes . length ] ; for ( int i = 0 ; i < ( prodArray . length ) ; i ++ ) { <START_BUG> int virtualAmount = Rack . getAmount ( prodArray [ i ] ) ; <END_BUG> int goodAmountSum = virtualAmount + ( StockManagement . pendingGoods . get ( prodArray [ i ] ) ) ; if ( goodAmountSum > ( StockManagement . lowerBound . get ( prodArray [ i ] ) ) ) { continue ; } else { int orderNumber = ( ( StockManagement . upperBound . get ( prodArray [ i ] ) ) - goodAmountSum ) // ( StockManagement . CART_CAPACITY ) ; for ( int c = 0 ; c < orderNumber ; c ++ ) { StockManagement . iOrderStock . orderProduct ( prodArray [ i ] , StockManagement . CART_CAPACITY ) ; SentOrder sO = StockManagement . planSentOrder ( prodArray [ i ] , StockManagement . CART_CAPACITY ) ; StockManagement . robotCoordinator . assignOrder ( sO ) ; } } } } @ Override public void receivedOrderFinished ( ReceivedOrder rO ) { } @ Override public void sentOrderFinished ( SentOrder sO ) { } public void initializeRacks ( ) { } }

Fix:
int virtualAmount = Rack . getGesamtAmount ( prodArray [ i ] ) ;
Buggy code:
public class DNSSECVerifier implements Verifier { private Map trustedKeys ; public DNSSECVerifier ( ) { } public synchronized void addTrustedKey ( DNSKEYRecord key ) { } public void addTrustedKey ( Name name , int alg , PublicKey key ) { } private PublicKey findMatchingKey ( Iterator it , int algorithm , int footprint ) { } private synchronized PublicKey findTrustedKey ( Name name , int algorithm , int footprint ) { } private PublicKey findCachedKey ( Cache cache , Name name , int algorithm , int footprint ) { } private PublicKey findKey ( Cache cache , Name name , int algorithm , int footprint ) { } private int verifySIG ( RRset set , RRSIGRecord sigrec , Cache cache ) { PublicKey key = findKey ( cache , sigrec . getSigner ( ) , sigrec . getAlgorithm ( ) , sigrec . getFootprint ( ) ) ; if ( key == null ) return DNSSEC . Insecure ; Date now = new Date ( ) ; if ( ( ( now . compareTo ( sigrec . getExpire ( ) ) ) > 0 ) || ( ( now . compareTo ( sigrec . getTimeSigned ( ) ) ) < 0 ) ) { System . err . println ( "Outside<seq2seq4repair_space>of<seq2seq4repair_space>validity<seq2seq4repair_space>period" ) ; return DNSSEC . Failed ; } byte [ ] data = DNSSEC . digestRRset ( sigrec , set ) ; byte [ ] sig ; String algString ; switch ( sigrec . getAlgorithm ( ) ) { case DNSSEC . RSAMD5 : sig = sigrec . getSignature ( ) ; algString = "MD5withRSA" ; break ; case DNSSEC . DSA : <START_BUG> sig = DSASignature . create ( sigrec . getSignature ( ) ) ; <END_BUG> algString = "SHA1withDSA" ; break ; case DNSSEC . RSASHA1 : sig = sigrec . getSignature ( ) ; algString = "SHA1withRSA" ; break ; default : return DNSSEC . Failed ; } try { Signature s = Signature . getInstance ( algString ) ; s . initVerify ( key ) ; s . update ( data ) ; return s . verify ( sig ) ? DNSSEC . Secure : DNSSEC . Failed ; } catch ( GeneralSecurityException e ) { if ( Options . check ( "verboseexceptions" ) ) System . err . println ( ( "Signing<seq2seq4repair_space>data:<seq2seq4repair_space>" + e ) ) ; return DNSSEC . Failed ; } } public int verify ( RRset set , Cache cache ) { } }

Fix:
sig = DSASignature . fromDNS ( sigrec . getSignature ( ) ) ;
Buggy code:
public class ComponentObjectFactory extends ServiceReferenceObjectFactory { public static Reference createReference ( final ServiceName componentServiceName , final Class < ? > viewClass ) { } @ SuppressWarnings ( "unchecked" ) public Object getObjectInstance ( Object serviceValue , Object obj , Name name , Context nameCtx , Hashtable < ? , ? > environment ) throws Exception { final Reference reference = asReference ( obj ) ; final ClassRefAddr viewClassAddr = ( ( ClassRefAddr ) ( reference . get ( "view-class" ) ) ) ; if ( viewClassAddr == null ) { throw new NamingException ( "Invalid<seq2seq4repair_space>context<seq2seq4repair_space>reference.<seq2seq4repair_space>No<seq2seq4repair_space>'view-class'<seq2seq4repair_space>reference." ) ; } final Class < ? > viewClass = ( ( Class < ? > ) ( viewClassAddr . getContent ( ) ) ) ; final Component component = ( ( Component ) ( serviceValue ) ) ; <START_BUG> return component . getInstance ( ) . createLocalClientProxy ( viewClass ) ; <END_BUG> } }

Fix:
return component . createLocalProxy ( viewClass ) ;
Buggy code:
public final class LocalizedImageResource implements IClusterable , IResourceListener { private static final long serialVersionUID = 1L ; private Boolean resourceKind ; private final Component component ; private Resource resource ; private ResourceReference resourceReference ; private ValueMap resourceParameters ; private Locale locale ; private String style ; private static final class ImageValueParser extends MetaPatternParser { private static final Group factoryName = new Group ( MetaPattern . VARIABLE_NAME ) ; private static final Group imageReferenceName = new Group ( MetaPattern . VARIABLE_NAME ) ; private static final Group specification = new Group ( MetaPattern . ANYTHING_NON_EMPTY ) ; private static final MetaPattern pattern = new MetaPattern ( new MetaPattern [ ] { LocalizedImageResource . ImageValueParser . factoryName , MetaPattern . COLON , new org . apache . wicket . util . parse . metapattern . OptionalMetaPattern ( new MetaPattern [ ] { LocalizedImageResource . ImageValueParser . imageReferenceName } ) , MetaPattern . COLON , LocalizedImageResource . ImageValueParser . specification } ) ; private ImageValueParser ( final CharSequence input ) { } private String getFactoryName ( ) { } private String getImageReferenceName ( ) { } private String getSpecification ( ) { } } public LocalizedImageResource ( final Component component ) { } public final void bind ( ) { } public final void onResourceRequested ( ) { } public final void setResource ( final Resource resource ) { } public final void setResourceReference ( final ResourceReference resourceReference ) { } public final boolean isStateless ( ) { <START_BUG> return ( resource ) == null ; <END_BUG> } public final void setResourceReference ( final ResourceReference resourceReference , final ValueMap resourceParameters ) { } public final void setSrcAttribute ( final ComponentTag tag ) { } private IResourceFactory getResourceFactory ( final Application application , final String factoryName ) { } private void loadStaticImage ( final String path ) { } private void newImage ( final CharSequence value ) { } public final Resource getResource ( ) { } public final ResourceReference getResourceReference ( ) { } }

Fix:
return ( resourceReference ) != null ;
Buggy code:
public class TransactionConfigurationBuilder extends AbstractConfigurationChildBuilder < TransactionConfiguration > { private boolean autoCommit = true ; private long cacheStopTimeout = TimeUnit . SECONDS . toMillis ( 30 ) ; private boolean eagerLockingSingleNode = false ; private LockingMode lockingMode = LockingMode . OPTIMISTIC ; private boolean syncCommitPhase = true ; private boolean syncRollbackPhase = false ; private TransactionManagerLookup transactionManagerLookup ; private TransactionSynchronizationRegistryLookup transactionSynchronizationRegistryLookup ; private TransactionMode transactionMode = TransactionMode . NON_TRANSACTIONAL ; private boolean useEagerLocking = false ; private boolean useSynchronization = false ; private final RecoveryConfigurationBuilder recovery ; private boolean use1PcForAutoCommitTransactions = false ; TransactionConfigurationBuilder ( ConfigurationBuilder builder ) { } public TransactionConfigurationBuilder autoCommit ( boolean b ) { } @ Deprecated public TransactionConfigurationBuilder cacheStopTimeout ( int i ) { } public TransactionConfigurationBuilder cacheStopTimeout ( long l ) { } public TransactionConfigurationBuilder eagerLockingSingleNode ( boolean b ) { } public TransactionConfigurationBuilder lockingMode ( LockingMode lockingMode ) { } public TransactionConfigurationBuilder syncCommitPhase ( boolean b ) { } public TransactionConfigurationBuilder syncRollbackPhase ( boolean b ) { } public TransactionConfigurationBuilder transactionManagerLookup ( TransactionManagerLookup tml ) { } public TransactionConfigurationBuilder transactionSyncrontizationRegisteryLookup ( TransactionSynchronizationRegistryLookup lookup ) { } public TransactionConfigurationBuilder transactionMode ( TransactionMode transactionMode ) { } public TransactionConfigurationBuilder useEagerLocking ( boolean b ) { } public TransactionConfigurationBuilder useSynchronization ( boolean b ) { } public RecoveryConfigurationBuilder recovery ( ) { } public TransactionConfigurationBuilder use1PcForAutoCommitTransactions ( boolean b ) { } @ Override void validate ( ) { } @ Override TransactionConfiguration create ( ) { <START_BUG> if ( useEagerLocking = true ) { <END_BUG> lockingMode = LockingMode . PESSIMISTIC ; } return new TransactionConfiguration ( autoCommit , cacheStopTimeout , eagerLockingSingleNode , lockingMode , syncCommitPhase , syncRollbackPhase , transactionManagerLookup , transactionSynchronizationRegistryLookup , transactionMode , useEagerLocking , useSynchronization , recovery . create ( ) ) ; } }

Fix:
if ( useEagerLocking ) {
Buggy code:
public class TestCatalanAnalyzer extends BaseTokenStreamTestCase { public void testResourcesAvailable ( ) { } public void testBasics ( ) throws IOException { } public void testContractions ( ) throws IOException { } public void testExclude ( ) throws IOException { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , new CatalanAnalyzer ( TEST_VERSION_CURRENT ) , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } }

Fix:
checkRandomData ( random ( ) , new CatalanAnalyzer ( TEST_VERSION_CURRENT ) , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class TransformedSortedSet < E > extends TransformedSet < E > implements SortedSet < E > { private static final long serialVersionUID = - 1675486811351124386L ; public static < E > TransformedSortedSet < E > transformingSortedSet ( final SortedSet < E > set , final Transformer < ? super E , ? extends E > transformer ) { } public static < E > TransformedSortedSet < E > transformedSortedSet ( final SortedSet < E > set , final Transformer < ? super E , ? extends E > transformer ) { } protected TransformedSortedSet ( final SortedSet < E > set , final Transformer < ? super E , ? extends E > transformer ) { } protected SortedSet < E > getSortedSet ( ) { <START_BUG> return ( ( SortedSet < E > ) ( collection ) ) ; <END_BUG> } public E first ( ) { } public E last ( ) { } public Comparator < ? super E > comparator ( ) { } public SortedSet < E > subSet ( final E fromElement , final E toElement ) { } public SortedSet < E > headSet ( final E toElement ) { } public SortedSet < E > tailSet ( final E fromElement ) { } }

Fix:
return ( ( SortedSet < E > ) ( TransformedSortedSet . decorated ( ) ) ) ;
Buggy code:
class ServerBreakpointManager implements IBreakpointListener { private class SetBreakpointHelper { final VmIsolate isolate ; final DartBreakpoint breakpoint ; final int line ; public SetBreakpointHelper ( VmIsolate isolate , DartBreakpoint breakpoint , int line ) { } void setBreakpoint ( String url ) throws IOException { } } private final ServerDebugTarget target ; private final VmConnection connection ; private VmIsolate mainIsolate ; private List < IBreakpoint > ignoredBreakpoints = new ArrayList < IBreakpoint > ( ) ; Map < IBreakpoint , List < VmBreakpoint > > createdBreakpoints = new HashMap < IBreakpoint , List < VmBreakpoint > > ( ) ; List < VmIsolate > liveIsolates = new ArrayList < VmIsolate > ( ) ; public ServerBreakpointManager ( ServerDebugTarget target ) { } @ Override public void breakpointAdded ( IBreakpoint breakpoint ) { } @ Override public void breakpointChanged ( IBreakpoint breakpoint , IMarkerDelta delta ) { } @ Override public void breakpointRemoved ( IBreakpoint breakpoint , IMarkerDelta delta ) { } public void connect ( VmIsolate mainIsolate ) { } public void dispose ( ) { } public void handleIsolateCreated ( VmIsolate isolate ) { } public void handleIsolateShutdown ( VmIsolate isolate ) { } public boolean hasBreakpointAtLine ( VmLocation location ) { } public void setPauseOnExceptionForLiveIsolates ( ) { } public void setPauseOnExceptionSync ( VmIsolate isolate ) { } protected void addCreatedBreakpoint ( DartBreakpoint breakpoint , VmBreakpoint result ) { } protected DartBreakpoint getDartBreakpointFor ( VmBreakpoint bp ) { } protected void handleBreakpointResolved ( VmIsolate isolate , VmBreakpoint bp ) { } List < DartBreakpoint > getSupportedBreakpoints ( ) { } private void addBreakpoints ( List < DartBreakpoint > breakpoints ) { } private void addBreakpoints ( VmIsolate isolate , final List < DartBreakpoint > breakpoints , boolean pause ) { } private void connectToIsolate ( VmIsolate isolate ) { try { VmInterruptResult interruptResult = connection . interruptConditionally ( isolate ) ; <START_BUG> connection . enableAllSteppingSync ( isolate ) ; <END_BUG> addBreakpoints ( isolate , getSupportedBreakpoints ( ) , false ) ; interruptResult . resume ( ) ; } catch ( IOException exception ) { DartDebugCorePlugin . logError ( exception ) ; } } private void disconnectFromIsolate ( VmIsolate isolate ) { } @ SuppressWarnings ( "unused" ) private String getAbsoluteUrlForFilePath ( String filePath ) { } private String getPackagesUrlForFilePath ( String filePath ) { } private BreakOnExceptionsType getPauseType ( ) { } private String getProjectRelativePath ( IFile file ) { } private boolean supportsBreakpoint ( IBreakpoint breakpoint ) { } }

Fix:
connection . enableAllStepping ( isolate ) ;
Buggy code:
public class LocalPageLiveDao implements LocalPageDao { private boolean followRedirects = true ; public LocalPageLiveDao ( ) throws DaoException { } public void clear ( ) throws DaoException { } public void beginLoad ( ) throws DaoException { } public void endLoad ( ) throws DaoException { } public void save ( LocalPage a ) throws DaoException { } public int getCount ( DaoFilter a ) throws DaoException { } public Iterable < LocalPage > get ( DaoFilter a ) throws DaoException { } @ Override public LocalPage getByTitle ( Language lang , String title ) throws DaoException { } public LanguageSet getLoadedLanguages ( ) throws DaoException { } public void setFollowRedirects ( boolean followRedirects ) throws DaoException { } public LocalPage getByTitle ( Title title , NameSpace ns ) throws DaoException { } public LocalPage getById ( Language language , int pageId ) throws DaoException { } @ Override public LocalPage getById ( LocalId localId ) throws DaoException { } public Map < Integer , LocalPage > getByIds ( Language language , Collection < Integer > pageIds ) throws DaoException { } public Map < Title , LocalPage > getByTitles ( Language language , Collection < Title > titles , NameSpace ns ) throws DaoException { } public int getIdByTitle ( String title , Language language , NameSpace nameSpace ) throws DaoException { <START_BUG> LiveAPIQuery . LiveAPIQueryBuilder builder = new LiveAPIQuery . LiveAPIQueryBuilder ( "INFO" , language ) . addTitle ( title ) . setRedirects ( followRedirects ) ; <END_BUG> QueryReply info = builder . build ( ) . getValuesFromQueryResult ( ) . get ( 0 ) ; return info . getId ( ) ; } public int getIdByTitle ( Title title ) throws DaoException { } public TIntList getAllPageIdsInNamespace ( Language lang , NameSpace ns ) throws DaoException { } public TIntIntMap getAllPageIdNamespaceMappings ( Language lang ) throws DaoException { } @ Override public LocalPage getByTitle ( Language language , NameSpace ns , String title ) throws DaoException { } @ Override public Set < LocalId > getIds ( DaoFilter daoFilter ) throws DaoException { } public static class Provider extends org . wikibrain . conf . Provider < LocalPageDao > { public Provider ( Configurator configurator , Configuration config ) throws ConfigurationException { } @ Override public Class getType ( ) { } @ Override public String getPath ( ) { } @ Override public LocalPageDao get ( String name , Config config , Map < String , String > runtimeParams ) throws ConfigurationException { } } }

Fix:
LiveAPIQuery . LiveAPIQueryBuilder builder = new LiveAPIQuery . LiveAPIQueryBuilder ( "INFO" , language ) . addTitle ( title . replace ( "<seq2seq4repair_space>" , "_" ) ) . setRedirects ( followRedirects ) ;
Buggy code:
public class ParagraphMenu extends IMenu implements ActionListener , ContainerListener , Observer { private static final Logger LOG = Logger . getLogger ( "org.columba.mail.gui.composer.html.action" ) ; public static final HTML . Tag [ ] STYLE_TAGS = new HTML . Tag [ ] { HTML . Tag . P , HTML . Tag . PRE , HTML . Tag . H1 , HTML . Tag . H2 , HTML . Tag . H3 , HTML . Tag . ADDRESS } ; protected ButtonGroup group ; public ParagraphMenu ( FrameMediator controller ) { } protected void initMenu ( ) { } public void update ( Observable arg0 , Object arg1 ) { } private void selectMenuItem ( HTML . Tag tag ) { } public void actionPerformed ( ActionEvent e ) { } public void componentAdded ( ContainerEvent e ) { ParagraphMenu . LOG . info ( "Re-registering<seq2seq4repair_space>as<seq2seq4repair_space>observer<seq2seq4repair_space>on<seq2seq4repair_space>editor<seq2seq4repair_space>controller" ) ; <START_BUG> ( ( org . columba . mail . gui . composer . ComposerController ) ( getController ( ) ) ) . getEditorController ( ) . addObserver ( this ) ; <END_BUG> } public void componentRemoved ( ContainerEvent e ) { } protected static class ParagraphFormatMenuItem extends JRadioButtonMenuItem { protected HTML . Tag tag ; public ParagraphFormatMenuItem ( HTML . Tag tag ) { } public HTML . Tag getAssociatedTag ( ) { } } }

Fix:
( ( org . columba . mail . gui . composer . ComposerController ) ( getFrameMediator ( ) ) ) . getEditorController ( ) . addObserver ( this ) ;
Buggy code:
public class GameScreen extends ScreenAdapter { private final TaxeGame game ; private Stage stage ; public static Texture mapTexture ; public static String timePassingString ; private Game gameLogic ; private Skin skin ; private Map map ; private float timeAnimated = 0 ; public static final int ANIMATION_TIME = 2 ; private Tooltip tooltip ; private Context context ; private StationController stationController ; private TopBarController topBarController ; private ResourceController resourceController ; public static GoalController goalController ; private RouteController routeController ; public GameScreen ( TaxeGame game ) { } @ Override public void render ( float delta ) { <START_BUG> gl . glClearColor ( 0.1F , 0.1F , 0.1F , 1 ) ; <END_BUG> gl . glClear ( GL_COLOR_BUFFER_BIT ) ; game . batch . begin ( ) ; game . batch . draw ( GameScreen . mapTexture , ( ( graphics . getWidth ( ) ) - ( GameScreen . mapTexture . getWidth ( ) ) ) , 0 ) ; game . batch . end ( ) ; stationController . renderConnections ( map . getConnections ( ) , GRAY ) ; if ( ( gameLogic . getState ( ) ) == ( GameState . ROUTING ) ) { routeController . drawRoute ( YELLOW ) ; } if ( ( gameLogic . getState ( ) ) == ( GameState . ANIMATING ) ) { timeAnimated += delta ; if ( ( timeAnimated ) >= ( GameScreen . ANIMATION_TIME ) ) { gameLogic . setState ( NORMAL ) ; timeAnimated = 0 ; } } if ( ( ( gameLogic . getState ( ) ) == ( GameState . NORMAL ) ) || ( ( gameLogic . getState ( ) ) == ( GameState . PLACING ) ) ) { stationController . displayNumberOfTrainsAtStations ( ) ; } stage . act ( graphics . getDeltaTime ( ) ) ; stage . draw ( ) ; game . batch . begin ( ) ; game . fontSmall . draw ( game . batch , ( ( ( "Turn<seq2seq4repair_space>" + ( ( gameLogic . getPlayerManager ( ) . getTurnNumber ( ) ) + 1 ) ) + "//" ) + ( gameLogic . TOTAL_TURNS ) ) , ( ( ( float ) ( TaxeGame . WIDTH ) ) - 90.0F ) , 20.0F ) ; game . batch . end ( ) ; resourceController . drawHeaderText ( ) ; } @ Override public void show ( ) { } @ Override public void dispose ( ) { } No newline ; at end ; of file ; }

Fix:
gl . glClearColor ( 0.2F , 0.2F , 0.2F , 1 ) ;
Buggy code:
@ RunWith ( Arquillian . class ) public class TimerServiceInterceptorOrderTestCase { @ Deployment public static Archive < ? > deploy ( ) { } @ Test public void testArountTimeoutInterceptorOrder ( ) throws NamingException { InterceptorOrder . reset ( ) ; InitialContext ctx = new InitialContext ( ) ; BeanChild bean = ( ( BeanChild ) ( ctx . lookup ( ( "java:module//" + ( BeanChild . class . getSimpleName ( ) ) ) ) ) ) ; bean . createTimer ( ) ; Assert . assertTrue ( BeanParent . awaitTimerCall ( ) ) ; <START_BUG> InterceptorOrder . assertEquals ( InterceptorParent . class , InterceptorChild . class , MethodInterceptorParent . class , MethodInterceptorChild . class , BeanParent . class , BeanChild . class , CDIInterceptor . class ) ; <END_BUG> } }

Fix:
InterceptorOrder . assertEquals ( InterceptorParent . class , InterceptorChild . class , MethodInterceptorParent . class , MethodInterceptorChild . class , CDIInterceptor . class , BeanParent . class , BeanChild . class ) ;
Buggy code:
public abstract class AbstractHostContainerSelector extends AbstractContainerSelector { private static final String NODEFAULT = "<<nodefault>>" ; protected String [ ] defaultConfigTypes ; public AbstractHostContainerSelector ( String [ ] defaultConfigTypes ) { } protected Collection findExistingHostContainers ( ServiceReference serviceReference , String [ ] serviceExportedInterfaces , String [ ] serviceExportedConfigs , String [ ] serviceIntents ) { } protected boolean matchHostContainerToConnectTarget ( ServiceReference serviceReference , IContainer container ) { <START_BUG> Object target = serviceReference . getProperty ( EXPORTED_CONTAINER_CONNECT_TARGET ) ; <END_BUG> if ( target == null ) return true ; ID connectedID = container . getConnectedID ( ) ; if ( connectedID == null ) { try { connectHostContainer ( serviceReference , container , target ) ; } catch ( Exception e ) { logException ( ( ( ( "doConnectContainer<seq2seq4repair_space>containerID=" + ( container . getID ( ) ) ) + "<seq2seq4repair_space>target=" ) + target ) , e ) ; return false ; } return true ; } else { ID targetID = createTargetID ( container , target ) ; if ( connectedID . equals ( targetID ) ) return true ; } return false ; } protected boolean matchExistingHostContainer ( ServiceReference serviceReference , IContainer container , IRemoteServiceContainerAdapter adapter , ContainerTypeDescription description , String [ ] requiredConfigTypes , String [ ] requiredServiceIntents ) { } protected boolean matchHostContainerID ( ServiceReference serviceReference , IContainer container ) { } protected boolean matchHostSupportedConfigTypes ( String [ ] requiredConfigTypes , ContainerTypeDescription containerTypeDescription ) { } protected Collection createAndConfigureHostContainers ( ServiceReference serviceReference , String [ ] serviceExportedInterfaces , String [ ] requiredConfigs , String [ ] requiredIntents ) { } private void createDefaultRSContainers ( ServiceReference serviceReference , ContainerTypeDescription [ ] descriptions , List results ) { } protected ContainerTypeDescription [ ] getContainerTypeDescriptionsForDefaultConfigTypes ( ContainerTypeDescription [ ] descriptions ) { } protected boolean matchDefaultConfigTypes ( String [ ] defaultConfigTypes , String [ ] supportedConfigTypes ) { } protected String [ ] getDefaultConfigTypes ( ) { } protected IRemoteServiceContainer createMatchingContainer ( ContainerTypeDescription containerTypeDescription , ServiceReference serviceReference , String [ ] serviceExportedInterfaces , String [ ] requiredConfigs , String [ ] requiredIntents ) { } protected IRemoteServiceContainer createRSContainer ( ServiceReference serviceReference , ContainerTypeDescription containerTypeDescription ) { } protected void connectHostContainer ( ServiceReference serviceReference , IContainer container , Object target ) throws ContainerConnectException , IDCreateException { } protected boolean matchHostSupportedIntents ( String [ ] serviceRequiredIntents , ContainerTypeDescription containerTypeDescription ) { } }

Fix:
Object target = serviceReference . getProperty ( ENDPOINT_CONNECTTARGET_ID ) ;