nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Logic { private static final String MESSAGE_DELETE = "Task<seq2seq4repair_space>%1$s<seq2seq4repair_space>deleted!" ; private static final String MESSAGE_ADD = "Task<seq2seq4repair_space>\"%1$s\"added!" ; private DoneStorage doneStorage ; private List < Done > tasks ; private DoneStorage jsonStorage ; public Logic ( ) { } public void add ( String title ) { } public String display ( ) { } public void delete ( int deleteIndex ) { String strToDelete ; <START_BUG> strToDelete = new String ( tasks . elementAt ( ( deleteIndex - 1 ) ) . toString ( ) ) ; <END_BUG> tasks . remove ( ( deleteIndex - 1 ) ) ; System . out . println ( String . format ( Logic . MESSAGE_DELETE , strToDelete ) ) ; jsonStorage . store ( tasks ) ; } No newline ; at end ; of file ; }

Fix:
strToDelete = new String ( tasks . get ( ( deleteIndex - 1 ) ) . toString ( ) ) ;
Buggy code:
public class CommandlineJava implements Cloneable { private Commandline vmCommand = new Commandline ( ) ; private Commandline javaCommand = new Commandline ( ) ; private CommandlineJava . SysProperties sysProperties = new CommandlineJava . SysProperties ( ) ; private Path classpath = null ; private String vmVersion ; private String maxMemory = null ; private boolean executeJar = false ; public static class SysProperties extends Environment implements Cloneable { Properties sys = null ; public String [ ] getVariables ( ) throws BuildException { } public int size ( ) { } public void setSystem ( ) throws BuildException { } public void restoreSystem ( ) throws BuildException { } public Object clone ( ) { } } public CommandlineJava ( ) { } public Argument createArgument ( ) { } public Argument createVmArgument ( ) { } public void addSysproperty ( Environment . Variable sysp ) { } public void setVm ( String vm ) { } public void setVmversion ( String value ) { } public void setJar ( String jarpathname ) { } public String getJar ( ) { } public void setClassname ( String classname ) { } public String getClassname ( ) { } public Path createClasspath ( Project p ) { } public String getVmversion ( ) { } public String [ ] getCommandline ( ) { } public void setMaxmemory ( String max ) { } public String toString ( ) { } private Commandline getActualVMCommand ( ) { } public int size ( ) { } public Commandline getJavaCommand ( ) { } public Commandline getVmCommand ( ) { } public Path getClasspath ( ) { } public void setSystemProperties ( ) throws BuildException { } public void restoreSystemProperties ( ) throws BuildException { } public CommandlineJava . SysProperties getSystemProperties ( ) { } public Object clone ( ) { } public void clearJavaArgs ( ) { } private String getJavaExecutableName ( ) { String extension = ( Os . isFamily ( "dos" ) ) ? ".exe" : "" ; File jExecutable = null ; if ( Os . isName ( "aix" ) ) { jExecutable = new File ( ( ( ( System . getProperty ( "java.home" ) ) + "//..//sh//java" ) + extension ) ) ; } if ( ( jExecutable == null ) || ( ! ( jExecutable . exists ( ) ) ) ) { jExecutable = new File ( ( ( ( System . getProperty ( "java.home" ) ) + "//..//bin//java" ) + extension ) ) ; } if ( ( jExecutable . exists ( ) ) && ( ! ( Os . isFamily ( "netware" ) ) ) ) { return jExecutable . getAbsolutePath ( ) ; } else { <START_BUG> return "java" ; <END_BUG> } } }

Fix:
return "java" + extension ;
Buggy code:
public class BoxBorderTest extends WicketTestCase { public BoxBorderTest ( String name ) { } public void test1 ( ) throws Exception { } public void test2 ( ) throws Exception { } public void test3 ( ) throws Exception { executeTest ( BoxBorderTestPage_3 . class , "BoxBorderTestPage_ExpectedResult_3.html" ) ; <START_BUG> Border border = ( ( Border ) ( application . getLastRenderedPage ( ) . get ( "border" ) ) ) ; <END_BUG> Form form = ( ( Form ) ( application . getLastRenderedPage ( ) . get ( "border:myForm" ) ) ) ; TextField input = ( ( TextField ) ( application . getLastRenderedPage ( ) . get ( "border:name" ) ) ) ; assertEquals ( "" , input . getModelObjectAsString ( ) ) ; application . setupRequestAndResponse ( ) ; MockHttpServletRequest mockRequest = application . getServletRequest ( ) ; mockRequest . setRequestToComponent ( form ) ; mockRequest . setParameter ( input . getInputName ( ) , "jdo" ) ; application . processRequestCycle ( ) ; input = ( ( TextField ) ( application . getLastRenderedPage ( ) . get ( "border:name" ) ) ) ; assertEquals ( "jdo" , input . getModelObjectAsString ( ) ) ; } public void test4 ( ) throws Exception { } public void testRenderWrapped ( ) throws Exception { } public void test5 ( ) throws Exception { } public void test6 ( ) throws Exception { } }

Fix:
application . getLastRenderedPage ( ) . get ( "border" ) ;
Buggy code:
public final class JUnitTaskMirrorImpl implements JUnitTaskMirror { private final JUnitTask task ; public JUnitTaskMirrorImpl ( JUnitTask task ) { } <START_BUG> public void addVmExit ( JUnitTest test , JUnitResultFormatterMirror _formatter , OutputStream out , final String message ) { <END_BUG> JUnitResultFormatter formatter = ( ( JUnitResultFormatter ) ( _formatter ) ) ; formatter . setOutput ( out ) ; formatter . startTestSuite ( test ) ; Test t = new Test ( ) { public int countTestCases ( ) { return 1 ; } public void run ( TestResult r ) { throw new AssertionFailedError ( message ) ; } } ; formatter . startTest ( t ) ; formatter . addError ( t , new AssertionFailedError ( message ) ) ; formatter . endTestSuite ( test ) ; } public JUnitTestRunnerMirror newJUnitTestRunner ( JUnitTest test , boolean haltOnError , boolean filterTrace , boolean haltOnFailure , boolean showOutput , boolean logTestListenerEvents , AntClassLoader classLoader ) { } public SummaryJUnitResultFormatterMirror newSummaryJUnitResultFormatter ( ) { } }

