nus-yam/ex-repair huggingface dataset:
Buggy code:
public class DemuxTestCase { private static final String T1 = "Thread1" ; private static final String T2 = "Thread2" ; private static final String T3 = "Thread3" ; private static final String T4 = "Thread4" ; private static final String DATA1 = "Data<seq2seq4repair_space>for<seq2seq4repair_space>thread1" ; private static final String DATA2 = "Data<seq2seq4repair_space>for<seq2seq4repair_space>thread2" ; private static final String DATA3 = "Data<seq2seq4repair_space>for<seq2seq4repair_space>thread3" ; private static final String DATA4 = "Data<seq2seq4repair_space>for<seq2seq4repair_space>thread4" ; private static final Random c_random = new Random ( ) ; private final HashMap < String , ByteArrayOutputStream > m_outputMap = new HashMap < String , ByteArrayOutputStream > ( ) ; private final HashMap < String , Thread > m_threadMap = new HashMap < String , Thread > ( ) ; private String getOutput ( final String threadName ) { final ByteArrayOutputStream output = m_outputMap . get ( threadName ) ; assertNotNull ( "getOutput()" , output ) ; <START_BUG> return output . toString ( ) ; <END_BUG> } private String getInput ( final String threadName ) { } private void doStart ( ) throws Exception { } private void doJoin ( ) throws Exception { } private void startWriter ( final String name , final String data , final DemuxOutputStream demux ) throws Exception { } private void startReader ( final String name , final String data , final DemuxInputStream demux ) throws Exception { } @ Test public void testOutputStream ( ) throws Exception { } @ Test public void testInputStream ( ) throws Exception { } private static class ReaderThread extends Thread { private final StringBuffer m_buffer = new StringBuffer ( ) ; private final InputStream m_input ; private final DemuxInputStream m_demux ; ReaderThread ( final String name , final InputStream input , final DemuxInputStream demux ) { } public String getData ( ) { } @ Override public void run ( ) { } } private static class WriterThread extends Thread { private final byte [ ] m_data ; private final OutputStream m_output ; private final DemuxOutputStream m_demux ; WriterThread ( final String name , final String data , final OutputStream output , final DemuxOutputStream demux ) { } @ Override public void run ( ) { } } }

Fix:
return output . toString ( Charsets . UTF_8 ) ;
Buggy code:
public class AwListener implements Listener { private GlobalVariables gv ; public AwListener ( GlobalVariables globalvariables ) { } @ EventHandler public void onInteract ( PlayerInteractEvent e ) { if ( ( ( e . getAction ( ) ) != ( Action . RIGHT_CLICK_AIR ) ) && ( ( e . getAction ( ) ) != ( Action . RIGHT_CLICK_BLOCK ) ) ) { return ; } if ( ! ( e . hasItem ( ) ) ) { return ; } <START_BUG> if ( ( ! ( e . getItem ( ) . hasItemMeta ( ) ) ) && ( ! ( e . getItem ( ) . getItemMeta ( ) . hasDisplayName ( ) ) ) ) { <END_BUG> return ; } Player p = e . getPlayer ( ) ; if ( ! ( p . hasPermission ( "Aw.use" ) ) ) { return ; } String name = e . getItem ( ) . getItemMeta ( ) . getDisplayName ( ) ; if ( ( name . equals ( "§bSchneeballhacke" ) ) || ( name . equals ( "§bsnowballhoe" ) ) ) { fire ( p , 1 ) ; e . setCancelled ( true ) ; } else if ( ( name . equals ( "§6Feuerballhacke" ) ) || ( name . equals ( "§6fireballhoe" ) ) ) { fire ( p , 2 ) ; e . setCancelled ( true ) ; } else if ( ( name . equals ( "§7Pfeilhacke" ) ) || ( name . equals ( "§7arrowhoe" ) ) ) { fire ( p , 3 ) ; e . setCancelled ( true ) ; } else if ( ( name . equals ( "§fEihacke" ) ) || ( name . equals ( "§fegghoe" ) ) ) { fire ( p , 4 ) ; e . setCancelled ( true ) ; } else if ( ( name . equals ( "§eBlitzaxt" ) ) || ( name . equals ( "§elightning<seq2seq4repair_space>axe" ) ) ) { if ( ( e . getAction ( ) ) == ( Action . RIGHT_CLICK_BLOCK ) ) { p . getWorld ( ) . strikeLightning ( e . getClickedBlock ( ) . getLocation ( ) ) ; e . setCancelled ( true ) ; } } } @ EventHandler public void onChat ( AsyncPlayerChatEvent e ) { } @ EventHandler public void onMove ( PlayerMoveEvent e ) { } private void fire ( Player p , int projectile ) { } }

