nus-yam/ex-repair huggingface dataset:
Buggy code:
public final class SQLCaster { private SQLCaster ( ) { } public static Object toSqlType ( SQLItem item ) throws DatabaseException , PageException { Object value = item . getValue ( ) ; try { if ( ( item . isNulls ( ) ) || ( value == null ) ) { return null ; } int type = item . getType ( ) ; switch ( type ) { case Types . BIGINT : return Caster . toLong ( value ) ; case Types . BIT : return Caster . toBoolean ( value ) ; case Types . BLOB : return BlobImpl . toBlob ( value ) ; case Types . CHAR : return Caster . toString ( value ) ; case Types . CLOB : case Types . NCLOB : return ClobImpl . toClob ( value ) ; case Types . DATE : return new java . sql . Date ( Caster . toDate ( value , null ) . getTime ( ) ) ; case Types . NUMERIC : case Types . DECIMAL : <START_BUG> return new BigDecimal ( Caster . toDoubleValue ( value ) ) ; <END_BUG> case Types . DOUBLE : return Caster . toDouble ( value ) ; case Types . FLOAT : return Caster . toFloat ( value ) ; case Types . VARBINARY : case Types . LONGVARBINARY : case Types . BINARY : return Caster . toBinary ( value ) ; case Types . REAL : return Caster . toFloat ( value ) ; case Types . TINYINT : return Caster . toByte ( value ) ; case Types . SMALLINT : return Caster . toShort ( value ) ; case Types . INTEGER : return Caster . toInteger ( value ) ; case Types . VARCHAR : case Types . LONGVARCHAR : case CFTypes . VARCHAR2 : case Types . NVARCHAR : return Caster . toString ( value ) ; case Types . TIME : return new java . sql . Time ( Caster . toDate ( value , null ) . getTime ( ) ) ; case Types . TIMESTAMP : return new java . sql . Timestamp ( Caster . toDate ( value , null ) . getTime ( ) ) ; case Types . OTHER : default : if ( value instanceof DateTime ) return new java . sql . Date ( Caster . toDate ( value , null ) . getTime ( ) ) ; if ( value instanceof Array ) return Caster . toList ( value ) ; if ( value instanceof Struct ) return Caster . toMap ( value ) ; return value ; } } catch ( PageException pe ) { if ( ( value instanceof String ) && ( StringUtil . isEmpty ( ( ( String ) ( value ) ) ) ) ) return null ; throw pe ; } } public static void setValue ( PreparedStatement stat , int parameterIndex , SQLItem item ) throws SQLException , DatabaseException , PageException { } public static String toString ( SQLItem item ) { } private static String _toString ( SQLItem item ) throws PageException { } public static Object toCFTypex ( SQLItem item ) throws PageException { } public static Object toCFTypeEL ( SQLItem item ) { } private static Object _toCFTypex ( SQLItem item ) throws PageException { } public static Object toCFType ( Object value , Object defaultValue ) { } public static Object toCFType ( Object value ) throws PageException { } public static Object toCFType ( Object value , int type ) throws PageException { } private static String matchString ( SQLItem item ) throws PageException { } public static String toStringType ( int type ) throws DatabaseException { } public static int toIntType ( String strType ) throws DatabaseException { } No newline ; at end ; of file ; }

Fix:
return new BigDecimal ( Caster . toDouble ( value ) . toString ( ) ) ;
Buggy code:
public class ChangeSetExtent extends AbstractDelegateExtent { private final ChangeSet changeSet ; public ChangeSetExtent ( Extent extent , ChangeSet changeSet ) { } @ Override public boolean setBlock ( Vector location , BaseBlock block ) throws WorldEditException { } @ Nullable @ Override public Entity createEntity ( Location location , BaseEntity state ) { Entity entity = super . createEntity ( location , state ) ; <START_BUG> if ( state != null ) { <END_BUG> changeSet . add ( new com . sk89q . worldedit . history . change . EntityCreate ( location , state , entity ) ) ; } return entity ; } @ Override public List < ? extends Entity > getEntities ( ) { } @ Override public List < ? extends Entity > getEntities ( Region region ) { } private List < ? extends Entity > wrapEntities ( List < ? extends Entity > entities ) { } private class TrackedEntity implements Entity { private final Entity entity ; private TrackedEntity ( Entity entity ) { } @ Override public BaseEntity getState ( ) { } @ Override public Location getLocation ( ) { } @ Override public Extent getExtent ( ) { } @ Override public boolean remove ( ) { } @ Nullable @ Override public < T > T getFacet ( Class < ? extends T > cls ) { } } }