Fix:
public void addVmExit ( JUnitTest test , JUnitTaskMirror . JUnitResultFormatterMirror _formatter , OutputStream out , final String message ) {
Buggy code:
public class PropPanelCompositeState extends PropPanelState { protected JList subverticesList = null ; public PropPanelCompositeState ( String name , ImageIcon icon , Orientation orientation ) { } public PropPanelCompositeState ( ) { } protected void initialize ( ) { <START_BUG> subverticesList = new UMLCompositeStateSubvertexList ( this , new UMLCompositeStateSubvertexListModel ( ) ) ; <END_BUG> } }

Fix:
subverticesList = new UMLCompositeStateSubvertexList ( new UMLCompositeStateSubvertexListModel ( ) ) ;
Buggy code:
public class CovReport extends CovBase { private String format = null ; private File tofile = null ; private String type = null ; private Integer percent = null ; private String filters = null ; private File snapshot = null ; private Path sourcePath = null ; private boolean includeSource = true ; private Path coveragePath = null ; private CovReport . Reference reference = null ; public static class ReportFormat extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public void setFormat ( CovReport . ReportFormat value ) { } public static class ReportType extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public void setType ( CovReport . ReportType value ) { } public void setIncludesource ( boolean value ) { } public void setPercent ( Integer value ) { } public void setFilters ( String values ) { } public Path createSourcepath ( ) { } public void setSnapshot ( File value ) { } public void setTofile ( File value ) { } public Path createCoveragepath ( ) { } public CovReport . Reference createReference ( ) { } public CovReport ( ) { } protected void checkOptions ( ) throws BuildException { } public void execute ( ) throws BuildException { checkOptions ( ) ; try { Commandline cmdl = new Commandline ( ) ; cmdl . setExecutable ( findExecutable ( "jpcovreport" ) ) ; String [ ] params = getParameters ( ) ; for ( int i = 0 ; i < ( params . length ) ; i ++ ) { cmdl . createArgument ( ) . setValue ( params [ i ] ) ; } LogStreamHandler handler = new LogStreamHandler ( this , Project . MSG_INFO , Project . MSG_WARN ) ; Execute exec = new Execute ( handler ) ; log ( cmdl . describeCommand ( ) , MSG_VERBOSE ) ; exec . setCommandline ( cmdl . getCommandline ( ) ) ; int exitValue = exec . execute ( ) ; <START_BUG> if ( exitValue != 0 ) { <END_BUG> throw new BuildException ( ( ( "JProbe<seq2seq4repair_space>Coverage<seq2seq4repair_space>Report<seq2seq4repair_space>failed<seq2seq4repair_space>(" + exitValue ) + ")" ) ) ; } log ( ( "coveragePath:<seq2seq4repair_space>" + ( coveragePath ) ) , MSG_VERBOSE ) ; log ( ( "format:<seq2seq4repair_space>" + ( format ) ) , MSG_VERBOSE ) ; if ( ( ( reference ) != null ) && ( "xml" . equals ( format ) ) ) { reference . createEnhancedXMLReport ( ) ; } } catch ( IOException e ) { throw new BuildException ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>execute<seq2seq4repair_space>JProbe<seq2seq4repair_space>Coverage<seq2seq4repair_space>Report." , e ) ; } } protected String [ ] getParameters ( ) { } public class Reference { protected Path classPath ; protected ReportFilters filters ; public Path createClasspath ( ) { } public ReportFilters createFilters ( ) { } protected void createEnhancedXMLReport ( ) throws BuildException { } } }

Fix:
if ( Execute . isFailure ( exitValue ) ) {
Buggy code:
public class DateUtil { private static final String defaultDatePattern = "dd//MM//yyyy" ; private static final String defaultTimePattern = "HH:mm:ss" ; public static String getDefaultDatePattern ( ) { } public static String getDefaultTimePattern ( ) { } public static Date convStringToDate ( String strDate ) { } public static Date convStringToDateTime ( String strDate ) { } public static Date convStringToDate ( String pattern , String strDate ) { } public static String convDateTimeToString ( Date date ) { } public static String convDateToString ( Date date ) { } public static String convDateToString ( String pattern , Date date ) { <START_BUG> SimpleDateFormat sdf = new SimpleDateFormat ( DateUtil . defaultDatePattern ) ; <END_BUG> String arg = null ; if ( date != null ) { arg = sdf . format ( date ) ; } return arg ; } }

Fix:
SimpleDateFormat sdf = new SimpleDateFormat ( pattern ) ;
Buggy code:
public class RendererMap { Hashtable map ; static ObjectRenderer defaultRenderer = new DefaultRenderer ( ) ; public RendererMap ( ) { } public static void addRenderer ( RendererSupport repository , String renderedClassName , String renderingClassName ) { LogLog . debug ( ( ( ( ( "Rendering<seq2seq4repair_space>class:<seq2seq4repair_space>[" + renderingClassName ) + "],<seq2seq4repair_space>Rendered<seq2seq4repair_space>class:<seq2seq4repair_space>[" ) + renderedClassName ) + "]." ) ) ; ObjectRenderer renderer = ( ( ObjectRenderer ) ( OptionConverter . instantiateByClassName ( renderingClassName , ObjectRenderer . class , null ) ) ) ; if ( renderer == null ) { LogLog . error ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>instantiate<seq2seq4repair_space>renderer<seq2seq4repair_space>[" + renderingClassName ) + "]." ) ) ; return ; } else { try { <START_BUG> Class renderedClass = Loader . loadClass ( renderedClassName ) ; <END_BUG> repository . setRenderer ( renderedClass , renderer ) ; } catch ( ClassNotFoundException e ) { LogLog . error ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>class<seq2seq4repair_space>[" + renderedClassName ) + "]." ) , e ) ; } } } public String findAndRender ( Object o ) { } public ObjectRenderer get ( Object o ) { } public ObjectRenderer get ( Class clazz ) { } ObjectRenderer searchInterfaces ( Class c ) { } public ObjectRenderer getDefaultRenderer ( ) { } public void clear ( ) { } public void put ( Class clazz , ObjectRenderer or ) { } }

Fix:
Class renderedClass = Class . forName ( renderedClassName ) ;
Buggy code:
public class SettingsTabNotation extends SettingsTabHelper implements SettingsTabPanel { JCheckBox _allowNotations = null ; JCheckBox _useGuillemots = null ; public SettingsTabNotation ( ) { } public void handleSettingsTabRefresh ( ) { } public void handleSettingsTabSave ( ) { } public void handleSettingsTabCancel ( ) { } public String getModuleName ( ) { } public String getModuleDescription ( ) { } public String getModuleAuthor ( ) { } public String getModuleVersion ( ) { } public String getModuleKey ( ) { } public String getTabKey ( ) { } public String getTabResourceBundleKey ( ) { <START_BUG> return "NotationResourceBundle" ; <END_BUG> } }

Fix:
return "CoreSettings" ;
Buggy code:
public class FalseLiteral extends MagicLiteral { static final char [ ] source = new char [ ] { 'f' , 'a' , 'l' , 's' , 'e' } ; public FalseLiteral ( int s , int e ) { } public void computeConstant ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void generateOptimizedBoolean ( BlockScope currentScope , CodeStream codeStream , Label trueLabel , Label falseLabel , boolean valueRequired ) { } public TypeBinding literalType ( BlockScope scope ) { <START_BUG> return BooleanBinding ; <END_BUG> } public char [ ] source ( ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
return TypeBinding . BOOLEAN ;
Buggy code:
public class CookieValuePersister implements IValuePersister { private static final long serialVersionUID = 1L ; private static final Log log = LogFactory . getLog ( CookieValuePersister . class ) ; public void clear ( final FormComponent component ) { } public void load ( final FormComponent component ) { final Cookie cookie = getCookie ( component ) ; if ( cookie != null ) { final String value = cookie . getValue ( ) ; if ( value != null ) { <START_BUG> component . setModelValue ( value ) ; <END_BUG> } } } public void save ( final FormComponent component ) { } private void clear ( final Cookie cookie ) { } private String cookieToDebugString ( final Cookie cookie ) { } private Cookie getCookie ( final FormComponent component ) { } private Cookie [ ] getCookies ( ) { } private CookieValuePersisterSettings getSettings ( ) { } private WebRequest getWebRequest ( ) { } private WebResponse getWebResponse ( ) { } private Cookie save ( final Cookie cookie ) { } }

Fix:
component . setModelValue ( value . split ( ";" ) ) ;
Buggy code:
public class BrokerAvailabilityEvent extends ApplicationEvent { private static final long serialVersionUID = - 8156742505179181002L ; private final boolean brokerAvailable ; public BrokerAvailabilityEvent ( boolean brokerAvailable , Object source ) { } public boolean isBrokerAvailable ( ) { } @ Override public String toString ( ) { <START_BUG> return "BrokerAvailabilityEvent=" + ( this . brokerAvailable ) ; <END_BUG> } }

Fix:
return ( ( ( "BrokerAvailabilityEvent[available=" + ( this . brokerAvailable ) ) + ",<seq2seq4repair_space>" ) + ( getSource ( ) ) ) + "]" ;
Buggy code:
public class RobbingMapControllerState extends DefaultMapControllerState { public RobbingMapControllerState ( Facade facade , MapController controller , IMapView view , IRobView robView ) { } public void initFromModel ( ) { } public boolean canPlaceRobber ( HexLocation hex ) { } public void robPlayer ( RobPlayerInfo victim ) { try { PlayerNumber clientIndex = this . facade . getClientPlayerIndex ( ) ; PlayerNumber victimIndex = victim . getPlayerIndex ( ) ; HexLocation hex = this . controller . getRobberLocation ( ) ; <START_BUG> this . facade . robPlayer ( clientIndex , victimIndex , hex , CatanState . PLAYING ) ; <END_BUG> this . controller . setModalShowing ( false ) ; } catch ( CatanException e ) { e . printStackTrace ( ) ; } } public void startMove ( PieceType pieceType , boolean isFree , boolean allowDisconnected ) { } }

Fix:
this . facade . robPlayer ( clientIndex , victimIndex , hex , CatanState . ROBBING ) ;
Buggy code:
public class FileSendTest extends AbstractSendTestCase { File inputFile = null ; File outputFile = null ; protected void setUp ( ) throws Exception { } protected void tearDown ( ) throws Exception { } public void testSend ( ) throws Exception { testSendForFile ( outputFile . toURL ( ) , inputFile ) ; <START_BUG> waitForDone ( 5000 ) ; <END_BUG> assertEquals ( outputFile . length ( ) , inputFile . length ( ) ) ; } }

Fix:
waitForDone ( 10000 ) ;
Buggy code:
public class CodeSnippetMessageSend extends MessageSend implements ProblemReasons , EvaluationConstants { EvaluationContext evaluationContext ; FieldBinding delegateThis ; public CodeSnippetMessageSend ( EvaluationContext evaluationContext ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo ) { if ( ! ( flowInfo . isReachable ( ) ) ) return ; this . codegenBinding = this . binding . original ( ) ; if ( ( this . codegenBinding ) != ( this . binding ) ) { if ( this . codegenBinding . returnType . isTypeVariable ( ) ) { TypeVariableBinding variableReturnType = ( ( TypeVariableBinding ) ( this . codegenBinding . returnType ) ) ; if ( ( variableReturnType . firstBound ) != ( this . binding . returnType ) ) { this . valueCast = this . binding . returnType ; } } } if ( ( ( this . binding . declaringClass ) != ( this . actualReceiverType ) ) && ( ! ( this . actualReceiverType . isArrayType ( ) ) ) ) { <START_BUG> CompilerOptions options = currentScope . environment ( ) . options ; <END_BUG> if ( ( ( ( ( options . targetJDK ) >= ( ClassFileConstants . JDK1_2 ) ) && ( ( ( ( options . complianceLevel ) >= ( ClassFileConstants . JDK1_4 ) ) || ( ! ( receiver . isImplicitThis ( ) ) ) ) || ( ! ( this . codegenBinding . isStatic ( ) ) ) ) ) && ( ( this . binding . declaringClass . id ) != ( TypeIds . T_JavaLangObject ) ) ) || ( ! ( this . binding . declaringClass . canBeSeenBy ( currentScope ) ) ) ) { this . codegenBinding = currentScope . enclosingSourceType ( ) . getUpdatedMethodBinding ( this . codegenBinding , ( ( ReferenceBinding ) ( this . actualReceiverType . erasure ( ) ) ) ) ; } } } public TypeBinding resolveType ( BlockScope scope ) { } }

Fix:
CompilerOptions options = currentScope . compilerOptions ( ) ;
Buggy code:
public interface IContextManagerListener { <START_BUG> void contextManagerChanged ( ContextManagerEvent contextManagerEvent ) ; <END_BUG> }

Fix:
void contextManagerChanged ( IContextManagerEvent contextManagerEvent ) ;
Buggy code:
public interface Validated { <START_BUG> void validate ( ) ; <END_BUG> Validation validation ( ) { } }

Fix:
boolean validate ( ) ;
Buggy code:
public class UseCase extends Classifier { public Vector _extensionPoint = new Vector ( ) ; public UseCase ( ) { } public UseCase ( Name name ) { } public UseCase ( String nameStr ) { } public Vector getExtensionPoint ( ) { } public void setExtensionPoint ( Vector x ) throws PropertyVetoException { if ( ( _extensionPoint ) == null ) _extensionPoint = new Vector ( ) ; <START_BUG> fireVetoableChange ( "extensionPoint" , _extensionPoint , x ) ; <END_BUG> _extensionPoint = x ; } public void addExtensionPoint ( String x ) throws PropertyVetoException { } public void removeExtensionPoint ( String x ) throws PropertyVetoException { } public String dbgString ( ) { } }

Fix:
fireVetoableChangeNoCompare ( "extensionPoint" , _extensionPoint , x ) ;
Buggy code:
public class RemoteContainer implements IPluginContainer { private static PropertyResourceBundle resources ; private IPlugin plugin ; private File dir ; public RemoteContainer ( ) { } public void setDataDirectory ( File dir ) { } public void configure ( Properties props ) throws Exception { if ( ( props . getProperty ( "config.file" ) ) == null ) { <START_BUG> throw new Exception ( ( "Missing<seq2seq4repair_space>configuration<seq2seq4repair_space>file:<seq2seq4repair_space>" + ( ExecutionState . DEFAULT_CONFIG ) ) ) ; <END_BUG> } SimpleCredentialStore scs = new SimpleCredentialStore ( ) ; scs . add ( props ) ; RemotePlugin . setCredentialStore ( scs ) ; if ( ( dir ) != null ) { RemotePlugin . setDataDirectory ( dir ) ; } plugin = new RemotePlugin ( props . getProperty ( PROP_HOSTNAME ) ) ; } public String getProperty ( String key ) { } public IPlugin getPlugin ( ) { } }

Fix:
throw new Exception ( ( "Missing<seq2seq4repair_space>configuration<seq2seq4repair_space>file:<seq2seq4repair_space>" + ( DEFAULT_FILE ) ) ) ;
Buggy code:
public class OnlineOpenTransportRepository implements IOpenTransportRepository { @ Override public StationList findStations ( String query ) { } private String buildFindStationsUrl ( String query ) { } @ Override public ConnectionList searchConnections ( String from , String to ) { } @ Override public ConnectionList searchConnections ( String from , String to , String via , String date , String time , Boolean isArrivalTime ) { } private String GetJson ( String url ) { } private String buildSearchConnectionUrl ( String from , String to , String via , String date , String time , Boolean isArrivalTime ) { String url = null ; try { url = ( ( "http:////transport.opendata.ch//v1//connections?from=" + ( URLEncoder . encode ( from , "UTF-8" ) ) ) + "&to=" ) + ( URLEncoder . encode ( to , "UTF-8" ) ) ; if ( ( via != null ) && ( via != "" ) ) { url += "&via[]=" + via ; } if ( ( date != null ) && ( date != "" ) ) { url += "&date=" + date ; } if ( ( time != null ) && ( time != "" ) ) { <START_BUG> url += "&date=" + time ; <END_BUG> } if ( isArrivalTime ) { url += "&url=1" ; } } catch ( UnsupportedEncodingException e ) { } return url ; } }

Fix:
url += "&time=" + time ;
Buggy code:
public class Elimination extends Tournois { public ArrayList < Match > matchs = new ArrayList < Match > ( ) ; public Elimination ( String n , String s , ArrayList < Equipe > team ) { } public Elimination ( String n , String s , ArrayList < Equipe > team , int nb ) { } public void tourElimination ( ArrayList < String > scores , ArrayList < Equipe > teams ) { removeAllTeamTournament ( ) ; int j = 0 ; for ( int i = 0 ; i < ( matchs . size ( ) ) ; i ++ ) { Match m = matchs . get ( i ) ; m . setScore1 ( Integer . parseInt ( scores . get ( j ) ) ) ; m . setScore2 ( Integer . parseInt ( scores . get ( ( j + 1 ) ) ) ) ; matchs . set ( i , m ) ; <START_BUG> team_tournament . add ( winner ( teams . get ( j ) , teams . get ( ( j + 1 ) ) ) ) ; <END_BUG> j += 2 ; } removeAllMatchs ( ) ; gestionElimination ( ) ; } public void gestionElimination ( ) { } public Equipe winner ( Equipe e1 , Equipe e2 ) { } public void removeAllMatchs ( ) { } }

Fix:
team_tournament . add ( winner ( matchs . get ( i ) . e1 , matchs . get ( i ) . e2 ) ) ;
Buggy code:
public abstract class AbstractUnoChoiceParameter extends SimpleParameterDefinition implements UnoChoiceParameter { protected static final Logger LOGGER = Logger . getLogger ( AbstractUnoChoiceParameter . class . getName ( ) ) ; private static final long serialVersionUID = - 6027543114170652870L ; public static final String PARAMETER_TYPE_SINGLE_SELECT = "PT_SINGLE_SELECT" ; public static final String PARAMETER_TYPE_MULTI_SELECT = "PT_MULTI_SELECT" ; public static final String PARAMETER_TYPE_CHECK_BOX = "PT_CHECKBOX" ; public static final String PARAMETER_TYPE_RADIO = "PT_RADIO" ; public static final String ELEMENT_TYPE_TEXT_BOX = "ET_TEXT_BOX" ; public static final String ELEMENT_TYPE_ORDERED_LIST = "ET_ORDERED_LIST" ; public static final String ELEMENT_TYPE_UNORDERED_LIST = "ET_UNORDERED_LIST" ; public static final String ELEMENT_TYPE_FORMATTED_HTML = "ET_FORMATTED_HTML" ; public static final String ELEMENT_TYPE_FORMATTED_HIDDEN_HTML = "ET_FORMATTED_HIDDEN_HTML" ; public static final int DEFAULT_MAX_VISIBLE_ITEM_COUNT = 10 ; private String randomName ; protected AbstractUnoChoiceParameter ( String name , String description ) { } public String getRandomName ( ) { } @ Override public ParameterValue createValue ( String value ) { } @ Override public ParameterValue createValue ( StaplerRequest request , JSONObject json ) { if ( AbstractUnoChoiceParameter . LOGGER . isLoggable ( Level . FINE ) ) { AbstractUnoChoiceParameter . LOGGER . entering ( AbstractUnoChoiceParameter . class . getName ( ) , "createValue" , new Object [ ] { request , json } ) ; } final JSONObject parameterJsonModel = new JSONObject ( false ) ; final Object value = json . get ( "value" ) ; final Object name = json . get ( "name" ) ; final String valueAsText ; if ( JSONUtils . isArray ( value ) ) { valueAsText = ( ( net . sf . json . JSONArray ) ( value ) ) . join ( "," , true ) ; } else { <START_BUG> valueAsText = String . valueOf ( value ) ; <END_BUG> } parameterJsonModel . put ( "name" , name ) ; parameterJsonModel . put ( "value" , valueAsText ) ; StringParameterValue parameterValue = request . bindJSON ( StringParameterValue . class , parameterJsonModel ) ; parameterValue . setDescription ( getDescription ( ) ) ; return parameterValue ; } public abstract String getChoiceType ( ) { } public ParameterDescriptor getDescriptor ( ) { } public static DescriptorExtensionList < ParameterDefinition , ParameterDescriptor > all ( ) { } No newline ; at end ; of file ; }

Fix:
valueAsText = ( value == null ) ? "" : String . valueOf ( value ) ;
Buggy code:
public class ExtraCommander extends SQLCommander { public static final String TAG = ExtraCommander . class . getName ( ) ; public static ActivityDetail queryActivityDetail ( Long activityId ) { try { String [ ] names = Activity . QUERY_FIELDS ; EasyPreparedStatementBuilder builder = new EasyPreparedStatementBuilder ( ) ; List < JSONObject > results = builder . select ( names ) . from ( TABLE ) . where ( ID , "=" , activityId ) . execSelect ( ) ; if ( ( results == null ) || ( ( results . size ( ) ) != 1 ) ) throw new ActivityNotFoundException ( ) ; JSONObject activityJson = results . get ( 0 ) ; User host = queryUser ( Converter . toLong ( activityJson . get ( HOST_ID ) ) ) ; ActivityDetail activityDetail = new ActivityDetail ( activityJson ) ; activityDetail . setHost ( host ) ; List < Image > images = ExtraCommander . queryImages ( activityId ) ; <START_BUG> activityDetail . setImages ( images ) ; <END_BUG> List < BasicUser > appliedParticipants = queryAppliedParticipants ( activityId ) ; List < BasicUser > selectedParticipants = querySelectedParticipants ( activityId ) ; List < BasicUser > presentParticipants = new LinkedList < > ( ) ; activityDetail . setAppliedParticipants ( appliedParticipants ) ; activityDetail . setPresentParticipants ( presentParticipants ) ; activityDetail . setSelectedParticipants ( selectedParticipants ) ; return activityDetail ; } catch ( Exception e ) { Loggy . e ( ExtraCommander . TAG , "queryActivityDetail" , e ) ; } return null ; } public static boolean appendParticipantInfoForActivityDetail ( final List < ActivityDetail > activityList ) { } public static boolean deleteActivity ( long activityId ) { } public static long uploadAvatar ( User user , String imageURL ) { } public static Image queryImage ( int imageId ) { } public static List < Image > queryImages ( Long activityId ) { } public static List < Image > queryImages ( List < Long > activityIdList ) { } public static long createImage ( final User user , final Activity activity , final String imageURL ) { } protected static boolean deleteImageRecord ( long imageId ) { } public static boolean deleteImageRecordAndFile ( Image image ) { } public static boolean deleteImageRecordAndFile ( Image image , long activityId ) { } public static long saveAvatar ( FilePart imageFile , User user ) { } public static long saveImageOfActivity ( FilePart imageFile , User user , Activity activity ) { } public static boolean deleteComments ( Long activityId ) { } public static boolean deleteAssessments ( Long activityId ) { } }

Fix:
activityDetail . setImageList ( images ) ;
Buggy code:
@ Entity @ Table ( name = "alias_addresses" ) public class InetAddressRecord { private static Logger logger = new Logger ( InetAddressRecord . class ) ; @ ManyToMany ( cascade = CascadeType . ALL ) private List < PlayerNameRecord > playerNames ; @ Id private int id ; @ NotNull private String address ; @ NotNull private long lastSeen ; public static InetAddressRecord findByAddress ( Database database , String address , boolean create ) { InetAddressRecord . logger . debug ( String . format ( "Attempting<seq2seq4repair_space>to<seq2seq4repair_space>return<seq2seq4repair_space>InetAddressRecord<seq2seq4repair_space>matching<seq2seq4repair_space>the<seq2seq4repair_space>address<seq2seq4repair_space>%s." , address ) ) ; <START_BUG> InetAddressRecord record = database . getEbeanServer ( ) . find ( InetAddressRecord . class ) . where ( ) . eq ( "address" , address ) . findUnique ( ) ; <END_BUG> if ( ( record == null ) && ( create == true ) ) { InetAddressRecord . logger . debug ( String . format ( "Creating<seq2seq4repair_space>new<seq2seq4repair_space>InetAddressRecord<seq2seq4repair_space>for<seq2seq4repair_space>address<seq2seq4repair_space>%s." , address . toString ( ) ) ) ; record = new InetAddressRecord ( ) ; record . setAddress ( address . toString ( ) ) ; record . updateLastSeen ( ) ; database . save ( record ) ; } return record ; } public void updateLastSeen ( ) { } public String getAddress ( ) { } public void setAddress ( String address ) { } public long getLastSeen ( ) { } public void setLastSeen ( long lastSeen ) { } @ ManyToMany ( targetEntity = PlayerNameRecord . class ) @ JoinTable ( name = "alias_players_addresses" , joinColumns = @ JoinColumn ( name = "player_id" , referencedColumnName = "id" ) , inverseJoinColumns = @ JoinColumn ( name = "address_id" , referencedColumnName = "id" ) ) public List < PlayerNameRecord > getPlayerNames ( ) { } public void setPlayerNames ( List < PlayerNameRecord > playerNames ) { } public int getId ( ) { } public void setId ( int id ) { } }

Fix:
InetAddressRecord record = database . getEbeanServer ( ) . find ( InetAddressRecord . class ) . where ( ) . ieq ( "address" , address ) . findUnique ( ) ;
Buggy code:
public class LogstashFormatter { private static final ObjectMapper MAPPER = new ObjectMapper ( ) . configure ( JsonGenerator . Feature . ESCAPE_NON_ASCII , true ) ; private static final FastDateFormat ISO_DATETIME_TIME_ZONE_FORMAT_WITH_MILLIS = FastDateFormat . getInstance ( "yyyy-MM-dd'T'HH:mm:ss.SSSZZ" ) ; private static final StackTraceElement DEFAULT_CALLER_DATA = new StackTraceElement ( "" , "" , "" , 0 ) ; private boolean includeCallerInfo ; private JsonNode customFields ; public LogstashFormatter ( ) { } public LogstashFormatter ( boolean includeCallerInfo ) { } public LogstashFormatter ( boolean includeCallerInfo , JsonNode customFields ) { } public byte [ ] writeValueAsBytes ( ILoggingEvent event , Context context ) throws IOException { } public String writeValueAsString ( ILoggingEvent event , Context context ) throws IOException { } private ObjectNode eventToNode ( ILoggingEvent event , Context context ) { } private void createFields ( ILoggingEvent event , Context context , ObjectNode eventNode ) { } private ArrayNode createTags ( ILoggingEvent event ) { ArrayNode node = null ; final Marker marker = event . getMarker ( ) ; if ( marker != null ) { node = LogstashFormatter . MAPPER . createArrayNode ( ) ; if ( ! ( marker . getName ( ) . equals ( "JSON" ) ) ) { node . add ( marker . getName ( ) ) ; } if ( marker . hasReferences ( ) ) { final Iterator < ? > i = event . getMarker ( ) . iterator ( ) ; while ( i . hasNext ( ) ) { Marker next = ( ( Marker ) ( i . next ( ) ) ) ; <START_BUG> if ( ! ( marker . getName ( ) . equals ( "JSON" ) ) ) { <END_BUG> node . add ( next . getName ( ) ) ; } } } } return node ; } private void addPropertiesAsFields ( final ObjectNode fieldsNode , final Map < String , String > properties ) { } private JsonNode getJsonNode ( ILoggingEvent event ) { } private StackTraceElement extractCallerData ( final ILoggingEvent event ) { } private void addCustomFields ( ObjectNode eventNode ) { } public boolean isIncludeCallerInfo ( ) { } public void setIncludeCallerInfo ( boolean includeCallerInfo ) { } public static JsonNode parseCustomFields ( String customFields ) throws JsonParseException , JsonProcessingException , IOException { } public void setCustomFieldsFromString ( String customFields , ContextAware contextAware ) { } public void setCustomFields ( JsonNode customFields ) { } public JsonNode getCustomFields ( ) { } }

Fix:
if ( ! ( next . getName ( ) . equals ( "JSON" ) ) ) {
Buggy code:
public class BookDetailActivity extends SlidingActivity { private Toolbar mToolBar ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_book_view ) ; mToolBar = ( ( Toolbar ) ( findViewById ( book_detail_toolbar ) ) ) ; setSupportActionBar ( mToolBar ) ; getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; <START_BUG> setTitle ( "书本详细" ) ; <END_BUG> } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
setTitle ( ( "《" + ( "平凡的世界" + "》" ) ) ) ;
Buggy code:
public class WorkbenchPresentationFactory extends AbstractPresentationFactory { private static int editorTabPosition = WorkbenchPlugin . getDefault ( ) . getPreferenceStore ( ) . getInt ( EDITOR_TAB_POSITION ) ; private static int viewTabPosition = WorkbenchPlugin . getDefault ( ) . getPreferenceStore ( ) . getInt ( VIEW_TAB_POSITION ) ; public StackPresentation createEditorPresentation ( Composite parent , IStackPresentationSite site ) { } public StackPresentation createViewPresentation ( Composite parent , IStackPresentationSite site ) { DefaultTabFolder folder = new DefaultTabFolder ( parent , ( ( WorkbenchPresentationFactory . viewTabPosition ) | ( SWT . BORDER ) ) , site . supportsState ( STATE_MINIMIZED ) , site . supportsState ( STATE_MAXIMIZED ) ) ; final IPreferenceStore store = PlatformUI . getPreferenceStore ( ) ; final int minimumCharacters = store . getInt ( VIEW_MINIMUM_CHARACTERS ) ; if ( minimumCharacters >= 0 ) { folder . setMinimumCharacters ( minimumCharacters ) ; } PresentablePartFolder partFolder = new PresentablePartFolder ( folder ) ; folder . setUnselectedCloseVisible ( false ) ; <START_BUG> folder . setUnselectedImageVisible ( false ) ; <END_BUG> TabbedStackPresentation result = new TabbedStackPresentation ( site , partFolder , new org . eclipse . ui . internal . presentations . util . StandardViewSystemMenu ( site ) ) ; DefaultThemeListener themeListener = new DefaultThemeListener ( folder , result . getTheme ( ) ) ; result . getTheme ( ) . addListener ( themeListener ) ; new org . eclipse . ui . internal . presentations . defaultpresentation . DefaultSimpleTabListener ( result . getApiPreferences ( ) , IWorkbenchPreferenceConstants . SHOW_TRADITIONAL_STYLE_TABS , folder ) ; return result ; } public StackPresentation createStandaloneViewPresentation ( Composite parent , IStackPresentationSite site , boolean showTitle ) { } }

Fix:
folder . setUnselectedImageVisible ( true ) ;
Buggy code:
public class TypeLit extends Const implements Literal { private Object _val ; private int _ptype ; public TypeLit ( Object val , int ptype ) { } public Class getType ( ) { } public void setImplicitType ( Class type ) { } public int getParseType ( ) { } public Object getValue ( ) { } public void setValue ( Object val ) { } public Object getValue ( Object [ ] params ) { } public ExpState initialize ( Select sel , ExpContext ctx , int flags ) { } private static class LitExpState extends ConstExpState { public Object sqlValue ; public int otherLength ; public ClassMapping mapping = null ; public Discriminator disc = null ; public Object discValue = null ; } public void calculateValue ( Select sel , ExpContext ctx , ExpState state , Val other , ExpState otherState ) { } public void appendTo ( Select sel , ExpContext ctx , ExpState state , SQLBuffer sql , int index ) { } private String getDiscriminator ( TypeLit . LitExpState lstate ) { <START_BUG> StringBuffer disc = new StringBuffer ( lstate . discValue . toString ( ) ) ; <END_BUG> switch ( lstate . disc . getJavaType ( ) ) { case JavaTypes . INT : return disc . toString ( ) ; case JavaTypes . CHAR : case JavaTypes . STRING : default : return disc . insert ( 0 , "'" ) . append ( "'" ) . toString ( ) ; } } }

Fix:
StringBuilder disc = new StringBuilder ( lstate . discValue . toString ( ) ) ;
Buggy code:
public class EconomyHandler { public Waypoint plugin ; public static Config config ; private Economy economy ; private boolean enableable ; private boolean enabled ; private Logger log ; public EconomyHandler ( Waypoint instance ) { } private static boolean configured ( ) { } public Economy getEconomy ( ) { } public boolean setupEconomy ( ) { <START_BUG> if ( this . enableable = false ) { <END_BUG> this . log . info ( "[Waypoint]<seq2seq4repair_space>Economy<seq2seq4repair_space>support<seq2seq4repair_space>disabled." ) ; return false ; } if ( ( this . plugin . getServer ( ) . getPluginManager ( ) . getPlugin ( "Vault" ) ) == null ) { this . log . info ( "[Waypoint]<seq2seq4repair_space>Economy<seq2seq4repair_space>support<seq2seq4repair_space>disabled<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>lack<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>Vault<seq2seq4repair_space>plugin." ) ; return false ; } RegisteredServiceProvider < Economy > economyProvider = this . plugin . getServer ( ) . getServicesManager ( ) . getRegistration ( Economy . class ) ; this . economy = economyProvider . getProvider ( ) ; this . enabled = true ; return ( economy ) != null ; } public boolean debitPlayer ( String player , EconomyCost co ) { } public boolean debitPlayer ( String player , double amount ) { } No newline ; at end ; of file ; }

Fix:
if ( ! ( enableable ) ) {
Buggy code:
class PolygonScaleHandle extends AbstractHandle { private Point fCurrent ; public PolygonScaleHandle ( PolygonFigure owner ) { } public void invokeStart ( int x , int y , DrawingView view ) { } public void invokeStep ( int x , int y , int anchorX , int anchorY , DrawingView view ) { } public void invokeEnd ( int x , int y , int anchorX , int anchorY , DrawingView view ) { } public Point locate ( ) { } Point getOrigin ( ) { } public void draw ( Graphics g ) { } protected Undoable createUndoActivity ( DrawingView newView ) { } public static class UndoActivity extends UndoableAdapter { private Polygon myPolygon ; public UndoActivity ( DrawingView newView ) { } public boolean undo ( ) { } public boolean redo ( ) { } protected boolean resetPolygon ( ) { FigureEnumeration fe = getAffectedFigures ( ) ; <START_BUG> if ( ! ( fe . hasMoreElements ( ) ) ) { <END_BUG> return false ; } PolygonFigure figure = ( ( PolygonFigure ) ( fe . nextFigure ( ) ) ) ; Polygon backupPolygon = figure . getPolygon ( ) ; figure . willChange ( ) ; figure . setInternalPolygon ( getPolygon ( ) ) ; figure . changed ( ) ; setPolygon ( backupPolygon ) ; return true ; } protected void setPolygon ( Polygon newPolygon ) { } public Polygon getPolygon ( ) { } } }

Fix:
if ( ! ( fe . hasNextFigure ( ) ) ) {
Buggy code:
public class PropertiesFactory { private static final Log log = LogFactory . getLog ( PropertiesFactory . class ) ; private final Map propertiesCache = new HashMap ( ) ; private final List afterReloadListeners = new ArrayList ( ) ; public PropertiesFactory ( ) { } public void addListener ( final IPropertiesReloadListener listener ) { } public final Properties get ( final Application application , final Class clazz , final String style , final Locale locale ) { final String key = createResourceKey ( clazz , locale , style ) ; Properties props = ( ( Properties ) ( propertiesCache . get ( key ) ) ) ; if ( ( props == null ) && ( ( propertiesCache . containsKey ( key ) ) == false ) ) { <START_BUG> final IResourceStream resource = application . getResourceSettings ( ) . getResourceStreamLocator ( ) . locate ( clazz , style , locale , "properties" ) ; <END_BUG> if ( resource != null ) { props = loadPropertiesFileAndWatchForChanges ( key , resource , clazz , style , locale ) ; } synchronized ( propertiesCache ) { propertiesCache . put ( key , props ) ; } } return props ; } public final void clearCache ( ) { } public final String createResourceKey ( final Class componentClass , final Locale locale , final String style ) { } private synchronized Properties loadPropertiesFile ( final String key , final IResourceStream resourceStream , final Class componentClass , final String style , final Locale locale ) { } private final Properties loadPropertiesFileAndWatchForChanges ( final String key , final IResourceStream resourceStream , final Class componentClass , final String style , final Locale locale ) { } }

Fix:
final IResourceStream resource = application . getResourceSettings ( ) . getResourceStreamLocator ( ) . locate ( clazz , clazz . getName ( ) . replace ( '.' , '//' ) , style , locale , "properties" ) ;
Buggy code:
public class Test implements TestMBean { Logger log = Logger . getLogger ( Test . class . getName ( ) ) ; @ Override public String echo ( String s ) { log . info ( "-----><seq2seq4repair_space>In<seq2seq4repair_space>test()" ) ; log . info ( "-----><seq2seq4repair_space>Found<seq2seq4repair_space>BeanWithSimpleInjected,<seq2seq4repair_space>calling<seq2seq4repair_space>echo(\"Test\")" ) ; <START_BUG> final BeanWithSimpleInjected bean = LookupService . bean ; <END_BUG> s = bean . echo ( s ) ; if ( ( bean . getSimple ( ) ) == null ) { throw new RuntimeException ( "Injection<seq2seq4repair_space>not<seq2seq4repair_space>complete" ) ; } log . info ( ( "-----><seq2seq4repair_space>echo<seq2seq4repair_space>returned<seq2seq4repair_space>" + s ) ) ; return s ; } }

Fix:
final BeanWithSimpleInjected bean = LookupService . getBean ( ) ;
Buggy code:
public class SystemTableTest extends CleanupHelper { @ Test public void testOnlyOnceCreationOfStorageMetadata ( ) throws IOException { } @ Test public void testTokenGetsUpdated ( ) throws IOException { SystemTable . StorageMetadata storageMetadata1 = SystemTable . initMetadata ( ) ; <START_BUG> SystemTable . updateToken ( StorageService . getPartitioner ( ) . getToken ( "503545744:0" ) ) ; <END_BUG> SystemTable . StorageMetadata storageMetadata2 = SystemTable . initMetadata ( ) ; Assert . assertTrue ( "smd<seq2seq4repair_space>should<seq2seq4repair_space>still<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>singleton<seq2seq4repair_space>after<seq2seq4repair_space>updateToken" , ( storageMetadata1 == storageMetadata2 ) ) ; } }

Fix:
SystemTable . updateToken ( StorageService . getPartitioner ( ) . getToken ( "503545744:0" . getBytes ( ) ) ) ;
Buggy code:
public class Quest_Main extends Activity { Button storage ; Button wood_chopper ; Button apple_collector ; Button leaf_collector ; Button hunter ; Button purifier ; int wood_counter ; int apple_counter ; int coin_counter ; Boolean purifier_b ; Boolean hunter_b ; Boolean apple_collector_b ; Boolean wood_chopper_b ; Boolean leaf_collector_b ; TextView log ; public boolean onOptionsItemSelected ( MenuItem item ) { switch ( item . getItemId ( ) ) { case id . home : Intent openMain = new Intent ( this , Cave . class ) ; startActivity ( openMain ) ; <START_BUG> overridePendingTransition ( slide_in_right , slide_out_right ) ; <END_BUG> break ; default : return super . onOptionsItemSelected ( item ) ; } return false ; } @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public void onBackPressed ( ) { } @ Override public void onPause ( ) { } public void UpdateText ( ) { } public void buttonWoodChopper ( View v ) { } public void buttonAppleCollector ( View v ) { } public void buttonHunter ( View v ) { } public void buttonLeafCollector ( View v ) { } public void buttonPurifier ( View v ) { } }

Fix:
overridePendingTransition ( slide_in_left , slide_out_left ) ;
Buggy code:
public final class DaemonConfig { private static final DaemonConfig instance = new DaemonConfig ( ) ; private static String uri = "" ; private static String username = "" ; private static String password = "" ; private String filename = "VoiceAdaptationServer.config" ; private final File configFile ; Properties props ; private final LinkedHashMap < String , String > keys = new LinkedHashMap < String , String > ( ) ; private void populateKeys ( ) { } private void setProperty ( String key ) { } private void verifyProperties ( ) { } public void resetConfig ( ) { } private DaemonConfig ( ) { } public static synchronized DaemonConfig getInstance ( ) { } public String getProp ( String key ) { } public String getDbUri ( ) { } public String getDbUser ( ) { } public String getDbPassword ( ) { } public String getMaxThreads ( ) { } public String getVoiceDir ( ) { <START_BUG> return this . getProp ( "voice-adaptation" ) ; <END_BUG> } public String getBaseFilePath ( ) { } private void createConfigFile ( ) throws IOException { } }

Fix:
return this . getProp ( "adaptation-dir" ) ;
Buggy code:
class Converter implements Expression . Visitor { private final List < Command > commands ; private ReferenceScope scope ; Converter ( ReferenceScope theScope ) { } Converter ( ReferenceScope theScope , List < Command > theCommands ) { } List < Command > convert ( Expression expression ) { } private Reference getReference ( Expression . Variable variable ) throws SymbolNotFoundException { } private Reference getReference ( Expression . UnaryOperation operation ) throws SymbolNotFoundException { } private Reference getReference ( Expression . BinaryOperation operation ) throws SymbolNotFoundException { } private Converter createChild ( List < String > symbols ) { } public void visit ( Expression . Integer node ) { } public void visit ( Expression . Variable node ) { } public void visit ( Expression . EmptyList node ) { } public void visit ( Expression . UnaryOperation node ) { } public void visit ( Expression . BinaryOperation node ) { } public void visit ( Expression . Apply node ) { } public void visit ( Expression . If node ) { } public void visit ( Expression . Lambda node ) { } public void visit ( Expression . Let node ) { final DeclarationsHelper helper = new DeclarationsHelper ( node . getDeclarations ( ) ) ; final Converter child = createChild ( helper . getNames ( ) ) ; final List < Expression > expressions = helper . getExpressions ( ) ; final List < Statement > statements = new ArrayList < Statement > ( expressions . size ( ) ) ; for ( Expression expression : expressions ) { statements . add ( new Statement ( child . convert ( expression ) ) ) ; } commands . add ( new Command . AllocateFrame ( statements ) ) ; <START_BUG> node . getExpression ( ) . accept ( this ) ; <END_BUG> commands . add ( FREE_FRAME ) ; } private class IfConverter { private final If node ; private IfConverter ( Expression . If theNode ) { } private List < Command > getThenCommands ( ) { } private List < Command > getElseCommands ( ) { } } class FailedException extends RuntimeException { private FailedException ( Throwable cause ) { } } }

Fix:
commands . addAll ( child . convert ( node . getExpression ( ) ) ) ;