nus-yam/ex-repair huggingface dataset:
Buggy code:
public class InfinispanSubsystemDescribe implements OperationStepHandler { public static final InfinispanSubsystemDescribe INSTANCE = new InfinispanSubsystemDescribe ( ) ; @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } public static void addCacheContainerCommands ( ModelNode subsystem , ModelNode subsystemAddress , ModelNode result ) throws OperationFailedException { } public static void addCacheCommands ( Property container , ModelNode containerAddress , ModelNode result ) throws OperationFailedException { } private static void addCacheContainerConfigCommands ( Property container , ModelNode address , ModelNode result ) throws OperationFailedException { if ( container . getValue ( ) . hasDefined ( TRANSPORT ) ) { if ( container . getValue ( ) . get ( TRANSPORT , TRANSPORT_NAME ) . isDefined ( ) ) { ModelNode transport = container . getValue ( ) . get ( TRANSPORT , TRANSPORT_NAME ) ; ModelNode transportAddress = address . clone ( ) ; transportAddress . add ( TRANSPORT , TRANSPORT_NAME ) ; <START_BUG> result . add ( TransportAdd . createOperation ( transportAddress , transport ) ) ; <END_BUG> } } } private static void addCacheConfigCommands ( Property cache , ModelNode address , ModelNode result ) throws OperationFailedException { } private static void addSharedStateCacheConfigCommands ( Property cache , ModelNode address , ModelNode result ) throws OperationFailedException { } private static void addStoreWriteBehindConfigCommands ( ModelNode store , ModelNode address , ModelNode result ) throws OperationFailedException { } private static void addCacheStorePropertyCommands ( ModelNode store , ModelNode address , ModelNode result ) throws OperationFailedException { } static ModelNode createOperation ( AttributeDefinition [ ] attributes , ModelNode address , ModelNode existing ) throws OperationFailedException { } static ModelNode createStoreOperation ( AttributeDefinition [ ] commonAttributes , ModelNode address , ModelNode existing , AttributeDefinition ... additionalAttributes ) throws OperationFailedException { } static ModelNode createStringKeyedStoreOperation ( ModelNode address , ModelNode existing ) throws OperationFailedException { } static ModelNode createBinaryKeyedStoreOperation ( ModelNode address , ModelNode existing ) throws OperationFailedException { } static ModelNode createMixedKeyedStoreOperation ( ModelNode address , ModelNode existing ) throws OperationFailedException { } static OperationDefinition DEFINITON = new org . jboss . as . controller . SimpleOperationDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . DESCRIBE , null ) . setPrivateEntry ( ) . setReplyType ( LIST ) . setReplyValueType ( OBJECT ) . build ( ) ; }

Fix:
result . add ( InfinispanSubsystemDescribe . createOperation ( TRANSPORT_ATTRIBUTES , transportAddress , transport ) ) ;
Buggy code:
public class XmlMarshallingHandler implements OperationStepHandler , DescriptionProvider { public static final String OPERATION_NAME = CommonDescriptions . READ_CONFIG_AS_XML ; private final ConfigurationPersister configPersister ; public XmlMarshallingHandler ( final ConfigurationPersister configPersister ) { } @ Override public ModelNode getModelDescription ( Locale locale ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) { <START_BUG> final Resource resource = context . getRootResource ( ) . navigate ( getBaseAddress ( ) ) ; <END_BUG> final ModelNode model = Tools . readModel ( resource ) ; try { final ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; try { BufferedOutputStream output = new BufferedOutputStream ( baos ) ; configPersister . marshallAsXml ( model , output ) ; output . close ( ) ; baos . close ( ) ; } finally { safeClose ( baos ) ; } String xml = new String ( baos . toByteArray ( ) ) ; context . getResult ( ) . set ( xml ) ; } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { ControllerLogger . MGMT_OP_LOGGER . failedExecutingOperation ( e , operation . require ( OP ) , PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) ) ; context . getFailureDescription ( ) . set ( e . toString ( ) ) ; } context . completeStep ( ) ; } protected PathAddress getBaseAddress ( ) { } private void safeClose ( final Closeable closeable ) { } }

Fix:
final Resource resource = context . readResourceFromRoot ( getBaseAddress ( ) ) ;
Buggy code:
public abstract class PostingsReaderBase implements Closeable { public abstract void init ( IndexInput termsIn ) throws IOException { } public abstract BlockTermState newTermState ( ) throws IOException { } public abstract void nextTerm ( FieldInfo fieldInfo , BlockTermState state ) throws IOException { } <START_BUG> public abstract DocsEnum docs ( FieldInfo fieldInfo , BlockTermState state , Bits skipDocs , DocsEnum reuse , boolean needsFreqs ) throws IOException ; <END_BUG> public abstract DocsAndPositionsEnum docsAndPositions ( FieldInfo fieldInfo , BlockTermState state , Bits skipDocs , DocsAndPositionsEnum reuse , int flags ) throws IOException { } public abstract void close ( ) throws IOException { } public abstract void readTermsBlock ( IndexInput termsIn , FieldInfo fieldInfo , BlockTermState termState ) throws IOException { } }

Fix:
public abstract DocsEnum docs ( FieldInfo fieldInfo , BlockTermState state , Bits skipDocs , DocsEnum reuse , int flags ) throws IOException ;
Buggy code:
public class AnonymousMechanism implements AuthenticationMechanism { private static final String ANONYMOUS_USER = "anonymous" ; private static final String ANONYMOUS_MECH = "ANONYMOUS" ; @ Override public AuthenticationMechanismOutcome authenticate ( HttpServerExchange exchange , SecurityContext context ) { Principal user = new RealmUser ( AnonymousMechanism . ANONYMOUS_USER ) ; Subject subject = new Subject ( ) ; subject . getPrincipals ( ) . add ( user ) ; SocketAddress address = exchange . getConnection ( ) . getPeerAddress ( ) ; if ( address instanceof InetSocketAddress ) { subject . getPrincipals ( ) . add ( new InetAddressPrincipal ( ( ( InetSocketAddress ) ( address ) ) . getAddress ( ) ) ) ; } <START_BUG> context . authenticationComplete ( new RealmIdentityAccount ( subject , user ) , AnonymousMechanism . ANONYMOUS_MECH ) ; <END_BUG> return AuthenticationMechanismOutcome . AUTHENTICATED ; } @ Override public ChallengeResult sendChallenge ( HttpServerExchange arg0 , SecurityContext arg1 ) { } }