Fix:
if ( entity != null ) {
Buggy code:
public class DictionaryWordPredictor { static final String [ ] ALPHABET = new String [ ] { "a" , "b" , "c" , "d" , "e" , "f" , "g" , "h" , "i" , "j" , "k" , "l" , "m" , "n" , "o" , "p" , "q" , "r" , "s" , "t" , "u" , "v" , "w" , "x" , "y" , "z" } ; static final String CSV_DELIMITER = "," ; private ArrayList < Letter > letters = new ArrayList < Letter > ( ) ; public DictionaryWordPredictor ( String filePath ) { } public ArrayList < Letter > readLetterOccurrencesFromFile ( String filePath ) { } public double predict ( String word ) { double wordChance = 1 ; String [ ] CharactersFromWord = word . split ( "" ) ; for ( int i = 0 ; i < ( CharactersFromWord . length ) ; i ++ ) { <START_BUG> if ( ( i + 1 ) <= ( CharactersFromWord . length ) ) { <END_BUG> String firstCharacter = CharactersFromWord [ i ] ; String nextCharacter = CharactersFromWord [ ( i + 1 ) ] ; int characterIndex = searchForCharacterIndex ( nextCharacter ) ; Letter letter = searchForLetterObject ( firstCharacter ) ; double letterChance = letter . calculateFollowingLetterChance ( characterIndex ) ; wordChance = wordChance * letterChance ; } else { } } return wordChance ; } public Letter searchForLetterObject ( String letterCharacter ) { } public int searchForCharacterIndex ( String character ) { } }

Fix:
if ( ( i + 1 ) < ( CharactersFromWord . length ) ) {
Buggy code:
public class Zone { public static final int CACHE = 1 ; public static final int PRIMARY = 2 ; public static final int SECONDARY = 3 ; private Hashtable data ; private Name origin = null ; private int type ; public Zone ( String file , int _type , Zone cache ) throws IOException { } public Hashtable findName ( Name name ) { } public Name getOrigin ( ) { } public RRset getNS ( ) { } public SOARecord getSOA ( ) { } Name parseOrigin ( MyStringTokenizer st ) throws IOException { } Record parseRR ( MyStringTokenizer st , boolean useLast , Record last , Name origin ) throws IOException { } public void addRR ( Record record ) { Hashtable nametable = ( ( Hashtable ) ( data . get ( record . getName ( ) ) ) ) ; if ( nametable == null ) { nametable = new Hashtable ( ) ; data . put ( record . name , nametable ) ; } RRset rrset = ( ( RRset ) ( nametable . get ( new Short ( record . getType ( ) ) ) ) ) ; if ( rrset == null ) { <START_BUG> rrset = new RRset ( record . getName ( ) , record . getType ( ) ) ; <END_BUG> nametable . put ( new Short ( record . getType ( ) ) , rrset ) ; } rrset . addRR ( record ) ; } }

Fix:
rrset = new RRset ( ) ;
Buggy code:
public class ArrayAllocationExpression extends Expression { public TypeReference type ; public Expression [ ] dimensions ; public ArrayInitializer initializer ; public ArrayAllocationExpression ( ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { TypeBinding referenceType = type . resolveType ( scope , true ) ; constant = Constant . NotAConstant ; if ( referenceType == ( VoidBinding ) ) { scope . problemReporter ( ) . cannotAllocateVoidArray ( this ) ; referenceType = null ; } int explicitDimIndex = - 1 ; for ( int i = dimensions . length ; ( -- i ) >= 0 ; ) { if ( ( dimensions [ i ] ) != null ) { if ( explicitDimIndex < 0 ) explicitDimIndex = i ; } else if ( explicitDimIndex > 0 ) { scope . problemReporter ( ) . incorrectLocationForEmptyDimension ( this , i ) ; } } if ( ( initializer ) == null ) { if ( explicitDimIndex < 0 ) { scope . problemReporter ( ) . mustDefineDimensionsOrInitializer ( this ) ; } <START_BUG> if ( ( referenceType != null ) && ( ( ( referenceType . isBoundParameterizedType ( ) ) || ( referenceType . isGenericType ( ) ) ) || ( referenceType . isTypeVariable ( ) ) ) ) { <END_BUG> scope . problemReporter ( ) . illegalGenericArray ( referenceType , this ) ; } } else if ( explicitDimIndex >= 0 ) { scope . problemReporter ( ) . cannotDefineDimensionsAndInitializer ( this ) ; } for ( int i = 0 ; i <= explicitDimIndex ; i ++ ) { if ( ( dimensions [ i ] ) != null ) { TypeBinding dimensionType = dimensions [ i ] . resolveTypeExpecting ( scope , IntBinding ) ; if ( dimensionType != null ) { dimensions [ i ] . computeConversion ( scope , IntBinding , dimensionType ) ; } } } if ( referenceType != null ) { if ( ( dimensions . length ) > 255 ) { scope . problemReporter ( ) . tooManyDimensions ( this ) ; } this . resolvedType = scope . createArrayType ( referenceType , dimensions . length ) ; if ( ( initializer ) != null ) { if ( ( initializer . resolveTypeExpecting ( scope , this . resolvedType ) ) != null ) initializer . binding = ( ( ArrayBinding ) ( this . resolvedType ) ) ; } } return this . resolvedType ; } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
if ( ( referenceType != null ) && ( ! ( referenceType . isReifiable ( ) ) ) ) {
Buggy code:
@ SuppressWarnings ( "restriction" ) public class RestoreAllRegisteredPerspectivesProvider { private static final String FIRST_TIME_LAUNCH_PREF = "first.time.launch" ; private static Logger log = Logger . getLogger ( RestoreAllRegisteredPerspectivesProvider . class ) ; @ Inject private IWorkbench workbench ; @ Inject private EModelService fModelService ; @ Inject @ Optional private MWindow fWindow ; @ Inject private EPartService fPartService ; @ Inject private MApplication fApp ; @ Inject @ Preference IEclipsePreferences wsPreferences ; private IExtensionTracker fTracker ; private MPerspectiveStack fPerspectiveStack ; private ShowPerspectivesAtStartupRegistryReader regReader ; protected IExtensionTracker getExtensionTracker ( Display display ) { } protected MPerspectiveStack getMPerspectiveStack ( ) { } protected ShowPerspectivesAtStartupRegistryReader getStartupRegReader ( ) { } public void restoreAlwaysVisiblePerspectives ( ) { } private void activateTheProperPerspective ( final MPerspectiveStack mPerspStack , MPerspective initialSelectedPerspective ) { if ( mPerspStack != null ) { MPerspective perspectiveToSelect = null ; boolean firstTimeLaunch = wsPreferences . getBoolean ( RestoreAllRegisteredPerspectivesProvider . FIRST_TIME_LAUNCH_PREF , true ) ; if ( ( mPerspStack . getChildren ( ) . contains ( initialSelectedPerspective ) ) && ( ! firstTimeLaunch ) ) { perspectiveToSelect = initialSelectedPerspective ; } else { if ( GlobalServiceRegister . getDefault ( ) . isServiceRegistered ( IBrandingService . class ) ) { IBrandingService service = ( ( IBrandingService ) ( GlobalServiceRegister . getDefault ( ) . getService ( IBrandingService . class ) ) ) ; String defaultPerspectiveId = service . getBrandingConfiguration ( ) . getInitialWindowPerspectiveId ( ) ; <START_BUG> List < MPerspective > matchPerspectives = fModelService . findElements ( mPerspStack , MPerspective . class , IN_ACTIVE_PERSPECTIVE , new ElementMatcher ( defaultPerspectiveId , null , ( ( String ) ( null ) ) ) ) ; <END_BUG> if ( ! ( matchPerspectives . isEmpty ( ) ) ) { perspectiveToSelect = matchPerspectives . get ( 0 ) ; } } else { if ( ! ( mPerspStack . getChildren ( ) . isEmpty ( ) ) ) { perspectiveToSelect = mPerspStack . getChildren ( ) . get ( 0 ) ; } } } if ( perspectiveToSelect != null ) { mPerspStack . setSelectedElement ( perspectiveToSelect ) ; } else { RestoreAllRegisteredPerspectivesProvider . log . info ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>Select<seq2seq4repair_space>the<seq2seq4repair_space>default<seq2seq4repair_space>perspective" ) ; } wsPreferences . putBoolean ( RestoreAllRegisteredPerspectivesProvider . FIRST_TIME_LAUNCH_PREF , false ) ; } } protected void restorePerspective ( MPerspectiveStack mPerspStack , String id ) { } }

Fix:
List < MPerspective > matchPerspectives = fModelService . findElements ( mPerspStack , MPerspective . class , IN_ANY_PERSPECTIVE , new ElementMatcher ( defaultPerspectiveId , null , ( ( String ) ( null ) ) ) ) ;
Buggy code:
public class Server implements IStreamListener { private IProject fProject ; private StringBuilder fErrors ; private String fHost ; private int fPort ; private ILaunch fLaunch ; public Server ( ILaunch launch , IProject project ) throws CoreException { } private void init ( ) throws CoreException { } public String getHost ( ) { } public void setHost ( String host ) { } public String getSocketString ( ) { } public int getPort ( ) { } public void setPort ( int port ) { } public IProcess getProcess ( ) { } public IProject getProject ( ) { } public boolean isListening ( ) throws DebugException { URL testUrl ; try { <START_BUG> testUrl = new URL ( "http" , getHost ( ) , getPort ( ) , "//" ) ; <END_BUG> HttpURLConnection conn = ( ( HttpURLConnection ) ( testUrl . openConnection ( ) ) ) ; conn . setRequestMethod ( "HEAD" ) ; conn . getResponseCode ( ) ; } catch ( IOException e ) { return false ; } return true ; } private boolean hasErrors ( ) { } public void streamAppended ( String text , IStreamMonitor monitor ) { } }

Fix:
testUrl = new URL ( "http" , getHost ( ) , getPort ( ) , "//index.html" ) ;
Buggy code:
public class ContextImpl extends Context { private Entity entity ; private ContextImpl parent ; private VariableResolverImpl resolver ; private DataSource ds ; private int currProcess ; private Map < String , Object > requestParams ; private DataImporter dataImporter ; private Map < String , Object > entitySession ; private Map < String , Object > globalSession ; private Map < String , Object > docSession ; public ContextImpl ( DataConfig . Entity entity , VariableResolverImpl resolver , DataSource ds , int currProcess , Map < String , Object > requestParams , Map < String , Object > global , ContextImpl p , DataImporter di ) { } public String getEntityAttribute ( String name ) { } public List < Map < String , String > > getAllEntityFields ( ) { } public VariableResolver getVariableResolver ( ) { } public DataSource getDataSource ( ) { } public DataSource getDataSource ( String name ) { <START_BUG> return dataImporter . getDataSourceInstance ( entity ) ; <END_BUG> } public boolean isRootEntity ( ) { } public int currentProcess ( ) { } public Map < String , Object > getRequestParameters ( ) { } public EntityProcessor getEntityProcessor ( ) { } public void setSessionAttribute ( String name , Object val , String scope ) { } public Object getSessionAttribute ( String name , String scope ) { } public Context getParentContext ( ) { } public Map < String , Object > getDocSession ( ) { } public void setDocSession ( Map < String , Object > docSession ) { } public SolrCore getSolrCore ( ) { } }

Fix:
return dataImporter . getDataSourceInstance ( entity , name , this ) ;
Buggy code:
@ Component public class FacilityHelper { @ Autowired FacilityService facilityService ; public Map < String , Object > locationMap ( ) { } private List < FacilityVO > facilityVOs ( List < Facility > facilities ) { } public FacilityForm copyFacilityValuesToForm ( Facility facility ) { FacilityForm facilityForm = new FacilityForm ( ) ; facilityForm . setAdditionalPhoneNumber1 ( facility . additionalPhoneNumber1 ( ) ) ; facilityForm . setAdditionalPhoneNumber2 ( facility . additionalPhoneNumber2 ( ) ) ; facilityForm . setAdditionalPhoneNumber3 ( facility . additionalPhoneNumber3 ( ) ) ; facilityForm . setPhoneNumber ( facility . phoneNumber ( ) ) ; facilityForm . setCountry ( facility . country ( ) ) ; facilityForm . setCountyDistrict ( facility . district ( ) ) ; facilityForm . setName ( facility . name ( ) ) ; facilityForm . setRegion ( facility . region ( ) ) ; facilityForm . setStateProvince ( facility . province ( ) ) ; facilityForm . setId ( facility . mrsFacilityId ( ) ) ; <START_BUG> facilityForm . setMotechId ( facility . motechId ( ) ) ; <END_BUG> return facilityForm ; } public void handleExistingFacilityError ( BindingResult bindingResult , ModelMap modelMap , String message , String formName ) { } public String getFacilityForId ( ModelMap modelMap , Facility facility ) { } }

Fix:
facilityForm . setFacilityId ( facility . motechId ( ) ) ;
Buggy code:
public class ListItemModel extends AbstractDetachableModel { private transient Object object ; private final IModel listModel ; private final int index ; public ListItemModel ( final IModel listModel , final int index ) { } <START_BUG> public Object getNestedModel ( ) { <END_BUG> return null ; } protected void onAttach ( ) { } protected void onDetach ( ) { } protected Object onGetObject ( final Component component ) { } protected void onSetObject ( final Component component , final Object object ) { } }

Fix:
public IModel getNestedModel ( ) {
Buggy code:
class MethodSignatureImpl extends CodeSignatureImpl implements MethodSignature { private Method method ; Class returnType ; MethodSignatureImpl ( int modifiers , String name , Class declaringType , Class [ ] parameterTypes , String [ ] parameterNames , Class [ ] exceptionTypes , Class returnType ) { } MethodSignatureImpl ( String stringRep ) { } public Class getReturnType ( ) { } protected String createToString ( StringMaker sm ) { } public Method getMethod ( ) { if ( ( method ) == null ) { try { <START_BUG> method = declaringType . getDeclaredMethod ( getName ( ) , getParameterTypes ( ) ) ; <END_BUG> } catch ( NoSuchMethodException nsmEx ) { } } return method ; } }

Fix:
method = getDeclaringType ( ) . getDeclaredMethod ( getName ( ) , getParameterTypes ( ) ) ;
Buggy code:
public class HeaderController implements DropTargetListener , TableModelListener , FocusOwner { ComposerController controller ; HeaderView view ; DropTarget dropTarget = null ; DropTarget dropTarget2 = null ; boolean acceptDrop = true ; public HeaderController ( ComposerController controller ) { } public boolean checkState ( ) { } protected boolean isValid ( HeaderItem headerItem ) { } public AddressbookTableModel getAddressbookTableModel ( ) { } public void installListener ( ) { } public void appendRow ( ) { } public void editLastRow ( ) { } public void cleanupHeaderItemList ( ) { } protected void addVectorToTable ( List v , int index ) { for ( Iterator it = v . iterator ( ) ; it . hasNext ( ) ; ) { try { HeaderItem item = ( ( HeaderItem ) ( it . next ( ) ) ) ; <START_BUG> log . debug ( ( "item=" + ( item . toString ( ) ) ) ) ; <END_BUG> String field = ( ( String ) ( item . get ( "field" ) ) ) ; if ( field == null ) { String str = "" ; if ( index == 0 ) { str = "To" ; } else if ( index == 1 ) { str = "Cc" ; } else if ( index == 2 ) { str = "Bcc" ; } item . add ( "field" , str ) ; } view . getAddressbookTableModel ( ) . addItem ( item ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } } } public void updateComponents ( boolean b ) { } public HeaderItemList [ ] getHeaderItemLists ( ) { } public void setHeaderItemLists ( HeaderItemList [ ] lists ) { } public void tableChanged ( TableModelEvent e ) { } public void removeSelected ( ) { } public void dragEnter ( DropTargetDragEvent event ) { } public void dragExit ( DropTargetEvent event ) { } public void dragOver ( DropTargetDragEvent event ) { } public void drop ( DropTargetDropEvent event ) { } public void dropActionChanged ( DropTargetDragEvent event ) { } public void copy ( ) { } public void cut ( ) { } public void delete ( ) { } public JComponent getComponent ( ) { } public boolean isCopyActionEnabled ( ) { } public boolean isCutActionEnabled ( ) { } public boolean isDeleteActionEnabled ( ) { } public boolean isPasteActionEnabled ( ) { } public boolean isRedoActionEnabled ( ) { } public boolean isSelectAllActionEnabled ( ) { } public boolean isUndoActionEnabled ( ) { } public void paste ( ) { } public void redo ( ) { } public void selectAll ( ) { } public void undo ( ) { } }

Fix:
log . info ( ( "item=" + ( item . toString ( ) ) ) ) ;
Buggy code:
public class Shell { private final Universe universe ; public Shell ( final Universe universe ) { } public Object start ( ) { BufferedReader in ; String stmt ; int counter ; SClass myClass ; SObject myObject ; Object it ; counter = 0 ; in = new BufferedReader ( new InputStreamReader ( System . in ) ) ; it = Nil . nilObject ; Universe . println ( "SOM<seq2seq4repair_space>Shell.<seq2seq4repair_space>Type<seq2seq4repair_space>\"quit\"<seq2seq4repair_space>to<seq2seq4repair_space>exit.\n" ) ; while ( true ) { try { Universe . print ( "---><seq2seq4repair_space>" ) ; stmt = in . readLine ( ) ; <START_BUG> if ( stmt . equals ( "quit" ) ) { <END_BUG> return it ; } stmt = ( ( ( "Shell_Class_" + ( counter ++ ) ) + "<seq2seq4repair_space>=<seq2seq4repair_space>(<seq2seq4repair_space>run:<seq2seq4repair_space>it<seq2seq4repair_space>=<seq2seq4repair_space>(<seq2seq4repair_space>|<seq2seq4repair_space>tmp<seq2seq4repair_space>|<seq2seq4repair_space>tmp<seq2seq4repair_space>:=<seq2seq4repair_space>(" ) + stmt ) + "<seq2seq4repair_space>).<seq2seq4repair_space>'it<seq2seq4repair_space>=<seq2seq4repair_space>'<seq2seq4repair_space>print.<seq2seq4repair_space>^tmp<seq2seq4repair_space>println<seq2seq4repair_space>)<seq2seq4repair_space>)" ; myClass = universe . loadShellClass ( stmt ) ; if ( myClass != null ) { myObject = Universe . newInstance ( myClass ) ; SInvokable shellMethod = myClass . lookupInvokable ( Symbols . symbolFor ( "run:" ) ) ; it = shellMethod . invoke ( myObject , it ) ; } } catch ( Exception e ) { Universe . errorPrintln ( ( "Caught<seq2seq4repair_space>exception:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) ) ; } } } }

Fix:
if ( "quit" . equals ( stmt ) ) {
Buggy code:
final class CurrentBrowser implements Browser { private final IpcCall call ; @ Inject CurrentBrowser ( IpcCall call ) { } private String getKey ( String key ) { <START_BUG> final Map < ? , ? > meta = Map . class . cast ( call . get ( META ) ) ; <END_BUG> if ( ! ( meta . containsKey ( key ) ) ) { throw new UnsupportedOperationException ( ( ( "Information<seq2seq4repair_space>" + key ) + "<seq2seq4repair_space>not<seq2seq4repair_space>available" ) ) ; } final Object value = meta . get ( key ) ; if ( value == null ) { throw new UnsupportedOperationException ( ( ( "Information<seq2seq4repair_space>" + key ) + "<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ) ; } return value . toString ( ) ; } private boolean getBoolKey ( String key ) { } @ Override public String getHttpHost ( ) { } @ Override public boolean isHttps ( ) { } @ Override public String getRequestUri ( ) { } @ Override public String getRequestMethod ( ) { } @ Override public String getReferer ( ) { } @ Override public String getRemoteAddress ( ) { } @ Override public String getUserAgent ( ) { } @ Override public String getHttpAccept ( ) { } @ Override public String getHttpAcceptLanguage ( ) { } @ Override public String getHttpAcceptEncoding ( ) { } @ Override public String getHttpAcceptCharset ( ) { } @ Override public String toString ( ) { } }

Fix:
final Map < ? , ? > meta = call . get ( META ) ;
Buggy code:
public class DatabaseClient implements DatabaseService { private DbOpenHelper mDbOpenHelper = null ; public DatabaseClient ( Context context ) { } @ Override public long insertData ( String tableName , ContentValues contentValues ) { long id = - 1 ; SQLiteDatabase database = null ; try { database = mDbOpenHelper . getWritableDatabase ( ) ; <START_BUG> id = database . insert ( "personpage" , null , contentValues ) ; <END_BUG> } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { if ( database != null ) database . close ( ) ; } return id ; } @ Override public int deleteData ( String tableName , String whereClause , String [ ] whereArgs ) { } @ Override public int updateData ( String tableName , ContentValues contentValues , String whereClause , String [ ] whereArgs ) { } @ Override public Cursor queryData ( String tableName , String selectionClause , String [ ] selectionArgs ) { } }

Fix:
id = database . insert ( tableName , null , contentValues ) ;
Buggy code:
public class Block { private int x = 0 ; private int y = 0 ; private Tile type = Tile . UNKNOWN ; public Block ( int x , int y , Tile type ) { } public int getX ( ) { } public int getY ( ) { } <START_BUG> public int getType ( ) { <END_BUG> return type ; } No newline ; at end ; of file ; }

Fix:
public Tile getType ( ) {
Buggy code:
public class LibraryTester { private Library lib ; @ Before public void setUp ( ) { } @ Test public void checkMaxBooks ( ) { } @ Test public void getUserId ( ) { } @ Test public void addBook ( ) { } @ Test public void takeBook ( ) { } @ Test public void returnBook ( ) { lib . addBook ( "Programming<seq2seq4repair_space>rocks" , "Miller" ) ; lib . takeBook ( "Programming<seq2seq4repair_space>rocks" ) ; <START_BUG> lib . returnBook ( "Programming<seq2seq4repair_space>rocks" ) ; <END_BUG> assertEquals ( lib . takeBook ( "Programming<seq2seq4repair_space>rocks" ) , lib . getCollection ( ) . get ( 0 ) ) ; } No newline ; at end ; of file ; }

Fix:
lib . returnBook ( lib . getCollection ( ) . get ( 0 ) ) ;
Buggy code:
abstract class AbstractChoice extends FormComponent { private IModel choices ; private IChoiceRenderer renderer ; public AbstractChoice ( final String id ) { } public AbstractChoice ( final String id , final List choices ) { } public AbstractChoice ( final String id , final List choices , final IChoiceRenderer renderer ) { } public AbstractChoice ( final String id , IModel model , final List choices ) { } public AbstractChoice ( final String id , IModel model , final List choices , final IChoiceRenderer renderer ) { } public AbstractChoice ( final String id , final IModel choices ) { } public AbstractChoice ( final String id , final IModel choices , final IChoiceRenderer renderer ) { } public AbstractChoice ( final String id , IModel model , final IModel choices ) { } public AbstractChoice ( final String id , IModel model , final IModel choices , final IChoiceRenderer renderer ) { } public List getChoices ( ) { } public final void setChoices ( List choices ) { } public final IChoiceRenderer getChoiceRenderer ( ) { } public final void setChoiceRenderer ( IChoiceRenderer renderer ) { } protected void detachModel ( ) { } protected String getDefaultChoice ( final Object selected ) { } protected abstract boolean isSelected ( final Object object , int index ) { } protected void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected void appendOptionHtml ( StringBuffer buffer , Object choice , int index ) { <START_BUG> final String displayValue = renderer . getDisplayValue ( choice ) ; <END_BUG> buffer . append ( "\n<option<seq2seq4repair_space>" ) ; if ( isSelected ( choice , index ) ) { buffer . append ( "selected=\"selected\"" ) ; } buffer . append ( "value=\"" ) ; buffer . append ( renderer . getIdValue ( choice , index ) ) ; buffer . append ( "\">" ) ; String display = getLocalizer ( ) . getString ( displayValue , this , displayValue ) ; String escaped = Strings . escapeMarkup ( display , false , true ) ; buffer . append ( escaped ) ; buffer . append ( "<//option>" ) ; } protected boolean supportsPersistence ( ) { } public abstract void updateModel ( ) { } }

Fix:
final String displayValue = ( ( String ) ( getConverter ( ) . convert ( renderer . getDisplayValue ( choice ) , String . class ) ) ) ;
Buggy code:
public class RulePriorityComparisonTest { private BasicRule rule1 ; private BasicRule rule2 ; @ Before public void setup ( ) { } @ Test public void testLessThanRulePriorityComparison ( ) { } @ Test public void testGreaterThanRulePriorityComparison ( ) { } @ Test public void testSameRulePriorityComparison ( ) { rule1 . setPriority ( 2 ) ; <START_BUG> assertEquals ( 0 , rule1 . compareTo ( rule2 ) ) ; <END_BUG> } }

Fix:
assertEquals ( ( - 1 ) , rule1 . compareTo ( rule2 ) ) ;
Buggy code:
public class ExpressionCategoriser implements IExpressionCategoriser { @ Override public ExpressionData categorise ( Expression expression ) { } private ExpressionData makeExpressionData ( String key ) { } private String clean ( String string , boolean replaceSlash ) { if ( string == null ) return null ; String withoutGenerics = Strings . removeBrackets ( string , '<' , '>' ) ; <START_BUG> String cleaner = withoutGenerics . replace ( ";" , "" ) . replace ( "|" , "_" ) ; <END_BUG> String result = ( replaceSlash ) ? cleaner . replace ( "//" , "_" ) : cleaner ; return result ; } }

Fix:
String cleaner = withoutGenerics . replace ( ";" , "" ) . replace ( "|" , "_" ) . replace ( "[" , "(" ) . replace ( '%' , '_' ) ;
Buggy code:
public class RecordDatabase { private ArrayList < Record > recordList ; public RecordDatabase ( ) { } public void fillUpTestRecords ( ) { } public ArrayList < Record > getRecordsFromPatient ( String patientName ) { } public ArrayList < Record > getAllRecords ( ) { } public ArrayList < Record > getRecordsForDoctor ( User d ) { } public ArrayList < Record > getRecordsForNurse ( User n ) { } public ArrayList < Record > getRecordsFromDivision ( String division ) { } public boolean createRecord ( Record r ) { } public boolean nurseUpdateNote ( String nurse , String patientname , String newnote ) { } public boolean doctorUpdateNote ( String doctor , String patientname , String newnote ) { Record r ; for ( int i = 0 ; i < ( recordList . size ( ) ) ; i ++ ) { r = recordList . get ( i ) ; <START_BUG> if ( ( r . getNurse ( ) . equals ( doctor ) ) && ( r . getPatient ( ) . equals ( patientname ) ) ) { <END_BUG> r . addNote ( newnote ) ; recordList . set ( i , r ) ; return true ; } } return false ; } public boolean removeRecord ( String r ) { } public boolean recordExist ( String p , String d , String n , String u ) { } public int getRecordPosition ( Record record ) { } }

Fix:
if ( ( r . getDoctor ( ) . equals ( doctor ) ) && ( r . getPatient ( ) . equals ( patientname ) ) ) {
Buggy code:
public class VimsonGenerator implements Closeable , Flushable { public VimsonGenerator ( OutputStream out ) { } public VimsonGenerator ( OutputStream out , Charset charset ) { } public void writeString ( CharSequence value ) throws IOException { } public void writeRaw ( CharSequence value ) throws IOException { } public void writeBoolean ( boolean value ) throws IOException { } public void writeFloat ( float value ) throws IOException { } public void writeFloat ( double value ) throws IOException { } public void writeNumber ( byte value ) throws IOException { } public void writeNumber ( short value ) throws IOException { } public void writeNumber ( int value ) throws IOException { } public void writeNumber ( long value ) throws IOException { } public void writeObject ( Object value ) throws IOException { } public void writeObjectField ( CharSequence fieldName , Object value ) throws IOException { } public void writeStringField ( CharSequence fieldName , CharSequence value ) throws IOException { } public void writeFloatField ( CharSequence fieldName , float value ) throws IOException { } public void writeFloatField ( CharSequence fieldName , double value ) throws IOException { } public void writeNumberField ( CharSequence fieldName , byte value ) throws IOException { } public void writeNumberField ( CharSequence fieldName , short value ) throws IOException { } public void writeNumberField ( CharSequence fieldName , int value ) throws IOException { } public void writeNumberField ( CharSequence fieldName , long value ) throws IOException { } public void writeBooleanField ( CharSequence fieldName , boolean value ) throws IOException { } public void writeFieldName ( CharSequence fieldName ) throws IOException { } public void writeDictionaryFieldStart ( CharSequence fieldName ) throws IOException { } public void writeStartDictionary ( ) throws IOException { } public void writeEndDictionary ( ) throws IOException { } public void writeListFieldStart ( CharSequence fieldName ) throws IOException { <START_BUG> this . writeDictionaryFieldStart ( fieldName ) ; <END_BUG> this . writeStartList ( ) ; } public void writeStartList ( ) throws IOException { } public void writeEndList ( ) throws IOException { } public void setObjectCodec ( ObjectCodec codec ) { } public ObjectCodec getObjectCodec ( ) { } @ Override public void flush ( ) throws IOException { } @ Override public void close ( ) throws IOException { } private static enum Context { LIST , DICTIONARY ; } private void write ( CharSequence value ) throws IOException { } private boolean shouldWriteComma ( ) { } private final OutputStream out ; private final Charset charset ; private final Deque < VimsonGenerator . Context > context = new ArrayDeque < VimsonGenerator . Context > ( ) ; private ObjectCodec codec ; }

Fix:
this . writeFieldName ( fieldName ) ;
Buggy code:
class ArtNode4 extends ArtNode { public static int count ; public ArtNode4 ( ) { } public ArtNode4 ( final ArtNode4 other ) { } public ArtNode4 ( final ArtNode16 other ) { } @ Override public Node n_clone ( ) { } @ Override public ChildPtr find_child ( byte c ) { } @ Override public Leaf minimum ( ) { } @ Override public void add_child ( ChildPtr ref , byte c , Node child ) { if ( ( this . num_children ) < 4 ) { int idx ; for ( idx = 0 ; idx < ( this . num_children ) ; idx ++ ) { <START_BUG> if ( ( to_uint ( c ) ) < ( keys [ idx ] ) ) <END_BUG> break ; } System . arraycopy ( this . keys , idx , this . keys , ( idx + 1 ) , ( ( this . num_children ) - idx ) ) ; System . arraycopy ( this . children , idx , this . children , ( idx + 1 ) , ( ( this . num_children ) - idx ) ) ; this . keys [ idx ] = c ; this . children [ idx ] = child ; ( child . refcount ) ++ ; ( this . num_children ) ++ ; } else { ArtNode16 result = new ArtNode16 ( this ) ; ref . change ( result ) ; result . add_child ( ref , c , child ) ; } } @ Override public void remove_child ( ChildPtr ref , byte c ) { } @ Override public void iter ( IterCallback cb ) { } @ Override public boolean exhausted ( int i ) { } @ Override public int nextChildAtOrAfter ( int i ) { } @ Override public Node childAt ( int i ) { } @ Override public int decrement_refcount ( ) { } byte [ ] keys = new byte [ 4 ] ; Node [ ] children = new Node [ 4 ] ; }

Fix:
if ( ( to_uint ( c ) ) < ( to_uint ( keys [ idx ] ) ) )
Buggy code:
public class PackageResource extends WebResource { private static final long serialVersionUID = 1L ; private static final Log log = LogFactory . getLog ( PackageResource . class ) ; public static final Pattern EXTENSION_JS = Pattern . compile ( ".*\\.js" ) ; public static final Pattern EXTENSION_CSS = Pattern . compile ( ".*\\.css" ) ; private final String absolutePath ; private Locale locale ; private final String style ; private final Class scope ; private final String path ; public static void bind ( Application application , Class scope , String name ) { } public static void bind ( Application application , Class scope , String name , Locale locale ) { } public static void bind ( Application application , Class scope , String name , Locale locale , String style ) { } public static void bind ( Application application , Class scope , Pattern pattern ) { } public static void bind ( Application application , Class scope , Pattern pattern , boolean recurse ) { } public static PackageResource get ( final Class scope , final String path ) { } public static PackageResource get ( final Class scope , final String path , final Locale locale , final String style ) { } public static PackageResource [ ] get ( Class scope , Pattern pattern ) { } public static PackageResource [ ] get ( Class scope , Pattern pattern , boolean recurse ) { } public static boolean exists ( final Class scope , final String path , final Locale locale , final String style ) { } private static final void addResources ( final Class scope , final Pattern pattern , final List resources , final StringBuffer relativePath , final File dir , boolean recurse ) { File [ ] files = dir . listFiles ( ) ; for ( int i = 0 ; i < ( files . length ) ; i ++ ) { File file = files [ i ] ; if ( file . isDirectory ( ) ) { if ( recurse ) { <START_BUG> PackageResource . addResources ( scope , pattern , resources , relativePath . append ( file . getName ( ) ) . append ( '//' ) , file , recurse ) ; <END_BUG> } } else { String fileName = file . getName ( ) ; if ( pattern . matcher ( fileName ) . matches ( ) ) { resources . add ( PackageResource . get ( scope , ( relativePath + fileName ) , null , null ) ) ; } } } } private PackageResource ( final Class scope , final String path , final Locale locale , final String style ) { } public IResourceStream getResourceStream ( ) { } public final Locale getLocale ( ) { } public final String getAbsolutePath ( ) { } public final String getPath ( ) { } public final Class getScope ( ) { } public final String getStyle ( ) { } }

Fix:
PackageResource . addResources ( scope , pattern , resources , new StringBuffer ( relativePath ) . append ( file . getName ( ) ) . append ( '//' ) , file , recurse ) ;
Buggy code:
public class DanceBotMediaPlayer implements MediaPlayer . OnCompletionListener , SeekBar . OnSeekBarChangeListener , MediaPlayerListener . OnMediaPlayerChangeListener { private static final String LOG_TAG = DanceBotMediaPlayer . class . getSimpleName ( ) ; private final Activity mActivity ; private TextView mSeekBarTotalTimeView ; private TextView mSeekBarCurrentTimeView ; private SeekBar mSeekBar ; private MediaPlayer mMediaPlayer ; private boolean mIsReady = false ; private boolean mIsPlaying = false ; private int mTotalTime ; private DanceBotMusicFile mMusicFile ; private Button mPlayPauseButton ; private MediaPlayerListener mEventListener ; public DanceBotMediaPlayer ( Activity activity , DanceBotMusicFile musicFile ) { } public void setEventListener ( MediaPlayerListener eventListener ) { } public void setMediaPlayerSeekBar ( SeekBar seekBar , TextView currentTime , TextView totalTime ) { } public void setPlayButton ( Button playButton ) { } private void setDataSource ( DanceBotMusicFile musicFile ) { } @ Override public void play ( ) { } @ Override public void pause ( ) { } @ Override public boolean isPlaying ( ) { } @ Override public Button getPlayButton ( ) { } @ Override public int getCurrentPosition ( ) { } @ Override public void onProgressChanged ( SeekBar seekBar , int progress , boolean fromUser ) { <START_BUG> if ( ( mMediaPlayer ) != null ) { <END_BUG> if ( fromUser ) { mMediaPlayer . seekTo ( progress ) ; } } } @ Override public void onStartTrackingTouch ( SeekBar seekBar ) { } @ Override public void onStopTrackingTouch ( SeekBar seekBar ) { } @ Override public void onCompletion ( MediaPlayer mp ) { } public void cleanUp ( ) { } public void onStop ( ) { } }

Fix:
if ( ( ( mMediaPlayer ) != null ) && ( mIsReady ) ) {
Buggy code:
public class WLRmic extends DefaultRmicAdapter { public boolean execute ( ) throws BuildException { getRmic ( ) . log ( "Using<seq2seq4repair_space>WebLogic<seq2seq4repair_space>rmic" , MSG_VERBOSE ) ; Commandline cmd = setupRmicCommand ( new String [ ] { "-noexit" } ) ; try { Class c = Class . forName ( "weblogic.rmic" ) ; Method doRmic = c . getMethod ( "main" , new Class [ ] { String [ ] . class } ) ; <START_BUG> doRmic . invoke ( null , new Object [ ] { } ) ; <END_BUG> return true ; } catch ( ClassNotFoundException ex ) { throw new BuildException ( ( "Cannot<seq2seq4repair_space>use<seq2seq4repair_space>WebLogic<seq2seq4repair_space>rmic,<seq2seq4repair_space>as<seq2seq4repair_space>it<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>available" + ( "<seq2seq4repair_space>A<seq2seq4repair_space>common<seq2seq4repair_space>solution<seq2seq4repair_space>is<seq2seq4repair_space>to<seq2seq4repair_space>set<seq2seq4repair_space>the<seq2seq4repair_space>environment<seq2seq4repair_space>variable" + "<seq2seq4repair_space>CLASSPATH." ) ) , getRmic ( ) . getLocation ( ) ) ; } catch ( Exception ex ) { if ( ex instanceof BuildException ) { throw ( ( BuildException ) ( ex ) ) ; } else { throw new BuildException ( "Error<seq2seq4repair_space>starting<seq2seq4repair_space>WebLogic<seq2seq4repair_space>rmic:<seq2seq4repair_space>" , ex , getRmic ( ) . getLocation ( ) ) ; } } } public String getStubClassSuffix ( ) { } public String getSkelClassSuffix ( ) { } }

Fix:
doRmic . invoke ( null , new Object [ ] { cmd . getArguments ( ) } ) ;
Buggy code:
@ SuppressWarnings ( "unchecked" ) public abstract class VelocityPanel extends Panel implements IMarkupCacheKeyProvider , IMarkupResourceStreamProvider { private static final long serialVersionUID = 1L ; public static VelocityPanel forTemplateResource ( String id , IModel < ? extends Map > model , final IResourceStream templateResource ) { } private transient String stackTraceAsString ; private transient String evaluatedTemplate ; public VelocityPanel ( final String id , final IModel < ? extends Map > model ) { } private Reader getTemplateReader ( ) { } @ Override protected void onComponentTagBody ( MarkupStream markupStream , ComponentTag openTag ) { } private void onException ( final Exception exception ) { } protected boolean escapeHtml ( ) { } protected abstract IResourceStream getTemplateResource ( ) { } private String evaluateVelocityTemplate ( Reader templateReader ) { } protected boolean parseGeneratedMarkup ( ) { } protected boolean throwVelocityExceptions ( ) { } public final IResourceStream getMarkupResourceStream ( MarkupContainer container , Class < ? > containerClass ) { Reader reader = getTemplateReader ( ) ; if ( reader == null ) { throw new WicketRuntimeException ( ( "could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>velocity<seq2seq4repair_space>template<seq2seq4repair_space>for<seq2seq4repair_space>panel:<seq2seq4repair_space>" + ( this ) ) ) ; } <START_BUG> StringBuffer sb = new StringBuffer ( ) ; <END_BUG> sb . append ( "<wicket:panel>" ) ; sb . append ( evaluateVelocityTemplate ( reader ) ) ; sb . append ( "<//wicket:panel>" ) ; return new StringResourceStream ( sb . toString ( ) ) ; } public final String getCacheKey ( MarkupContainer container , Class < ? > containerClass ) { } @ Override protected void onDetach ( ) { } }

Fix:
StringBuilder sb = new StringBuilder ( ) ;
Buggy code:
public class List extends Scrollable { static final int INSET = 3 ; static final int ListProc ; static final TCHAR ListClass = new TCHAR ( 0 , "LISTBOX" , true ) ; public List ( Composite parent , int style ) { } public void add ( String string ) { } public void add ( String string , int index ) { } public void addSelectionListener ( SelectionListener listener ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } static int checkStyle ( int style ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } int defaultBackground ( ) { } public void deselect ( int [ ] indices ) { } public void deselect ( int index ) { } public void deselect ( int start , int end ) { } public void deselectAll ( ) { } public int getFocusIndex ( ) { } public String getItem ( int index ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public String [ ] getItems ( ) { } public String [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public int getSelectionIndex ( ) { } public int [ ] getSelectionIndices ( ) { } public int getTopIndex ( ) { } public int indexOf ( String string ) { } public int indexOf ( String string , int start ) { } public boolean isSelected ( int index ) { } public void remove ( int [ ] indices ) { } public void remove ( int index ) { } public void remove ( int start , int end ) { } public void remove ( String string ) { } public void removeAll ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void select ( int [ ] indices ) { } void select ( int [ ] indices , boolean scroll ) { } public void select ( int index ) { } void select ( int index , boolean scroll ) { } public void select ( int start , int end ) { } void select ( int start , int end , boolean scroll ) { } public void selectAll ( ) { } void setFocusIndex ( int index ) { } public void setFont ( Font font ) { } public void setItem ( int index , String string ) { } public void setItems ( String [ ] items ) { } void setScrollWidth ( ) { } void setScrollWidth ( TCHAR buffer , boolean grow ) { } void setScrollWidth ( int newWidth , boolean grow ) { } public void setSelection ( int [ ] indices ) { } public void setSelection ( String [ ] items ) { } public void setSelection ( int index ) { } public void setSelection ( int start , int end ) { } public void setTopIndex ( int index ) { } public void showSelection ( ) { } int widgetStyle ( ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT wmCommandChild ( int wParam , int lParam ) { <START_BUG> int code = wParam > > 16 ; <END_BUG> switch ( code ) { case OS . LBN_SELCHANGE : postEvent ( Selection ) ; break ; case OS . LBN_DBLCLK : postEvent ( DefaultSelection ) ; break ; } return super . wmCommandChild ( wParam , lParam ) ; } }

Fix:
int code = OS . HIWORD ( wParam ) ;
Buggy code:
public class Theories extends JUnit4ClassRunner { public Theories ( Class < ? > klass ) throws InitializationError { } @ Override protected void collectInitializationErrors ( List < Throwable > errors ) { } @ Override protected List < FrameworkMethod > computeTestMethods ( ) { } @ Override public Statement childBlock ( final FrameworkMethod method ) { } public class TheoryAnchor extends Statement { private int successes = 0 ; private FrameworkMethod fTestMethod ; private List < AssumptionViolatedException > fInvalidParameters = new ArrayList < AssumptionViolatedException > ( ) ; public TheoryAnchor ( FrameworkMethod method ) { } @ Override public void evaluate ( ) throws Throwable { } protected void runWithAssignment ( Assignments parameterAssignment ) throws Throwable { } protected void runWithIncompleteAssignment ( Assignments incomplete ) throws IllegalAccessException , InstantiationException , Throwable { } protected void runWithCompleteAssignment ( final Assignments complete ) throws IllegalAccessException , InstantiationException , NoSuchMethodException , Throwable , InvocationTargetException { <START_BUG> new JUnit4ClassRunner ( getTestClass ( ) . getJavaClass ( ) ) { <END_BUG> @ Override protected void collectInitializationErrors ( List < Throwable > errors ) { } @ Override public Statement childBlock ( FrameworkMethod method ) { final Statement statement = super . childBlock ( method ) ; return new Statement ( ) { @ Override public void evaluate ( ) throws Throwable { try { statement . evaluate ( ) ; handleDataPointSuccess ( ) ; } catch ( AssumptionViolatedException e ) { handleAssumptionViolation ( e ) ; } catch ( Throwable e ) { reportParameterizedError ( e , complete . getAllArguments ( nullsOk ( ) ) ) ; } } } ; } @ Override protected Statement invoke ( FrameworkMethod method , Object test ) { return methodCompletesWithParameters ( method , complete , test ) ; } @ Override public Object createTest ( ) throws Exception { return getTestClass ( ) . getConstructor ( ) . newInstance ( complete . getConstructorArguments ( nullsOk ( ) ) ) ; } } . childBlock ( fTestMethod ) . evaluate ( ) ; } private Statement methodCompletesWithParameters ( final FrameworkMethod method , final Assignments complete , final Object freshInstance ) { } protected void handleAssumptionViolation ( AssumptionViolatedException e ) { } protected void reportParameterizedError ( Throwable e , Object ... params ) throws Throwable { } private boolean nullsOk ( ) { } protected void handleDataPointSuccess ( ) { } } }

Fix:
new JUnit4ClassRunner ( getTestClass ( ) ) {
Buggy code:
public interface NotificationService { <START_BUG> List < Notification > list ( User user , Company company , Boolean excludeUser , Boolean excludeOthers , Integer minFeedId , List < String > activityFilter ) throws AlfrescoServiceException ; <END_BUG> }

Fix:
List < Notification > list ( User user , Company company , Boolean excludeUser , Boolean excludeOthers , Long minFeedId , List < String > activityFilter ) throws AlfrescoServiceException ;