Fix:
if ( ( ! ( e . getItem ( ) . hasItemMeta ( ) ) ) || ( ! ( e . getItem ( ) . getItemMeta ( ) . hasDisplayName ( ) ) ) ) {
Buggy code:
@ TargetApi ( VERSION_CODES . HONEYCOMB_MR2 ) public class DistFilterChecker { private final Context context ; private transient String myCompatibleScreen ; private transient String mySupportedScreen ; private transient Collection < String > myFeatures ; private transient Collection < String > myNativeCode ; private transient ConfigurationInfo myConfigurationInfo ; private transient Config myConfig ; private transient Collection < String > myLibraries ; public DistFilterChecker ( Context context ) { } public boolean isCompatible ( Dist dist ) { } public boolean isCompatible ( Filter filter ) { } private boolean usesGlEs ( Filter filter ) { } private boolean minSdkVersion ( Filter filter ) { } private boolean maxSdkVersion ( Filter filter ) { } private boolean requiresSmallestWidthDp ( Filter filter ) { } private boolean supportedScreens ( Filter filter ) { } private boolean compatibleScreens ( Filter filter ) { } private boolean supportsGlTextures ( Filter filter ) { } private boolean usesFeatures ( Filter filter ) { } private boolean usesLibraries ( Filter filter ) { } private boolean usesConfigurations ( Filter filter ) { } private boolean nativeCode ( Filter filter ) { } @ SuppressWarnings ( "deprecation" ) private Collection < String > myNativeCode ( ) { } private Collection < String > myLibraries ( ) { } private Collection < String > myFeatures ( ) { } private Config myConfiguration ( ) { } private int myGlEs ( ) { } private ConfigurationInfo myConfigurationInfo ( ) { } private String myCompatibleScreen ( ) { } private int myScreenDensityDpi ( ) { } private String mySupportedScreen ( ) { if ( ( mySupportedScreen ) == null ) { <START_BUG> switch ( ( context . getResources ( ) . getConfiguration ( ) . screenLayout ) & ( Configuration . SCREENLAYOUT_SIZE_LARGE ) ) { <END_BUG> case Configuration . SCREENLAYOUT_SIZE_SMALL : mySupportedScreen = "small" ; break ; case Configuration . SCREENLAYOUT_SIZE_NORMAL : mySupportedScreen = "normal" ; break ; case Configuration . SCREENLAYOUT_SIZE_LARGE : mySupportedScreen = "large" ; break ; case Configuration . SCREENLAYOUT_SIZE_XLARGE : mySupportedScreen = "xlarge" ; break ; default : throw new AssertionError ( "Unsupported<seq2seq4repair_space>screen<seq2seq4repair_space>layout" ) ; } } return mySupportedScreen ; } private int mySmallestScreenWidthDp ( ) { } private static boolean matchesAnyConfiguration ( Config provides , Collection < Config > requires ) { } private static boolean matchesConfiguration ( Config provides , Config requires ) { } private static boolean matchesConfigurationField ( int requires , int provides ) { } private static boolean containsAny ( Collection < String > provides , Collection < String > requires ) { } }

Fix:
switch ( ( context . getResources ( ) . getConfiguration ( ) . screenLayout ) & ( Configuration . SCREENLAYOUT_SIZE_MASK ) ) {
Buggy code:
public class QueryManagerDaoImpl implements QueryManager { private static final Logger LOG = LoggerFactory . getLogger ( QueryManagerDaoImpl . class ) ; @ Autowired private NodeDao m_nodeDao ; @ Autowired private IpInterfaceDao m_ipInterfaceDao ; @ Autowired private ServiceTypeDao m_serviceTypeDao ; @ Autowired private EventDao m_eventDao ; @ Autowired private OutageDao m_outageDao ; @ Autowired private MonitoredServiceDao m_monitoredServiceDao ; @ Override public String getNodeLabel ( int nodeId ) { } private static Date convertEventTimeToTimeStamp ( String time ) { } @ Override public void openOutage ( String outageIdSQL , int nodeId , String ipAddr , String svcName , int serviceLostEventId , Date time ) { } private void openOutage ( int nodeId , String ipAddr , String svcName , int serviceLostEventId , Date time ) { } @ Override public void resolveOutage ( int nodeId , String ipAddr , String svcName , int regainedEventId , Date time ) { } @ Override public void reparentOutages ( String ipAddr , int oldNodeId , int newNodeId ) { } @ Override public List < String [ ] > getNodeServices ( int nodeId ) { final LinkedList < String [ ] > servicemap = new LinkedList < String [ ] > ( ) ; Criteria criteria = new Criteria ( OnmsMonitoredService . class ) ; <START_BUG> criteria . setAliases ( Arrays . asList ( new Alias [ ] { new Alias ( "monitoredService.ipInterface" , "ipInterface" , JoinType . LEFT_JOIN ) , new Alias ( "ipInterface.node" , "node" , JoinType . LEFT_JOIN ) } ) ) ; <END_BUG> criteria . addRestriction ( new EqRestriction ( "node.id" , nodeId ) ) ; for ( OnmsMonitoredService service : m_monitoredServiceDao . findMatching ( criteria ) ) { servicemap . add ( new String [ ] { service . getIpAddressAsString ( ) , service . getServiceName ( ) } ) ; } return servicemap ; } @ Override public void closeOutagesForUnmanagedServices ( ) { } @ Override public void closeOutagesForNode ( Date closeDate , int eventId , int nodeId ) { } @ Override public void closeOutagesForInterface ( Date closeDate , int eventId , int nodeId , String ipAddr ) { } @ Override public void closeOutagesForService ( Date closeDate , int eventId , int nodeId , String ipAddr , String serviceName ) { } @ Override public void updateServiceStatus ( int nodeId , String ipAddr , String serviceName , String status ) { } }

Fix:
criteria . setAliases ( Arrays . asList ( new Alias [ ] { new Alias ( "ipInterface" , "ipInterface" , JoinType . LEFT_JOIN ) , new Alias ( "ipInterface.node" , "node" , JoinType . LEFT_JOIN ) } ) ) ;
Buggy code:
public class ActivePartSourceProvider extends AbstractSourceProvider { private IEditorPart lastActiveEditor = null ; private String lastActiveEditorId = null ; private IWorkbenchPart lastActivePart = null ; private String lastActivePartId = null ; private IWorkbenchPartSite lastActivePartSite = null ; private final IPartListener partListener = new IPartListener ( ) { public final void partActivated ( final IWorkbenchPart part ) { } public final void partBroughtToTop ( final IWorkbenchPart part ) { } public final void partClosed ( final IWorkbenchPart part ) { } public final void partDeactivated ( final IWorkbenchPart part ) { } public final void partOpened ( final IWorkbenchPart part ) { } } ; private final IWindowListener windowListener = new IWindowListener ( ) { public final void windowActivated ( final IWorkbenchWindow window ) { } public final void windowClosed ( final IWorkbenchWindow window ) { } public final void windowDeactivated ( final IWorkbenchWindow window ) { } public final void windowOpened ( final IWorkbenchWindow window ) { } } ; private final IWorkbench workbench ; public ActivePartSourceProvider ( final IWorkbench workbench ) { } private final void checkActivePart ( ) { } public final void dispose ( ) { } public final Map getCurrentState ( ) { <START_BUG> final Map currentState = new HashMap ( 4 ) ; <END_BUG> currentState . put ( ACTIVE_SITE_NAME , null ) ; currentState . put ( ACTIVE_PART_NAME , null ) ; currentState . put ( ACTIVE_PART_ID_NAME , null ) ; currentState . put ( ACTIVE_EDITOR_NAME , null ) ; currentState . put ( ACTIVE_EDITOR_ID_NAME , null ) ; final IWorkbenchWindow activeWorkbenchWindow = workbench . getActiveWorkbenchWindow ( ) ; if ( activeWorkbenchWindow != null ) { final IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow . getActivePage ( ) ; if ( activeWorkbenchPage != null ) { final IWorkbenchPart newActivePart = activeWorkbenchPage . getActivePart ( ) ; currentState . put ( ACTIVE_PART_NAME , newActivePart ) ; if ( newActivePart != null ) { final IWorkbenchPartSite activeWorkbenchPartSite = newActivePart . getSite ( ) ; currentState . put ( ACTIVE_SITE_NAME , activeWorkbenchPartSite ) ; if ( activeWorkbenchPartSite != null ) { final String newActivePartId = activeWorkbenchPartSite . getId ( ) ; currentState . put ( ACTIVE_PART_ID_NAME , newActivePartId ) ; } } final IEditorPart newActiveEditor = activeWorkbenchPage . getActiveEditor ( ) ; currentState . put ( ACTIVE_EDITOR_NAME , newActiveEditor ) ; if ( newActiveEditor != null ) { final IEditorSite activeEditorSite = newActiveEditor . getEditorSite ( ) ; if ( activeEditorSite != null ) { final String newActiveEditorId = activeEditorSite . getId ( ) ; currentState . put ( ACTIVE_EDITOR_ID_NAME , newActiveEditorId ) ; } } } } return currentState ; } }

Fix:
final Map currentState = new HashMap ( 7 ) ;
Buggy code:
public class GameModel { public static final Position2D STARTING_POS = new Position2D ( 0 , 0 ) ; public static final String PLAYER_DEFAULT_NAME = "Emil" ; public static final Gender PLAYER_DEFAULT_GENDER = Gender . MALE ; private static Player player = new Player ( GameModel . STARTING_POS , Direction . NORTH , GameModel . PLAYER_DEFAULT_NAME , GameModel . PLAYER_DEFAULT_GENDER ) ; private GameMap gameMap ; private Stats stats ; private Dialog activeDialog ; private boolean isDialogActive ; private final GameMenu gameMenu ; public GameModel ( ) { } private void setupGameMenu ( ) { <START_BUG> gameMenu . addMenuOption ( new StatsOption ( ) ) ; <END_BUG> gameMenu . addMenuOption ( new ExitOption ( ) ) ; } public GameMenu getGameMenu ( ) { } public static Player getPlayer ( ) { } public GameMap getGameMap ( ) { } public void addPlayerStat ( String key , double value ) { } public double getPlayerStat ( String key ) { } public void addHec ( double amount ) { } public double getHec ( ) { } public void setActiveDialog ( Dialog dialog ) { } public Dialog getActiveDialog ( ) { } public boolean isDialogActive ( ) { } public void setIsDialogActive ( boolean isDialogActive ) { } public void moveCharacter ( Position2D nextPos ) { } public void pickupItem ( ILayer itemLayer , Position2D nextPlayerPos ) { } public boolean shouldPlayerMove ( ILayer collisionLayer , ILayer groundLayer , Position2D playerNextPos ) { } private void doItemAction ( ItemTile itemTile ) { } }

Fix:
gameMenu . addMenuOption ( new StatsOption ( this ) ) ;
Buggy code:
public class TestOmitPositions extends LuceneTestCase { public void testBasic ( ) throws Exception { Directory dir = newDirectory ( ) ; RandomIndexWriter w = new RandomIndexWriter ( random ( ) , dir ) ; Document doc = new Document ( ) ; FieldType ft = new FieldType ( TextField . TYPE_NOT_STORED ) ; ft . setIndexOptions ( DOCS_AND_FREQS ) ; Field f = newField ( "foo" , "this<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>test<seq2seq4repair_space>test" , ft ) ; doc . add ( f ) ; for ( int i = 0 ; i < 100 ; i ++ ) { w . addDocument ( doc ) ; } IndexReader reader = w . getReader ( ) ; w . close ( ) ; assertNull ( MultiFields . getTermPositionsEnum ( reader , null , "foo" , new BytesRef ( "test" ) ) ) ; <START_BUG> DocsEnum de = _TestUtil . docs ( random ( ) , reader , "foo" , new BytesRef ( "test" ) , null , null , true ) ; <END_BUG> while ( ( de . nextDoc ( ) ) != ( DocIdSetIterator . NO_MORE_DOCS ) ) { assertEquals ( 2 , de . freq ( ) ) ; } reader . close ( ) ; dir . close ( ) ; } public void testPositions ( ) throws Exception { } private void assertNoPrx ( Directory dir ) throws Throwable { } public void testNoPrxFile ( ) throws Throwable { } }

Fix:
DocsEnum de = _TestUtil . docs ( random ( ) , reader , "foo" , new BytesRef ( "test" ) , null , null , FLAG_FREQS ) ;
Buggy code:
public class TextRenderer extends Loggable { public static final int MAX_CACHE_SIZE = 200 ; public static final float DEFAULT_TEXT_SIZE = 60.0F ; public static final int DEFAULT_TEXT_COLOR = Color . WHITE ; public static final Typeface DEFAULT_TYPEFACE = Typeface . DEFAULT ; public static TextRenderer . TextProps newProps ( ) { } public static class TextProps { private float mTextSize = TextRenderer . DEFAULT_TEXT_SIZE ; private int mTextColor = TextRenderer . DEFAULT_TEXT_COLOR ; private Typeface mTypeface = TextRenderer . DEFAULT_TYPEFACE ; public TextRenderer . TextProps textSize ( float newTextSize ) { } public TextRenderer . TextProps textColor ( int newColor ) { } public TextRenderer . TextProps typeface ( Typeface newTypeface ) { } public TextProps ( ) { } @ Override public boolean equals ( Object o ) { if ( ! ( o instanceof TextRenderer . TextProps ) ) { return false ; } else { TextRenderer . TextProps other = ( ( TextRenderer . TextProps ) ( o ) ) ; return ( ( ( mTextSize ) == ( other . mTextSize ) ) && ( ( mTextColor ) == ( other . mTextColor ) ) ) && ( mTypeface . equals ( other . mTypeface ) ) ; } } @ Override public int hashCode ( ) { } } private class StringAndProps { String s ; TextRenderer . TextProps props ; StringAndProps ( String s , TextRenderer . TextProps props ) { } @ Override public boolean equals ( Object o ) { if ( ! ( o instanceof TextRenderer . StringAndProps ) ) { return false ; } else { TextRenderer . StringAndProps other = ( ( TextRenderer . StringAndProps ) ( o ) ) ; <START_BUG> return ( ( s ) == ( other . s ) ) && ( props . equals ( other . props ) ) ; <END_BUG> } } @ Override public int hashCode ( ) { } } private LoadingCache < TextRenderer . StringAndProps , Texture > mTextureCache ; private class TextRemovalListener implements RemovalListener < TextRenderer . StringAndProps , Texture > { @ Override public void onRemoval ( RemovalNotification < TextRenderer . StringAndProps , Texture > notification ) { } } private class TextLoader extends CacheLoader < TextRenderer . StringAndProps , Texture > { @ Override public Texture load ( TextRenderer . StringAndProps sAndP ) throws Exception { } } public TextRenderer ( ) { } public Texture getTexture ( String s , TextRenderer . TextProps props ) { } public void reloadTextures ( ) { } private static TextRenderer sInstance = null ; public static TextRenderer getInstance ( ) { } public static void clearInstance ( ) { } }

Fix:
return ( s . equals ( other . s ) ) && ( props . equals ( other . props ) ) ;
Buggy code:
@ RunWith ( RobolectricTestRunner . class ) @ Config ( manifest = Config . NONE ) public class BenchmarkTest { private static final int COUNT_PAYLOAD = 1000 ; private static final int COUNT_NOP = ( BenchmarkTest . COUNT_PAYLOAD ) * 1000 ; private static class NextNopThreadsPayload extends Payload { protected NextNopThreadsPayload ( int count ) { } @ Subscribe ( on = "str" , run = Runs . ON_THREADS ) public void onEvents ( String start ) { } @ Subscribe ( on = "long" , run = Runs . ON_THREADS ) public void onEvents1 ( long start ) { hitEvt2 ( ) ; } } private static class NextNopCallerPayload extends Payload { protected NextNopCallerPayload ( int count ) { } @ Subscribe ( on = "str" , run = Runs . ON_CALLER ) public void onEvents ( String start ) { } @ Subscribe ( on = "long" , run = Runs . ON_CALLER ) public void onEvents1 ( long start ) { hitEvt2 ( ) ; } } private static class Next1msThreadsPayload extends Payload { protected Next1msThreadsPayload ( int count ) { } @ Subscribe ( on = "str" , run = Runs . ON_THREADS ) public void onEvents ( String start ) throws InterruptedException { } @ Subscribe ( on = "long" , run = Runs . ON_THREADS ) public void onEvents1 ( long start ) throws InterruptedException { Thread . sleep ( 1 ) ; hitEvt2 ( ) ; } } private static class Next1msCallerPayload extends Payload { protected Next1msCallerPayload ( int count ) { } @ Subscribe ( on = "str" , run = Runs . ON_CALLER ) public void onEvents ( String start ) throws InterruptedException { } <START_BUG> @ Subscribe ( on = "" , run = Runs . ON_CALLER ) <END_BUG> public void onEvents1 ( long start ) throws InterruptedException { Thread . sleep ( 1 ) ; hitEvt2 ( ) ; } } private static class OttoNopPayload extends Payload { protected OttoNopPayload ( int count ) { } @ com . squareup . otto . Subscribe public void onEvents ( String evt ) { } @ com . squareup . otto . Subscribe public void onEvents1 ( Long evt ) { } } private static class Otto1msPayload extends Payload { protected Otto1msPayload ( int count ) { } @ com . squareup . otto . Subscribe public void onEvents ( String evt ) throws InterruptedException { } @ com . squareup . otto . Subscribe public void onEvents1 ( Long evt ) throws InterruptedException { } } private final ExecutorService CPUs = Executors . newFixedThreadPool ( ( ( Runtime . getRuntime ( ) . availableProcessors ( ) ) + 1 ) ) ; @ Test public void testNop1 ( ) { } @ Test public void testNop2 ( ) { } @ Test public void testNop3 ( ) { } @ Test public void testNop4 ( ) { } @ Test public void test1ms1 ( ) { } @ Test public void test1ms2 ( ) { } @ Test public void test1ms3 ( ) { } @ Test public void test1ms4 ( ) { } private void ottoStress ( Payload payload , String tag ) { } private void nextStress ( Payload payload , Schedule schedule , String tag ) { } private static long NOW ( ) { } }

Fix:
@ Subscribe ( on = "long" , run = Runs . ON_CALLER )
Buggy code:
public class WebResponse extends Response { private static final Log log = LogFactory . getLog ( WebResponse . class ) ; protected boolean redirect ; private final HttpServletResponse httpServletResponse ; private boolean ajax ; public WebResponse ( ) { } public WebResponse ( final HttpServletResponse httpServletResponse ) { } public void addCookie ( final Cookie cookie ) { } public void clearCookie ( final Cookie cookie ) { } public void close ( ) { } public CharSequence encodeURL ( CharSequence url ) { } public final HttpServletResponse getHttpServletResponse ( ) { } public OutputStream getOutputStream ( ) { } public final boolean isRedirect ( ) { } public void redirect ( String url ) { if ( ! ( redirect ) ) { if ( ( httpServletResponse ) != null ) { url = httpServletResponse . encodeRedirectURL ( url ) . toString ( ) ; try { if ( httpServletResponse . isCommitted ( ) ) { WebResponse . log . error ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>redirect<seq2seq4repair_space>to:<seq2seq4repair_space>" + url ) + ",<seq2seq4repair_space>HTTP<seq2seq4repair_space>Response<seq2seq4repair_space>has<seq2seq4repair_space>already<seq2seq4repair_space>been<seq2seq4repair_space>committed." ) ) ; } if ( WebResponse . log . isDebugEnabled ( ) ) { WebResponse . log . debug ( ( "Redirecting<seq2seq4repair_space>to<seq2seq4repair_space>" + url ) ) ; } if ( isAjax ( ) ) { httpServletResponse . addHeader ( "Ajax-Location" , url ) ; httpServletResponse . getWriter ( ) . write ( "<seq2seq4repair_space>" ) ; } else { httpServletResponse . sendRedirect ( url ) ; } redirect = true ; } catch ( IOException e ) { <START_BUG> WebResponse . log . warn ( ( ( ( "redirect<seq2seq4repair_space>to<seq2seq4repair_space>" + url ) + "<seq2seq4repair_space>failed:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) , e ) ; <END_BUG> } } } else { WebResponse . log . info ( ( "Already<seq2seq4repair_space>redirecting<seq2seq4repair_space>to<seq2seq4repair_space>an<seq2seq4repair_space>url<seq2seq4repair_space>current<seq2seq4repair_space>one<seq2seq4repair_space>ignored:<seq2seq4repair_space>" + url ) ) ; } } public final void setContentType ( final String mimeType ) { } public void setContentLength ( long length ) { } public void setLastModifiedTime ( Time time ) { } public final void setLocale ( final Locale locale ) { } public void write ( final CharSequence string ) { } public void write ( AppendingStringBuffer asb ) { } public void setDateHeader ( String header , long date ) { } public void setHeader ( String header , String value ) { } public void setAttachmentHeader ( String filename ) { } public boolean isAjax ( ) { } public void setAjax ( boolean ajax ) { } }

Fix:
WebResponse . log . warn ( ( ( ( "redirect<seq2seq4repair_space>to<seq2seq4repair_space>" + url ) + "<seq2seq4repair_space>failed:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) ) ;
Buggy code:
public class PartTester { private PartTester ( ) { } public static void testEditor ( IEditorPart part ) throws Exception { } public static void testEditorInput ( IEditorInput input ) throws Exception { input . getAdapter ( Object . class ) ; Assert . isNotNull ( input . getName ( ) , "The<seq2seq4repair_space>editor<seq2seq4repair_space>input<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>non-null<seq2seq4repair_space>name" ) ; <START_BUG> Assert . isNotNull ( input . getToolTipText ( ) , "The<seq2seq4repair_space>editor<seq2seq4repair_space>input<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>non-null<seq2seq4repair_space>name" ) ; <END_BUG> IPersistableElement persistableElement = input . getPersistable ( ) ; if ( persistableElement != null ) { Assert . isNotNull ( persistableElement . getFactoryId ( ) , "The<seq2seq4repair_space>persistable<seq2seq4repair_space>element<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>editor<seq2seq4repair_space>input<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>non-null<seq2seq4repair_space>factory<seq2seq4repair_space>id" ) ; } } private static void testWorkbenchPart ( IWorkbenchPart part ) throws Exception { } private static void testWorkbenchPart2 ( IWorkbenchPart2 part ) throws Exception { } public static void testView ( IViewPart part ) throws Exception { } }

Fix:
Assert . isNotNull ( input . getToolTipText ( ) , "The<seq2seq4repair_space>editor<seq2seq4repair_space>input<seq2seq4repair_space>must<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>non-null<seq2seq4repair_space>tool<seq2seq4repair_space>tip" ) ;
Buggy code:
final class HandlerAuthority extends ExpressionAuthority { private static final int ACTIVATIONS_BY_SOURCE_SIZE = 256 ; private static final int ACTIVATIONS_TO_RECOMPUTE_SIZE = 1024 ; private static final boolean DEBUG = Policy . DEBUG_HANDLERS ; private static final boolean DEBUG_PERFORMANCE = Policy . DEBUG_HANDLERS_PERFORMANCE ; private static final boolean DEBUG_VERBOSE = ( Policy . DEBUG_HANDLERS ) && ( Policy . DEBUG_HANDLERS_VERBOSE ) ; private static final String DEBUG_VERBOSE_COMMAND_ID = Policy . DEBUG_HANDLERS_VERBOSE_COMMAND_ID ; private static final String TRACING_COMPONENT = "HANDLERS" ; private final Map [ ] activationsByExpressionBySourcePriority = new Map [ 33 ] ; private final ICommandService commandService ; private final Map handlerActivationsByCommandId = new HashMap ( ) ; HandlerAuthority ( final ICommandService commandService ) { } final void activateHandler ( final IHandlerActivation activation ) { } final void deactivateHandler ( final IHandlerActivation activation ) { } final Shell getActiveShell ( ) { } private final IHandlerActivation resolveConflicts ( final String commandId , final SortedSet activations ) { } protected final void sourceChanged ( final int sourcePriority ) { } private final void updateCommand ( final String commandId , final IHandlerActivation activation ) { final Command command = commandService . getCommand ( commandId ) ; if ( activation == null ) { command . setHandler ( null ) ; } else { command . setHandler ( activation . getHandler ( ) ) ; <START_BUG> commandService . refreshCallbacks ( commandId , null ) ; <END_BUG> } } final void updateShellKludge ( ) { } }

Fix:
commandService . refreshElements ( commandId , null ) ;
Buggy code:
public class SpotRecognistionService extends Service { private static final String TAG = SpotRecognistionService . class . getSimpleName ( ) ; public static final String NOTIFICATION = "location.track.services.receiver" ; private GoogleApiClient mGoogleApiClient ; private LocationRequest mLocationRequest ; private SpotRecognistionService . GPSLocationListener gpsLocationListener ; @ Override public IBinder onBind ( Intent intent ) { } protected synchronized void buildGoogleApiClient ( ) { } @ Override public void onCreate ( ) { } @ Override public int onStartCommand ( Intent intent , int flags , int startId ) { } @ Override public void onDestroy ( ) { } private class GPSLocationListener implements GoogleApiClient . ConnectionCallbacks , GoogleApiClient . OnConnectionFailedListener , LocationListener { @ Override public void onLocationChanged ( Location location ) { } private void publishResults ( String lat_Long , int result ) { } @ Override public void onConnected ( Bundle bundle ) { mLocationRequest = LocationRequest . create ( ) ; mLocationRequest . setPriority ( PRIORITY_HIGH_ACCURACY ) ; <START_BUG> mLocationRequest . setInterval ( 5000 ) ; <END_BUG> FusedLocationApi . requestLocationUpdates ( mGoogleApiClient , mLocationRequest , this ) ; } @ Override public void onConnectionSuspended ( int i ) { } @ Override public void onConnectionFailed ( ConnectionResult connectionResult ) { } public void reConnect ( ) { } } }

Fix:
mLocationRequest . setInterval ( 10000 ) ;
Buggy code:
public class TestStrategyAnnotaion extends SingleEMFTestCase { @ Override public void setUp ( ) { <START_BUG> super . setUp ( DROP_TABLES , Person . class , Address . class ) ; <END_BUG> } public void testStrategy ( ) { } }

Fix:
super . setUp ( Person . class , Address . class , CLEAR_TABLES ) ;
Buggy code:
public class MatrixVariableMethodArgumentResolver extends AbstractNamedValueMethodArgumentResolver { public MatrixVariableMethodArgumentResolver ( ) { } @ Override public boolean supportsParameter ( MethodParameter parameter ) { } @ Override protected NamedValueInfo createNamedValueInfo ( MethodParameter parameter ) { } @ Override protected Object resolveName ( String name , MethodParameter parameter , NativeWebRequest request ) throws Exception { } @ Override protected void handleMissingValue ( String name , MethodParameter parameter ) throws ServletRequestBindingException { <START_BUG> throw new ServletRequestBindingException ( ( ( ( "Missing<seq2seq4repair_space>matrix<seq2seq4repair_space>variable<seq2seq4repair_space>'" + name ) + "'<seq2seq4repair_space>for<seq2seq4repair_space>method<seq2seq4repair_space>parameter<seq2seq4repair_space>type<seq2seq4repair_space>" ) + ( parameter . getParameterType ( ) . getSimpleName ( ) ) ) ) ; <END_BUG> } private static class PathParamNamedValueInfo extends NamedValueInfo { private PathParamNamedValueInfo ( MatrixVariable annotation ) { } } }

Fix:
throw new ServletRequestBindingException ( ( ( ( "Missing<seq2seq4repair_space>matrix<seq2seq4repair_space>variable<seq2seq4repair_space>'" + name ) + "'<seq2seq4repair_space>for<seq2seq4repair_space>method<seq2seq4repair_space>parameter<seq2seq4repair_space>of<seq2seq4repair_space>type<seq2seq4repair_space>" ) + ( parameter . getParameterType ( ) . getSimpleName ( ) ) ) ) ;
Buggy code:
public final class MutableActivityManager extends AbstractActivityManager implements IMutableActivityManager { private Map activitiesById = new WeakHashMap ( ) ; private Map activityActivityBindingsByParentActivityId = new HashMap ( ) ; private Map activityDefinitionsById = new HashMap ( ) ; private Map activityPatternBindingsByActivityId = new HashMap ( ) ; private IActivityRegistry activityRegistry ; private Map categoriesById = new WeakHashMap ( ) ; private Map categoryActivityBindingsByCategoryId = new HashMap ( ) ; private Map categoryDefinitionsById = new HashMap ( ) ; private Set definedActivityIds = new HashSet ( ) ; private Set definedCategoryIds = new HashSet ( ) ; private Set enabledActivityIds = new HashSet ( ) ; private Map identifiersById = new WeakHashMap ( ) ; public MutableActivityManager ( ) { } public MutableActivityManager ( IActivityRegistry activityRegistry ) { } public IActivity getActivity ( String activityId ) { } public ICategory getCategory ( String categoryId ) { } public Set getDefinedActivityIds ( ) { } public Set getDefinedCategoryIds ( ) { } public Set getEnabledActivityIds ( ) { } public IIdentifier getIdentifier ( String identifierId ) { } private void getRequiredActivityIds ( Set activityIds , Set requiredActivityIds ) { } public boolean isMatch ( String string , Set activityIds ) { } private void notifyActivities ( Map activityEventsByActivityId ) { } private void notifyCategories ( Map categoryEventsByCategoryId ) { } private void notifyIdentifiers ( Map identifierEventsByIdentifierId ) { for ( Iterator iterator = identifierEventsByIdentifierId . entrySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { Map . Entry entry = ( ( Map . Entry ) ( iterator . next ( ) ) ) ; String identifierId = ( ( String ) ( entry . getKey ( ) ) ) ; IdentifierEvent identifierEvent = ( ( IdentifierEvent ) ( entry . getValue ( ) ) ) ; <START_BUG> Identifier identifier = ( ( Identifier ) ( categoriesById . get ( identifierId ) ) ) ; <END_BUG> if ( identifier != null ) identifier . fireIdentifierChanged ( identifierEvent ) ; } } private void readRegistry ( ) { } public void setEnabledActivityIds ( Set enabledActivityIds ) { } private Map updateActivities ( Collection activityIds ) { } private ActivityEvent updateActivity ( Activity activity ) { } private Map updateCategories ( Collection categoryIds ) { } private CategoryEvent updateCategory ( Category category ) { } private IdentifierEvent updateIdentifier ( Identifier identifier ) { } private Map updateIdentifiers ( Collection identifierIds ) { } }

Fix:
Identifier identifier = ( ( Identifier ) ( identifiersById . get ( identifierId ) ) ) ;
Buggy code:
public class ModelToStringTest extends WicketTestCase { public ModelToStringTest ( String name ) { } private static class InnerPOJO { } public void testModel ( ) { } public void testPropertyModel ( ) { } public void testCompoundPropertyModel ( ) { } public void testBoundCompoundPropertyModel ( ) { } private static class MyAbstractReadOnlyModel extends AbstractReadOnlyModel { private static final long serialVersionUID = 1L ; public Object getObject ( Component component ) { } } public void testAbstractReadOnlyModel ( ) { } private static class MyAbstractReadOnlyDetachableModel extends AbstractReadOnlyDetachableModel { private static final long serialVersionUID = 1L ; public IModel getNestedModel ( ) { } protected void onAttach ( ) { } protected void onDetach ( ) { } protected Object onGetObject ( Component component ) { } } public void testAbstractReadOnlyDetachableModel ( ) { } private static final class MyLoadableDetachableModel extends LoadableDetachableModel { private static final long serialVersionUID = 1L ; protected Object load ( ) { } } public void testLoadableDetachableModel ( ) { LoadableDetachableModel model = new ModelToStringTest . MyLoadableDetachableModel ( ) ; String expected = ( ( ( "Model:classname=[" + ( model . getClass ( ) . getName ( ) ) ) + "]" ) + ":attached=false" ) + ":tempModelObject=[null]" ; assertEquals ( expected , model . toString ( ) ) ; <START_BUG> model . attach ( ) ; <END_BUG> expected = ( ( ( "Model:classname=[" + ( model . getClass ( ) . getName ( ) ) ) + "]" ) + ":attached=true" ) + ":tempModelObject=[foo]" ; assertEquals ( expected , model . toString ( ) ) ; model . detach ( ) ; expected = ( ( ( "Model:classname=[" + ( model . getClass ( ) . getName ( ) ) ) + "]" ) + ":attached=false" ) + ":tempModelObject=[null]" ; assertEquals ( expected , model . toString ( ) ) ; } }

Fix:
model . getObject ( null ) ;
Buggy code:
public final class FixedInjectionSource extends InjectionSource { private final Object value ; private final ManagedReferenceFactory managedReferenceFactory ; public FixedInjectionSource ( final Object value ) { } private boolean equals ( final InjectionSource injectionSource ) { } public boolean equals ( final FixedInjectionSource configuration ) { } public int hashCode ( ) { } <START_BUG> public void getResourceValue ( final ComponentConfiguration componentConfiguration , final ServiceBuilder < ? > serviceBuilder , final DeploymentPhaseContext phaseContext , final Injector < ManagedReferenceFactory > injector ) { <END_BUG> injector . inject ( managedReferenceFactory ) ; } }

Fix:
public void getResourceValue ( final ResolutionContext resolutionContext , final ServiceBuilder < ? > serviceBuilder , final DeploymentPhaseContext phaseContext , final Injector < ManagedReferenceFactory > injector ) {
Buggy code:
public class MockWebApplicationTest extends TestCase { private MockWebApplication application ; public MockWebApplicationTest ( String name ) { } protected void setUp ( ) throws Exception { } public void testRenderHomePage ( ) throws Exception { } public void testClickLink ( ) throws Exception { } private boolean validateDocument ( String document , int expectedLinkClickCount ) { HtmlDocumentValidator validator = new HtmlDocumentValidator ( ) ; Tag html = new Tag ( "html" ) ; Tag head = new Tag ( "head" ) ; html . addExpectedChild ( head ) ; Tag title = new Tag ( "title" ) ; head . addExpectedChild ( title ) ; title . addExpectedChild ( new TextContent ( "Mock<seq2seq4repair_space>Page" ) ) ; Tag body = new Tag ( "body" ) ; html . addExpectedChild ( body ) ; Tag a = new Tag ( "a" ) ; <START_BUG> a . addExpectedAttribute ( "href" , "//MockWebApplication//MockWebApplication\\?component=[0-9]*.actionLink&amp;rendering=[0-9]*&amp;interface=ILinkListener" ) ; <END_BUG> a . addExpectedAttribute ( "id" , "wicket-actionLink" ) ; body . addExpectedChild ( a ) ; a . addExpectedChild ( new TextContent ( "Action<seq2seq4repair_space>link<seq2seq4repair_space>clicked<seq2seq4repair_space>" ) ) ; Tag span = new Tag ( "span" ) ; span . addExpectedChild ( new TextContent ( ( "" + expectedLinkClickCount ) ) ) ; a . addExpectedChild ( span ) ; a . addExpectedChild ( new TextContent ( "<seq2seq4repair_space>times" ) ) ; validator . addRootElement ( html ) ; return validator . isDocumentValid ( document ) ; } }

Fix:
a . addExpectedAttribute ( "href" , "//MockWebApplication//MockWebApplication\\?component=[0-9]*.actionLink&amp;version=[0-9]*&amp;interface=ILinkListener" ) ;
Buggy code:
public class DefaultOperationRequestBuilder extends ValidatingOperationCallbackHandler implements OperationRequestBuilder { private ModelNode request = new ModelNode ( ) ; private OperationRequestAddress prefix ; public DefaultOperationRequestBuilder ( ) { } public DefaultOperationRequestBuilder ( OperationRequestAddress prefix ) { } public OperationRequestAddress getAddress ( ) { } @ Override public void rootNode ( ) { } @ Override public void parentNode ( ) { } @ Override public void nodeType ( ) { } @ Override public void nodeTypeNameSeparator ( int index ) { } @ Override public void nodeSeparator ( int index ) { } @ Override public void addressOperationSeparator ( int index ) { } @ Override public void validatedOperationName ( String operationName ) { } @ Override public void propertyListStart ( int index ) { } @ Override public void propertyNameValueSeparator ( int index ) { } @ Override public void propertySeparator ( int index ) { } @ Override public void propertyListEnd ( int index ) { } @ Override protected void validatedNodeType ( String nodeType ) throws OperationFormatException { } @ Override protected void validatedNodeName ( String nodeName ) throws OperationFormatException { } @ Override protected void validatedPropertyName ( String propertyName ) throws OperationFormatException { } @ Override protected void validatedProperty ( String name , String value , int nameValueSeparatorIndex ) throws OperationFormatException { } @ Override public void nodeTypeOrName ( String typeOrName ) throws OperationFormatException { } public ModelNode buildRequest ( ) throws OperationFormatException { } @ Override public void setOperationName ( String name ) { } @ Override public void addNode ( String type , String name ) { } @ Override public void addNodeType ( String type ) { } @ Override public void addNodeName ( String name ) { } @ Override public void addProperty ( String name , String value ) { if ( ( name == null ) || ( name . trim ( ) . isEmpty ( ) ) ) throw new IllegalArgumentException ( ( ( "The<seq2seq4repair_space>argument<seq2seq4repair_space>name<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>specified:<seq2seq4repair_space>'" + name ) + "'" ) ) ; if ( ( value == null ) || ( value . trim ( ) . isEmpty ( ) ) ) <START_BUG> throw new IllegalArgumentException ( ( ( "The<seq2seq4repair_space>argument<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>specified:<seq2seq4repair_space>'" + value ) + "'" ) ) ; <END_BUG> ModelNode toSet = null ; try { toSet = ModelNode . fromString ( value ) ; } catch ( Exception e ) { toSet = new ModelNode ( ) . set ( value ) ; } request . get ( name ) . set ( toSet ) ; } public ModelNode getModelNode ( ) { } public static void main ( String [ ] args ) throws Exception { } }

Fix:
throw new IllegalArgumentException ( ( ( ( ( "The<seq2seq4repair_space>argument<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>specified<seq2seq4repair_space>for<seq2seq4repair_space>" + name ) + ":<seq2seq4repair_space>'" ) + value ) + "'" ) ) ;
Buggy code:
public class MD5HexAssertion extends AbstractTestElement implements Serializable , Assertion { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String MD5HEX_KEY = "MD5HexAssertion.size" ; public AssertionResult getResult ( SampleResult response ) { AssertionResult result = new AssertionResult ( ) ; result . setFailure ( false ) ; byte [ ] resultData = response . getResponseData ( ) ; <START_BUG> if ( resultData == null ) { <END_BUG> result . setError ( false ) ; result . setFailure ( true ) ; result . setFailureMessage ( "Response<seq2seq4repair_space>was<seq2seq4repair_space>null" ) ; return result ; } if ( getAllowedMD5Hex ( ) . equals ( "" ) ) { result . setError ( false ) ; result . setFailure ( true ) ; result . setFailureMessage ( "MD5Hex<seq2seq4repair_space>to<seq2seq4repair_space>test<seq2seq4repair_space>against<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ; return result ; } String md5Result = MD5HexAssertion . baMD5Hex ( resultData ) ; if ( ! ( md5Result . equalsIgnoreCase ( getAllowedMD5Hex ( ) ) ) ) { result . setFailure ( true ) ; Object [ ] arguments = new Object [ ] { md5Result , getAllowedMD5Hex ( ) } ; String message = MessageFormat . format ( JMeterUtils . getResString ( "md5hex_assertion_failure" ) , arguments ) ; result . setFailureMessage ( message ) ; } return result ; } public void setAllowedMD5Hex ( String hex ) { } public String getAllowedMD5Hex ( ) { } static String baToHex ( byte [ ] ba ) { } static String baMD5Hex ( byte [ ] ba ) { } }

Fix:
if ( ( resultData . length ) == 0 ) {
Buggy code:
public final class ScheduledThreadPoolService implements Service < ManagedScheduledExecutorService > { private final InjectedValue < ThreadFactory > threadFactoryValue = new InjectedValue < ThreadFactory > ( ) ; private ManagedScheduledExecutorService executor ; private StopContext context ; private final int maxThreads ; private final TimeSpec keepAlive ; public ScheduledThreadPoolService ( final int maxThreads , final TimeSpec keepAlive ) { } public synchronized void start ( final StartContext context ) throws StartException { } public synchronized void stop ( final StopContext context ) { } public synchronized ManagedScheduledExecutorService getValue ( ) throws IllegalStateException { final ManagedScheduledExecutorService value = this . executor ; if ( value == null ) { <START_BUG> throw MESSAGES . scheduledThreadPoolExecutorUninitialized ( ) ; <END_BUG> } return value ; } public Injector < ThreadFactory > getThreadFactoryInjector ( ) { } public int getActiveCount ( ) { } public long getCompletedTaskCount ( ) { } public int getCurrentThreadCount ( ) { } public int getLargestThreadCount ( ) { } public long getTaskCount ( ) { } public int getQueueSize ( ) { } private class ExecutorImpl extends ScheduledThreadPoolExecutor { ExecutorImpl ( final int corePoolSize , final ThreadFactory threadFactory ) { } protected void terminated ( ) { } } }

Fix:
throw ROOT_LOGGER . scheduledThreadPoolExecutorUninitialized ( ) ;
Buggy code:
public class ChatCommandAid { @ Listener public void onPlayerChat ( MessageChannelEvent . Chat event ) { String rawText = event . getRawMessage ( ) . toPlain ( ) ; if ( rawText . matches ( "\\.//.*" ) ) { String rawCommand = rawText . replaceFirst ( "////.*" , "" ) ; String command = rawCommand . replaceFirst ( "\\.//" , "//" ) . trim ( ) ; <START_BUG> String message = rawText . replaceFirst ( rawCommand , "" ) . replaceFirst ( "////<seq2seq4repair_space>*" , "" ) . trim ( ) ; <END_BUG> event . getFormatter ( ) . setBody ( Text . of ( Text . of ( DARK_GREEN , TextActions . showText ( Text . of ( "Click<seq2seq4repair_space>to<seq2seq4repair_space>type:\n" , command ) ) , TextActions . suggestCommand ( command ) , command ) , "<seq2seq4repair_space>" , message ) ) ; } } }

Fix:
String message = rawText . replace ( rawCommand , "" ) . replaceFirst ( "////<seq2seq4repair_space>*" , "" ) . trim ( ) ;
Buggy code:
public class HandlerService implements Service < HttpHandler > { private final HttpHandler httpHandler ; public HandlerService ( HttpHandler httpHandler ) { } @ Override public void start ( StartContext context ) throws StartException { <START_BUG> ROOT_LOGGER . startedHttpHandler ( httpHandler ) ; <END_BUG> } @ Override public void stop ( StopContext context ) { } @ Override public HttpHandler getValue ( ) throws IllegalArgumentException , IllegalStateException { } }

Fix:
ROOT_LOGGER . tracef ( "starting<seq2seq4repair_space>handler:<seq2seq4repair_space>%s" , httpHandler ) ;
Buggy code:
public class ChiSquareFactoryTest extends ChiSquareTestTest { public ChiSquareFactoryTest ( String name ) { } public void setUp ( ) { super . setUp ( ) ; <START_BUG> testStatistic = TestUtils . getChiSquareTest ( ) ; <END_BUG> } public static Test suite ( ) { } }

Fix:
testStatistic = TestUtils . getUnknownDistributionChiSquareTest ( ) ;
Buggy code:
public class DefaultAspectManager implements Initializable , AspectManager { private static final Resources REZ = ResourceManager . getPackageResources ( DefaultAspectManager . class ) ; private HashMap m_aspectMap = new HashMap ( ) ; private AspectHandler [ ] m_aspects = new AspectHandler [ 0 ] ; private String [ ] m_names = new String [ 0 ] ; public void initialize ( ) throws Exception { } public synchronized void addAspectHandler ( final String name , final AspectHandler handler ) throws TaskException { } <START_BUG> public synchronized void removeAspectHandler ( final String name , final AspectHandler handler ) throws TaskException { <END_BUG> final AspectHandler entry = ( ( AspectHandler ) ( m_aspectMap . remove ( name ) ) ) ; if ( null == entry ) { final String message = DefaultAspectManager . REZ . getString ( "no.aspect" , name ) ; throw new TaskException ( message ) ; } rebuildArrays ( ) ; } private void rebuildArrays ( ) { } public String [ ] getNames ( ) { } public void dispatchAspectSettings ( final String name , final Parameters parameters , final Configuration [ ] elements ) throws TaskException { } public Configuration preCreate ( final Configuration configuration ) throws TaskException { } public void aspectSettings ( final Parameters parameters , final Configuration [ ] elements ) throws TaskException { } public void postCreate ( final Task task ) throws TaskException { } public void preLogEnabled ( final Logger logger ) throws TaskException { } public void preConfigure ( final Configuration taskModel ) throws TaskException { } public void preExecute ( ) throws TaskException { } public void preDestroy ( ) throws TaskException { } public boolean error ( final TaskException te ) throws TaskException { } }

Fix:
public synchronized void removeAspectHandler ( final String name ) throws TaskException {