Fix:
context . authenticationComplete ( new RealmIdentityAccount ( subject , user ) , AnonymousMechanism . ANONYMOUS_MECH , false ) ;
Buggy code:
public abstract class DefBase extends Task implements AntlibInterface { private String uri = "" ; private ClassLoader internalClassLoader ; private ClassLoader createdLoader ; private Delegate cpDelegate ; public void setURI ( String uri ) throws BuildException { if ( uri . equals ( ANT_CORE_URI ) ) { uri = "" ; } if ( ( uri . startsWith ( "ant:" ) ) && ( ! ( uri . startsWith ( "antlib:" ) ) ) ) { <START_BUG> throw new BuildException ( ( "Attempt<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>use<seq2seq4repair_space>a<seq2seq4repair_space>reserved<seq2seq4repair_space>URI<seq2seq4repair_space>" + uri ) ) ; <END_BUG> } this . uri = uri ; } public String getUri ( ) { } public void setAntlibClassLoader ( ClassLoader classLoader ) { } public void setReverseLoader ( boolean reverseLoader ) { } public Path getClasspath ( ) { } public boolean isReverseLoader ( ) { } public String getLoaderId ( ) { } public String getClasspathId ( ) { } public void setClasspath ( Path classpath ) { } public Path createClasspath ( ) { } public void setClasspathRef ( Reference r ) { } public void setLoaderRef ( Reference r ) { } protected ClassLoader createLoader ( ) { } public void init ( ) throws BuildException { } }

Fix:
throw new BuildException ( ( "Attempt<seq2seq4repair_space>to<seq2seq4repair_space>use<seq2seq4repair_space>a<seq2seq4repair_space>reserved<seq2seq4repair_space>URI<seq2seq4repair_space>" + uri ) ) ;
Buggy code:
public class StatsMenuView { private static final String [ ] [ ] menuItems = new String [ ] [ ] { new String [ ] { "H" , "High<seq2seq4repair_space>Score" } , new String [ ] { "C" , "Current<seq2seq4repair_space>Score" } , new String [ ] { "W" , "Wins<seq2seq4repair_space>VS<seq2seq4repair_space>Loss<seq2seq4repair_space>All<seq2seq4repair_space>time" } , new String [ ] { "X" , "Exit<seq2seq4repair_space>to<seq2seq4repair_space>Main<seq2seq4repair_space>Menu" } } ; StatsMenuControl statsMenuControl = new StatsMenuControl ( ) ; MainMenuView mainMenuView = new MainMenuView ( ) ; public StatsMenuView ( ) { } public void displayStatsMenu ( ) { String command ; Scanner inFile = new Scanner ( System . in ) ; do { this . display ( ) ; command = inFile . nextLine ( ) ; command = command . trim ( ) . toUpperCase ( ) ; switch ( command ) { case "H" : this . statsMenuControl . highScore ( ) ; break ; case "C" : this . statsMenuControl . currentScore ( ) ; break ; case "W" : this . statsMenuControl . winLossStats ( ) ; break ; case "X" : break ; default : <START_BUG> new MinesweeperError ( ) . displayError ( "Invalid<seq2seq4repair_space>command.<seq2seq4repair_space>Please<seq2seq4repair_space>enter<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>command." ) ; <END_BUG> continue ; } } while ( ! ( command . equals ( "X" ) ) ) ; return ; } public final void display ( ) { } }

Fix:
new MinesweeperError ( ) . displayError ( ) ;
Buggy code:
public final class CharRange implements Serializable { private static final long serialVersionUID = 8270183163158333422L ; private final char start ; private final char end ; private final boolean negated ; private transient String iToString ; public CharRange ( char ch ) { } public CharRange ( char ch , boolean negated ) { } public CharRange ( char start , char end ) { } public CharRange ( char start , char end , boolean negated ) { } public char getStart ( ) { } public char getEnd ( ) { } public boolean isNegated ( ) { } public boolean contains ( char ch ) { } public boolean contains ( CharRange range ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { if ( ( iToString ) == null ) { <START_BUG> StringBuffer buf = new StringBuffer ( 4 ) ; <END_BUG> if ( isNegated ( ) ) { buf . append ( '^' ) ; } buf . append ( start ) ; if ( ( start ) != ( end ) ) { buf . append ( '-' ) ; buf . append ( end ) ; } iToString = buf . toString ( ) ; } return iToString ; } }

Fix:
StringBuilder buf = new StringBuilder ( 4 ) ;
Buggy code:
public class CheckableItemListTableModel extends AbstractTableModel { private Vector data ; private static final String [ ] columns = new String [ ] { "Boolean" , "String" } ; public CheckableItemListTableModel ( ) { } public int getColumnCount ( ) { } public int getRowCount ( ) { } public Object getValueAt ( int row , int column ) { CheckableItem item = ( ( CheckableItem ) ( data . get ( row ) ) ) ; if ( column == 0 ) <START_BUG> return new Boolean ( item . isSelected ( ) ) ; <END_BUG> else return item . toString ( ) ; } public void addElement ( CheckableItem item ) { } public void setElement ( int index , CheckableItem item ) { } public Class getColumnClass ( int column ) { } public boolean isCellEditable ( int row , int column ) { } public void setValueAt ( Object value , int row , int column ) { } public String getColumnName ( int column ) { } public int count ( ) { } public CheckableItem getElement ( int index ) { } public void updateRow ( CheckableItem item ) { } }

Fix:
return Boolean . valueOf ( item . isSelected ( ) ) ;
Buggy code:
public abstract class ClearCase extends Task { private static final String CLEARTOOL_EXE = "cleartool" ; public static final String COMMAND_UPDATE = "update" ; public static final String COMMAND_CHECKOUT = "checkout" ; public static final String COMMAND_CHECKIN = "checkin" ; public static final String COMMAND_UNCHECKOUT = "uncheckout" ; private String m_ClearToolDir = "" ; private String m_viewPath = null ; public final void setClearToolDir ( String dir ) { } public final void setViewPath ( String viewPath ) { } public String getViewPath ( ) { } protected final String getClearToolCommand ( ) { } protected int run ( Commandline cmd ) throws TaskException { try { Project aProj = getProject ( ) ; Execute exe = new Execute ( new org . apache . tools . ant . taskdefs . LogStreamHandler ( this , Project . MSG_INFO , Project . MSG_WARN ) ) ; exe . setAntRun ( aProj ) ; <START_BUG> exe . setWorkingDirectory ( aProj . getBaseDir ( ) ) ; <END_BUG> exe . setCommandline ( cmd . getCommandline ( ) ) ; return exe . execute ( ) ; } catch ( IOException e ) { throw new TaskException ( "Error" , e ) ; } } }

Fix:
exe . setWorkingDirectory ( getBaseDirectory ( ) ) ;
Buggy code:
public class MacOSPlugin extends EBPlugin { static boolean started = false ; private boolean osok ; private Delegate delegate ; public void start ( ) { } public void handleMessage ( EBMessage message ) { } private boolean osok ( ) { final String osname = jEdit . getProperty ( "MacOSPlugin.depend.os.name" ) ; final String mrjversion = jEdit . getProperty ( "MacOSPlugin.depend.mrj.version" ) ; if ( ! ( System . getProperty ( "os.name" ) . equals ( osname ) ) ) { Log . log ( ERROR , this , jEdit . getProperty ( "MacOSPlugin.dialog.osname.message" ) ) ; return false ; } <START_BUG> if ( ( MiscUtilities . compareStrings ( System . getProperty ( "mrj.version" ) , mrjversion ) ) < 0 ) { <END_BUG> SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { GUIUtilities . error ( null , "MacOSPlugin.dialog.mrjversion" , new Object [ ] { mrjversion } ) ; } } ) ; return false ; } return true ; } }

Fix:
if ( ( MiscUtilities . compareStrings ( System . getProperty ( "mrj.version" ) , mrjversion , false ) ) < 0 ) {
Buggy code:
public class LineIteratorTestCase extends FileBasedTestCase { public LineIteratorTestCase ( String name ) { } private void assertLines ( List < String > lines , LineIterator iterator ) { } private List < String > createLinesFile ( File file , int lineCount ) throws Exception { } private List < String > createLinesFile ( File file , String encoding , int lineCount ) throws Exception { } private List < String > createStringLines ( int lineCount ) { } @ Override protected void setUp ( ) throws Exception { } @ Override protected void tearDown ( ) throws Exception { } public void testConstructor ( ) throws Exception { } public void testZeroLines ( ) throws Exception { } public void testOneLines ( ) throws Exception { } public void testTwoLines ( ) throws Exception { } public void testThreeLines ( ) throws Exception { } public void testMissingFile ( ) throws Exception { } public void testValidEncoding ( ) throws Exception { } public void testInvalidEncoding ( ) throws Exception { } public void testNextLineOnlyDefaultEncoding ( ) throws Exception { } public void testNextLineOnlyNullEncoding ( ) throws Exception { } public void testNextLineOnlyUtf8Encoding ( ) throws Exception { } public void testNextOnly ( ) throws Exception { } public void testNextWithException ( ) throws Exception { } public void testCloseEarly ( ) throws Exception { String encoding = "UTF-8" ; File testFile = new File ( getTestDirectory ( ) , "LineIterator-closeEarly.txt" ) ; createLinesFile ( testFile , encoding , 3 ) ; LineIterator iterator = FileUtils . lineIterator ( testFile , encoding ) ; try { <START_BUG> assertTrue ( "Line<seq2seq4repair_space>expected" , ( ( iterator . next ( ) ) instanceof String ) ) ; <END_BUG> assertTrue ( "More<seq2seq4repair_space>expected" , iterator . hasNext ( ) ) ; iterator . close ( ) ; assertFalse ( "No<seq2seq4repair_space>more<seq2seq4repair_space>expected" , iterator . hasNext ( ) ) ; try { iterator . next ( ) ; fail ( ) ; } catch ( NoSuchElementException ex ) { } try { iterator . nextLine ( ) ; fail ( ) ; } catch ( NoSuchElementException ex ) { } iterator . close ( ) ; try { iterator . next ( ) ; fail ( ) ; } catch ( NoSuchElementException ex ) { } try { iterator . nextLine ( ) ; fail ( ) ; } catch ( NoSuchElementException ex ) { } } finally { LineIterator . closeQuietly ( iterator ) ; } } private void doTestFileWithSpecifiedLines ( int lineCount ) throws Exception { } public void testFilteringFileReader ( ) throws Exception { } public void testFilteringBufferedReader ( ) throws Exception { } private void testFiltering ( List < String > lines , Reader reader ) { } }

Fix:
assertNotNull ( "Line<seq2seq4repair_space>expected" , iterator . next ( ) ) ;
Buggy code:
public class ConstructorArgsValue extends BeanConfigItem { public ConstructorArgsValue ( Node beanNode , BeanConfigItem parent ) { } @ Override protected NodeType [ ] getLegalChildTypes ( ) { } @ Override protected void parse ( ) { super . parse ( ) ; StringItem value = new StringItem ( XmlUtils . getContent ( getBeanNode ( ) ) ) ; <START_BUG> ( ( ConstructorArgs ) ( getParent ( ) ) ) . getArgs ( ) . add ( value ) ; <END_BUG> } }

Fix:
( ( ConstructorArg ) ( getParent ( ) ) ) . setValue ( value ) ;
Buggy code:
public class StringToEnumConverter implements Converter { private static final Resources REZ = ResourceManager . getPackageResources ( StringToEnumConverter . class ) ; <START_BUG> public Object convert ( final Class destination , final Object original , final Context context ) throws ConverterException { <END_BUG> final Object object = getEnum ( destination , original ) ; if ( null == object ) { final String [ ] names = getValidNames ( destination ) ; final String message = StringToEnumConverter . REZ . getString ( "invalid.enum.error" , original , Arrays . asList ( names ) ) ; throw new ConverterException ( message ) ; } else { return object ; } } private Object getEnum ( final Class destination , final Object original ) throws ConverterException { } private String [ ] getValidNames ( final Class clazz ) throws ConverterException { } }

Fix:
public Object convert ( final Class destination , final Object original , final Object context ) throws ConverterException {
Buggy code:
public class TestIndexWriterOnJRECrash extends TestNRTThreads { private File tempDir ; @ Override public void setUp ( ) throws Exception { super . setUp ( ) ; <START_BUG> tempDir = File . createTempFile ( "jrecrash" , "tmp" , TEMP_DIR ) ; <END_BUG> tempDir . delete ( ) ; tempDir . mkdir ( ) ; } @ Override public void testNRTThreads ( ) throws Exception { } public void forkTest ( ) throws Exception { } public boolean checkIndexes ( File file ) throws IOException { } public void crashJRE ( ) { } }

Fix:
tempDir = _TestUtil . getTempDir ( "jrecrash" ) ;
Buggy code:
public class TestBeanGUI extends AbstractJMeterGuiComponent implements JMeterGUIComponent { private static final long serialVersionUID = 240L ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private final Class < ? > testBeanClass ; private transient BeanInfo beanInfo ; private final Class < ? > customizerClass ; private Customizer customizer = null ; @ SuppressWarnings ( "unchecked" ) private final Map < TestElement , Customizer > customizers = new LRUMap ( 20 ) ; private int customizerIndexInPanel ; private final Map < String , Object > propertyMap = new HashMap < String , Object > ( ) ; private boolean initialized = false ; public TestBeanGUI ( ) { } public TestBeanGUI ( Class < ? > testBeanClass ) { } private Customizer createCustomizer ( ) { } @ Override public String getStaticLabel ( ) { } public TestElement createTestElement ( ) { } public void modifyTestElement ( TestElement element ) { if ( ( customizer ) instanceof GenericTestBeanCustomizer ) { GenericTestBeanCustomizer gtbc = ( ( GenericTestBeanCustomizer ) ( customizer ) ) ; gtbc . saveGuiFields ( ) ; } configureTestElement ( element ) ; PropertyDescriptor [ ] props = beanInfo . getPropertyDescriptors ( ) ; for ( int i = 0 ; i < ( props . length ) ; i ++ ) { String name = props [ i ] . getName ( ) ; Object value = propertyMap . get ( name ) ; TestBeanGUI . log . debug ( ( ( ( "Modify<seq2seq4repair_space>" + name ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + value ) ) ; if ( value == null ) { Object valueNotUnDefined = props [ i ] . getValue ( NOT_UNDEFINED ) ; if ( ( valueNotUnDefined != null ) && ( ( ( Boolean ) ( valueNotUnDefined ) ) . booleanValue ( ) ) ) { setPropertyInElement ( element , name , props [ i ] . getValue ( DEFAULT ) ) ; } else { element . removeProperty ( name ) ; } } else { <START_BUG> setPropertyInElement ( element , name , propertyMap . get ( name ) ) ; <END_BUG> } } } private void setPropertyInElement ( TestElement element , String name , Object value ) { } public JPopupMenu createPopupMenu ( ) { } @ Override public void configure ( TestElement element ) { } public Collection < String > getMenuCategories ( ) { } private void init ( ) { } public String getLabelResource ( ) { } @ Override public void clearGui ( ) { } public boolean isHidden ( ) { } public boolean isExpert ( ) { } }

Fix:
setPropertyInElement ( element , name , value ) ;
Buggy code:
public class ChatActivity extends AppCompatActivity { private TextView txtChatWith ; private Button btnSend ; private Button btnClear ; private Button btnCam ; private EditText edtInput ; private ListView listView ; private static ArrayAdapter < String > adapter ; private static ArrayList < String > messageList ; private String friendName ; private String username ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } private class OnClearBtnClickListener implements View . OnClickListener { @ Override public void onClick ( View arg0 ) { } } private class OnSendBtnClickListener implements View . OnClickListener { @ Override public void onClick ( View arg0 ) { } } private class OnCameraBtnClickListener implements View . OnClickListener { @ Override public void onClick ( View arg0 ) { } } private void getChatHistory ( ) { } public static void updateChat ( Message msg ) { <START_BUG> if ( msg != null ) { <END_BUG> ChatActivity . messageList . add ( ( ( ( ( ( ChatActivity . formatTime ( Calendar . getInstance ( ) . getTimeInMillis ( ) ) ) + "<seq2seq4repair_space>-<seq2seq4repair_space>" ) + ( msg . getSender ( ) ) ) + ":<seq2seq4repair_space>" ) + ( msg . getBody ( ) ) ) ) ; ChatActivity . adapter . notifyDataSetChanged ( ) ; } } private static String formatTime ( long time ) { } }

Fix:
if ( ( ( msg != null ) || ( ( ChatActivity . messageList ) != null ) ) || ( ( ChatActivity . adapter ) != null ) ) {
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class EJBClientXidTransactionTestCase { private static final Logger logger = Logger . getLogger ( EJBClientXidTransactionTestCase . class ) ; private static final String APP_NAME = "ejb-remote-client-api-xidtx-test" ; private static final String MODULE_NAME = "ejb" ; private static TransactionManager txManager ; private static TransactionSynchronizationRegistry txSyncRegistry ; @ Deployment public static Archive < ? > createDeployment ( ) { final EnterpriseArchive ear = ShrinkWrap . create ( EnterpriseArchive . class , ( ( EJBClientXidTransactionTestCase . APP_NAME ) + ".ear" ) ) ; final JavaArchive jar = ShrinkWrap . create ( JavaArchive . class , ( ( EJBClientXidTransactionTestCase . MODULE_NAME ) + ".jar" ) ) ; jar . addPackage ( EJBClientXidTransactionTestCase . class . getPackage ( ) ) ; <START_BUG> jar . addAsManifestResource ( "ejb//remote//client//tx//persistence.xml" , "persistence.xml" ) ; <END_BUG> ear . addAsModule ( jar ) ; return ear ; } @ BeforeClass public static void beforeTestClass ( ) throws Exception { } @ Before public void beforeTest ( ) throws Exception { } private static void instantiateTxManagement ( ) { } @ Test public void testSLSBMandatoryTx ( ) throws Exception { } @ Test public void testClientTransactionManagement ( ) throws Exception { } }

Fix:
jar . addAsManifestResource ( EJBClientXidTransactionTestCase . class . getPackage ( ) , "persistence.xml" , "persistence.xml" ) ;
Buggy code:
public class TestUMLResourceBundle extends TestCase { public TestUMLResourceBundle ( String name ) { } public void testMain ( ) { <START_BUG> CheckResourceBundle . checkResourceBundle ( this , new UMLResourceBundle ( ) ) ; <END_BUG> } }

Fix:
CheckResourceBundle . checkResourceBundle ( this , "org.argouml.i18n.UMLResourceBundle" ) ;
Buggy code:
public class AnnotationInterpreter { public static boolean hasToManyFields ( Class < ? > persistenceClass ) { } public static String getColumnToField ( Field field ) { } public static boolean isSimpleField ( Field field ) { } public static List < Field > getComplexFields ( Class < ? > parameterType ) { } public static Field getIdField ( Class < ? > parameterType ) { } public static String [ ] getAllColumns ( Class < ? > parameterType ) { } public static Map < Field , Method > getSetterWithField ( Class < ? > parameterType ) { } @ SuppressLint ( "DefaultLocale" ) public static Method getSetter ( Method [ ] methods , Field field ) throws MethodNotFound { } public static String getTable ( Class < ? > parameterType ) throws NoPersistenceClassException { } @ SuppressLint ( "DefaultLocale" ) public static Method getGetter ( Method [ ] methods , Field field ) throws MethodNotFound { } public static List < Field > getAllColumnFields ( Class < ? extends Object > persistenceClass ) { } public static boolean isIdField ( Field field ) { } public static boolean isAutoincrement ( Field field ) { } public static boolean isToOne ( Field field ) { } public static boolean isMinOne ( Field field ) { } public static boolean isToMany ( Field field ) { } public static String getIdColumn ( Class < ? > persistenceClass ) { } public static ToMany getToManyAnnotation ( Field field ) { } public static List < Field > getToManyFields ( Class < ? > persistenceClass ) { } public static String getHelperTable ( Class < ? > persistenceClass , Field field ) throws NoPersistenceClassException { } public static String getHelperIdColumn ( Class < ? > persistenceClass ) throws NoPersistenceClassException { } public static List < Field > getAllDatabaseFields ( Class < ? extends Object > clazz ) { } public static Field getTargetField ( Field field ) { } public static String getTargetFieldColumn ( Field field ) { } public static List < Field > getAllColumnFieldsWithoutID ( Class < ? extends Object > persistenceClass ) { List < Field > columnFields = new ArrayList < Field > ( ) ; Field [ ] declaredFields = persistenceClass . getDeclaredFields ( ) ; for ( int i = 0 ; i < ( declaredFields . length ) ; i ++ ) { Column annotation = declaredFields [ i ] . getAnnotation ( Column . class ) ; <START_BUG> if ( annotation != null ) <END_BUG> columnFields . add ( declaredFields [ i ] ) ; } return columnFields ; } }

Fix:
if ( ( annotation != null ) || ( AnnotationInterpreter . isToOne ( declaredFields [ i ] ) ) )
Buggy code:
public class Clock implements Runnable { private Calendar cal = Calendar . getInstance ( ) ; private ClockState state = this . stopped ; private ClockStateStopped stopped = new ClockStateStopped ( this ) ; private ClockStateSet set = new ClockStateSet ( this ) ; private Interface cur_interface = this . digital ; private InterfaceAnalog analog = new InterfaceAnalog ( this ) ; private InterfaceDigital digital = new InterfaceDigital ( this ) ; private JFrame window = new JFrame ( ) ; private Warning cur_warning ; private WarningAlarm alarm ; private WarningTimeOut timeOut ; public Clock ( ) { } public Interface getCur_interface ( ) { } public void setCur_interface ( Interface cur_interface ) { } public InterfaceAnalog getAnalog ( ) { } public InterfaceDigital getDigital ( ) { } public Warning getCur_warning ( ) { } public void setCur_warning ( Warning cur_warning ) { } public WarningAlarm getAlarm ( ) { } public WarningTimeOut getTimeOut ( ) { } public Calendar getCal ( ) { } public ClockState getState ( ) { } public void setState ( ClockState state ) { } public ClockStateStopped getStopped ( ) { } public ClockStateSet getSet ( ) { } public JFrame getWindow ( ) { } @ Override public void run ( ) { try { <START_BUG> while ( 1 ) { <END_BUG> Thread . sleep ( 1000 ) ; this . getState ( ) . tick ( ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } } }

Fix:
while ( true ) {
Buggy code:
Option weightOpt = obuilder . withLongName ( "weight" ) . withRequired ( false ) . withArgument ( abuilder . withName ( "weight" ) . withMinimum ( 1 ) . withMaximum ( 1 ) . create ( ) ) . withDescription ( "The<seq2seq4repair_space>kind<seq2seq4repair_space>of<seq2seq4repair_space>weight<seq2seq4repair_space>to<seq2seq4repair_space>use.<seq2seq4repair_space>Currently<seq2seq4repair_space>TF<seq2seq4repair_space>or<seq2seq4repair_space>TFIDF" ) . withShortName ( "w" ) . create ( ) ; <START_BUG> Option delimiterOpt = obuilder . withLongName ( "delimiter" ) . withRequired ( false ) . withArgument ( abuilder . withName ( "delimiter" ) . withMinimum ( 1 ) . withMaximum ( 1 ) . create ( ) ) . withDescription ( "The<seq2seq4repair_space>delimiter<seq2seq4repair_space>for<seq2seq4repair_space>outputing<seq2seq4repair_space>the<seq2seq4repair_space>dictionary" ) . withShortName ( "l" ) . create ( ) ; <END_BUG>

Fix:
Option delimiterOpt = obuilder . withLongName ( "delimiter" ) . withRequired ( false ) . withArgument ( abuilder . withName ( "delimiter" ) . withMinimum ( 1 ) . withMaximum ( 1 ) . create ( ) ) . withDescription ( "The<seq2seq4repair_space>delimiter<seq2seq4repair_space>for<seq2seq4repair_space>outputting<seq2seq4repair_space>the<seq2seq4repair_space>dictionary" ) . withShortName ( "l" ) . create ( ) ;
Buggy code:
public class ReachTopology { public static Map < String , List < String > > TWEETERS_DB = new HashMap < String , List < String > > ( ) { } ; public static Map < String , List < String > > FOLLOWERS_DB = new HashMap < String , List < String > > ( ) { } ; public static class GetTweeters extends BaseBasicBolt { @ Override public void execute ( Tuple tuple , BasicOutputCollector collector ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static class GetFollowers extends BaseBasicBolt { @ Override public void execute ( Tuple tuple , BasicOutputCollector collector ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static class PartialUniquer extends BaseBatchBolt { BatchOutputCollector _collector ; Object _id ; Set < String > _followers = new HashSet < String > ( ) ; @ Override public void prepare ( Map conf , TopologyContext context , BatchOutputCollector collector , Object id ) { } @ Override public void execute ( Tuple tuple ) { } @ Override public void finishBatch ( ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static class CountAggregator extends BaseBatchBolt { BatchOutputCollector _collector ; Object _id ; int _count = 0 ; @ Override public void prepare ( Map conf , TopologyContext context , BatchOutputCollector collector , Object id ) { } @ Override public void execute ( Tuple tuple ) { } @ Override public void finishBatch ( ) { } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } } public static LinearDRPCTopologyBuilder construct ( ) { } public static void main ( String [ ] args ) throws Exception { LinearDRPCTopologyBuilder builder = ReachTopology . construct ( ) ; Config conf = new Config ( ) ; if ( ( args == null ) || ( ( args . length ) == 0 ) ) { conf . setMaxTaskParallelism ( 3 ) ; LocalDRPC drpc = new LocalDRPC ( ) ; LocalCluster cluster = new LocalCluster ( ) ; cluster . submitTopology ( "reach-drpc" , conf , builder . createLocalTopology ( drpc ) ) ; String [ ] urlsToTry = new String [ ] { "foo.com//blog//1" , "engineering.twitter.com//blog//5" , "notaurl.com" } ; for ( String url : urlsToTry ) { System . out . println ( ( ( ( "Reach<seq2seq4repair_space>of<seq2seq4repair_space>" + url ) + ":<seq2seq4repair_space>" ) + ( drpc . execute ( "reach" , url ) ) ) ) ; } cluster . shutdown ( ) ; drpc . shutdown ( ) ; } else { conf . setNumWorkers ( 6 ) ; <START_BUG> StormSubmitter . submitTopology ( args [ 0 ] , conf , builder . createRemoteTopology ( ) ) ; <END_BUG> } } }

Fix:
StormSubmitter . submitTopologyWithProgressBar ( args [ 0 ] , conf , builder . createRemoteTopology ( ) ) ;
Buggy code:
public final class FullyBufferedReader { private final String input ; private int inputPosition ; private int lineNumber = 1 ; private int columnNumber = 1 ; private int lastLineCountIndex ; private int positionMarker ; public FullyBufferedReader ( final Reader reader ) throws IOException { } public final CharSequence getSubstring ( int toPos ) { } public final CharSequence getSubstring ( final int fromPos , final int toPos ) { } public final int getPosition ( ) { } public final void setPositionMarker ( final int pos ) { } @ Override public String toString ( ) { } public final void countLinesTo ( final int end ) { } public final int find ( final char ch ) { } public final int find ( final char ch , final int startPos ) { } public final int find ( final String str ) { } public final int find ( final String str , final int startPos ) { } public final void setPosition ( final int pos ) { } public final int getColumnNumber ( ) { } public final int getLineNumber ( ) { } public final int size ( ) { } <START_BUG> public final char charAt ( int pos ) { <END_BUG> return input . charAt ( pos ) ; } }

Fix:
public final char charAt ( final int pos ) {
Buggy code:
public class RemoveTest extends CleanupHelper { StorageService ss = StorageService . instance ; TokenMetadata tmd = ss . getTokenMetadata ( ) ; IPartitioner oldPartitioner ; ArrayList < Token > endpointTokens = new ArrayList < Token > ( ) ; ArrayList < Token > keyTokens = new ArrayList < Token > ( ) ; List < InetAddress > hosts = new ArrayList < InetAddress > ( ) ; InetAddress removalhost ; Token removaltoken ; @ Before public void setup ( ) throws IOException , ConfigurationException { } @ After public void tearDown ( ) { } @ Test ( expected = UnsupportedOperationException . class ) public void testBadToken ( ) { } @ Test ( expected = UnsupportedOperationException . class ) public void testLocalToken ( ) { } @ Test public void testRemoveToken ( ) throws InterruptedException { IPartitioner partitioner = StorageService . getPartitioner ( ) ; final String token = partitioner . getTokenFactory ( ) . toString ( removaltoken ) ; RemoveTest . ReplicationSink rSink = new RemoveTest . ReplicationSink ( ) ; SinkManager . add ( rSink ) ; final AtomicBoolean success = new AtomicBoolean ( false ) ; Thread remover = new Thread ( ) { public void run ( ) { try { ss . removeToken ( token ) ; } catch ( Exception e ) { System . err . println ( e ) ; e . printStackTrace ( ) ; return ; } success . set ( true ) ; } } ; remover . start ( ) ; Thread . sleep ( 1000 ) ; assertTrue ( tmd . isLeaving ( removalhost ) ) ; assertEquals ( 1 , tmd . getLeavingEndpoints ( ) . size ( ) ) ; for ( InetAddress host : hosts ) { <START_BUG> Message msg = new Message ( host , Verb . REPLICATION_FINISHED , new byte [ 0 ] ) ; <END_BUG> MessagingService . instance ( ) . sendRR ( msg , FBUtilities . getLocalAddress ( ) ) ; } remover . join ( ) ; assertTrue ( success . get ( ) ) ; assertTrue ( tmd . getLeavingEndpoints ( ) . isEmpty ( ) ) ; } @ Test public void testStartRemoving ( ) { } @ Test public void testFinishRemoving ( ) { } class ReplicationSink implements IMessageSink { public Message handleMessage ( Message msg , InetAddress to ) { } } class NotificationSink implements IMessageSink { public int callCount = 0 ; public Message handleMessage ( Message msg , InetAddress to ) { } } }

Fix:
Message msg = new Message ( host , Verb . REPLICATION_FINISHED , new byte [ 0 ] , MessagingService . version_ ) ;
Buggy code:
public class Salt extends Item { public Salt ( ) { } public boolean isOpaqueCube ( ) { } public boolean renderAsNormalBlock ( ) { <START_BUG> return false ; <END_BUG> } public int getRenderType ( ) { } public Block setBlockName ( String string ) { } No newline ; at end ; of file ; }

Fix:
return true ;
Buggy code:
public abstract class SETCoreSDKCommandAction implements IObjectActionDelegate { private IProject fProject ; private Shell fCurrentShell ; public void setActivePart ( IAction action , IWorkbenchPart targetPart ) { } public void run ( IAction action ) { if ( ( fProject ) == null ) { <START_BUG> ErrorDialog . openError ( fCurrentShell , ( ( action . getText ( ) ) + "<seq2seq4repair_space>Error" ) , ( ( "An<seq2seq4repair_space>error<seq2seq4repair_space>occured<seq2seq4repair_space>while<seq2seq4repair_space>performing<seq2seq4repair_space>action<seq2seq4repair_space>\"" + ( action . getText ( ) ) ) + "\"" ) , new Status ( IStatus . ERROR , SETUIPlugin . PLUGIN_ID , "The<seq2seq4repair_space>Sausalito<seq2seq4repair_space>project<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>determined" ) ) ; <END_BUG> return ; } MessageConsole console = new MessageConsole ( "Sausalito<seq2seq4repair_space>Command" , null ) ; ConsolePlugin . getDefault ( ) . getConsoleManager ( ) . addConsoles ( new IConsole [ ] { console } ) ; fCurrentShell . getDisplay ( ) . syncExec ( new Runnable ( ) { public void run ( ) { try { PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) . getActivePage ( ) . showView ( ID_CONSOLE_VIEW ) ; } catch ( PartInitException pie ) { } } } ) ; Job job = getActionJob ( console . newMessageStream ( ) ) ; job . schedule ( ) ; } protected abstract Job getActionJob ( OutputStream output ) { } public void selectionChanged ( IAction action , ISelection selection ) { } protected IProject getProject ( ) { } }

Fix:
ErrorDialog . openError ( fCurrentShell , ( ( action . getText ( ) ) + "<seq2seq4repair_space>Error" ) , ( ( "An<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>while<seq2seq4repair_space>performing<seq2seq4repair_space>action<seq2seq4repair_space>\"" + ( action . getText ( ) ) ) + "\"" ) , new Status ( IStatus . ERROR , SETUIPlugin . PLUGIN_ID , "The<seq2seq4repair_space>Sausalito<seq2seq4repair_space>project<seq2seq4repair_space>could<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>determined" ) ) ;
Buggy code:
public abstract class Result { protected ProblemInstance pi ; private Path path ; protected int daysConsidered ; private Costs costs ; public Result ( Path path , int daysConsidered ) { } public void parse ( ProblemInstance pi , String file ) { } public File export ( ) { try { JAXBContext context = JAXBContext . newInstance ( Costs . class ) ; Marshaller m = context . createMarshaller ( ) ; m . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , Boolean . TRUE ) ; updateTotalCosts ( ) ; <START_BUG> File f = Paths . get ( path . toString ( ) , GENERATED_COSTS ) . toFile ( ) ; <END_BUG> m . marshal ( costs , f ) ; return f ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return null ; } public static File parse ( SolutionMulti solution , Path path , int daysConsidered ) throws Exception { } protected Map < String , Providers > providers = new HashMap < String , Providers > ( ) ; protected Map < String , SpotRequests > spotRequests = new HashMap < String , SpotRequests > ( ) ; protected Providers getActualProvider ( ) { } private void updateTotalCosts ( ) { } public abstract void match ( String s ) { } public static File printEmpty ( Path p ) { } }

Fix:
File f = Paths . get ( path . toString ( ) , ( ( Configuration . COSTS_FILE_NAME ) + ( Configuration . COSTS_FILE_EXTENSION ) ) ) . toFile ( ) ;
Buggy code:
public class Attrib extends ExecuteOn { private static final String ATTR_READONLY = "R" ; private static final String ATTR_ARCHIVE = "A" ; private static final String ATTR_SYSTEM = "S" ; private static final String ATTR_HIDDEN = "H" ; private static final String SET = "+" ; private static final String UNSET = "-" ; private boolean haveAttr = false ; public Attrib ( ) { } public void setFile ( File src ) { } public void setReadonly ( boolean value ) { } public void setArchive ( boolean value ) { } public void setSystem ( boolean value ) { } public void setHidden ( boolean value ) { } protected void checkConfiguration ( ) { } public void setExecutable ( String e ) { } public void setCommand ( String e ) { } public void setAddsourcefile ( boolean b ) { } public void setSkipEmptyFilesets ( boolean skip ) { } public void setParallel ( boolean parallel ) { } public void setMaxParallel ( int max ) { } protected boolean isValidOs ( ) { <START_BUG> return ( ( getOs ( ) ) == null ) && ( ( getOsFamily ( ) ) == null ) ? Os . isFamily ( WINDOWS ) : super . isValidOs ( ) ; <END_BUG> } private static String getSignString ( boolean attr ) { } private void addArg ( boolean sign , String attribute ) { } private boolean haveAttr ( ) { } }

Fix:
return ( ( getOs ( ) ) == null ) && ( ( getOsFamily ( ) ) == null ) ? Os . isFamily ( FAMILY_WINDOWS ) : super . isValidOs ( ) ;
Buggy code:
public class DefaultUserOperation extends UserOperation { public DefaultUserOperation ( Editor editor , AlgorithmStepper stepper ) { } @ Override public void stop ( ) { } @ Override public void processUserEvent ( UserEvent event ) { } private boolean operActive ( ) { } private SlotList getPickSet ( Point location ) { } private SlotList getSelectedObjects ( SlotList slotList ) { } private void doClick ( Point location ) { } private void doStartDrag ( Point location ) { } private void startCommand ( String mergeKey , String description ) { } private boolean modifyEditableObject ( ) { } private void doContinueDrag ( Point location ) { mTranslate = MyMath . subtract ( location , mInitialEvent . getWorldLocation ( ) ) ; if ( ( mTranslate . magnitude ( ) ) == 0 ) return ; <START_BUG> for ( int slot : mCommand . getOriginalState ( ) . getSelectedSlots ( ) ) { <END_BUG> EdObject orig = mCommand . getOriginalState ( ) . getObjects ( ) . get ( slot ) ; EdObject obj = mutableCopyOf ( orig ) ; obj . moveBy ( orig , mTranslate ) ; mEditor . objects ( ) . set ( slot , obj ) ; } } private void executeCommand ( ) { } private void doFinishDrag ( ) { } private Editor mEditor ; private boolean mActive ; private UserEvent mInitialEvent ; private boolean mDragOperation ; private CommandForGeneralChanges mCommand ; private Point mTranslate ; private AlgorithmStepper mStepper ; private UserEvent mEvent ; }

Fix:
for ( int slot : mEditor . objects ( ) . getSelectedSlots ( ) ) {
Buggy code:
@ RunWith ( DataProviderRunner . class ) public class EscherTest extends TestBase { private Escher escher ; @ Before public void setUp ( ) throws Exception { escher = new Escher ( "us-east-1//iam//aws4_request" ) ; <START_BUG> escher . setCurrentTime ( createDate ( 2011 , Calendar . SEPTEMBER , 9 , 23 , 36 , 0 ) ) ; <END_BUG> } @ Test public void testSignRequest ( ) throws Exception { } private EscherRequestImpl createRequest ( TestParam . Request paramRequest ) throws URISyntaxException { } @ Test public void testPresignUrl ( ) throws Exception { } @ Test public void testAuthenticateSuccess ( ) throws Exception { } @ Test @ UseDataProvider ( "getAuthenticationMissingHeaderCases" ) public void testAuthenticateMissingHeader ( String headerToExlude , String expectedErrorMessage ) throws Exception { } @ DataProvider public static Object [ ] [ ] getAuthenticationMissingHeaderCases ( ) { } @ Test public void testAuthenticateInvalidDateFormat ( ) throws Exception { } @ Test @ UseDataProvider ( "getAuthenticateMandatoryHeaderNotSignedCases" ) public void testAuthenticateMandatoryHeaderNotSigned ( String signedHeaders , String expectedErrorMessage ) throws Exception { } @ DataProvider public static Object [ ] [ ] getAuthenticateMandatoryHeaderNotSignedCases ( ) { } @ Test public void testAuthenticateInvalidHashAlgo ( ) throws Exception { } @ Test public void testAuthenticateDatesInDateAndAuthHeadersDoNotMatch ( ) throws Exception { } @ Test @ UseDataProvider ( "getAuthenticateOutsideAcceptedTimeIntervalCases" ) public void testAuthenticateOutsideAcceptedTimeInterval ( int clockSkew , int minute ) throws Exception { } @ DataProvider public static Object [ ] [ ] getAuthenticateOutsideAcceptedTimeIntervalCases ( ) { } @ Test public void testAuthenticateInvalidHost ( ) throws Exception { } @ Test public void testAuthenticateInvalidCredentialScope ( ) throws Exception { } @ Test public void testAuthenticateInvalidAccessKeyId ( ) throws Exception { } @ Test public void testAuthenticateInvalidSignature ( ) throws Exception { } private void assertAuthenticationError ( String expectedErrorMessage , EscherRequest request ) { } No newline ; at end ; of file ; }

Fix:
escher . setCurrentTime ( createDate ( 2011 , Calendar . SEPTEMBER , 9 , 23 , 40 , 0 ) ) ;
Buggy code:
public class HelpTOCPanel extends JPanel { public HelpTOCPanel ( HelpViewerInterface helpViewer ) { } public void selectNode ( String shortURL ) { } public void load ( ) { } private HelpViewerInterface helpViewer ; private DefaultTreeModel tocModel ; private DefaultMutableTreeNode tocRoot ; private JTree toc ; private Hashtable nodes ; private DefaultMutableTreeNode createNode ( String href , String title ) { } private void createTOC ( ) { } private void loadTOC ( DefaultMutableTreeNode root , String path ) { } static class HelpNode { String href ; String title ; HelpNode ( String href , String title ) { } public String toString ( ) { } } class TOCHandler extends HandlerBase { String dir ; TOCHandler ( DefaultMutableTreeNode root , String dir ) { } public void attribute ( String aname , String value , boolean isSpecified ) { } public void charData ( char [ ] c , int off , int len ) { } public void startElement ( String name ) { } public void endElement ( String name ) { } private String tag ; private String title ; private String href ; private DefaultMutableTreeNode node ; private Stack nodes ; } class TOCTree extends JTree { TOCTree ( ) { } public final String getToolTipText ( MouseEvent evt ) { } protected void processMouseEvent ( MouseEvent evt ) { switch ( evt . getID ( ) ) { case MouseEvent . MOUSE_CLICKED : TreePath path = getPathForLocation ( evt . getX ( ) , evt . getY ( ) ) ; if ( path != null ) { if ( ! ( isPathSelected ( path ) ) ) setSelectionPath ( path ) ; Object obj = ( ( DefaultMutableTreeNode ) ( path . getLastPathComponent ( ) ) ) . getUserObject ( ) ; if ( ! ( obj instanceof HelpTOCPanel . HelpNode ) ) { this . expandPath ( path ) ; return ; } HelpTOCPanel . HelpNode node = ( ( HelpTOCPanel . HelpNode ) ( obj ) ) ; <START_BUG> helpViewer . gotoURL ( node . href , true ) ; <END_BUG> } super . processMouseEvent ( evt ) ; break ; default : super . processMouseEvent ( evt ) ; break ; } } private boolean cellRectIsVisible ( Rectangle cellRect ) { } } class TOCCellRenderer extends DefaultTreeCellRenderer { EmptyBorder border = new EmptyBorder ( 1 , 0 , 1 , 1 ) ; public Component getTreeCellRendererComponent ( JTree tree , Object value , boolean sel , boolean expanded , boolean leaf , int row , boolean focus ) { } } static class PluginCompare implements Comparator { public int compare ( Object o1 , Object o2 ) { } } }

Fix:
helpViewer . gotoURL ( node . href , true , 0 ) ;