nus-yam/ex-repair huggingface dataset:
Buggy code:
public class DebugSampler extends AbstractSampler implements TestBean { private static final long serialVersionUID = 232L ; private boolean displayJMeterVariables ; private boolean displayJMeterProperties ; private boolean displaySystemProperties ; public SampleResult sample ( Entry e ) { SampleResult res = new SampleResult ( ) ; res . setSampleLabel ( getName ( ) ) ; res . sampleStart ( ) ; StringBuilder sb = new StringBuilder ( 100 ) ; StringBuilder rd = new StringBuilder ( 20 ) ; if ( isDisplayJMeterVariables ( ) ) { rd . append ( "JMeterVariables\n" ) ; sb . append ( "JMeterVariables:\n" ) ; formatSet ( sb , JMeterContextService . getContext ( ) . getVariables ( ) . entrySet ( ) ) ; sb . append ( "\n" ) ; } if ( isDisplayJMeterProperties ( ) ) { rd . append ( "JMeterProperties\n" ) ; sb . append ( "JMeterProperties:\n" ) ; formatSet ( sb , JMeterUtils . getJMeterProperties ( ) . entrySet ( ) ) ; sb . append ( "\n" ) ; } if ( isDisplaySystemProperties ( ) ) { rd . append ( "SystemProperties\n" ) ; sb . append ( "SystemProperties:\n" ) ; formatSet ( sb , System . getProperties ( ) . entrySet ( ) ) ; sb . append ( "\n" ) ; } <START_BUG> res . setResponseData ( sb . toString ( ) . getBytes ( ) ) ; <END_BUG> res . setDataType ( TEXT ) ; res . setSamplerData ( rd . toString ( ) ) ; res . setSuccessful ( true ) ; res . sampleEnd ( ) ; return res ; } @ SuppressWarnings ( "unchecked" ) private void formatSet ( StringBuilder sb , Set s ) { } public boolean isDisplayJMeterVariables ( ) { } public void setDisplayJMeterVariables ( boolean displayJMeterVariables ) { } public boolean isDisplayJMeterProperties ( ) { } public void setDisplayJMeterProperties ( boolean displayJMeterPropterties ) { } public boolean isDisplaySystemProperties ( ) { } public void setDisplaySystemProperties ( boolean displaySystemProperties ) { } }

Fix:
res . setResponseData ( sb . toString ( ) , null ) ;
Buggy code:
public class MessageImpl implements Message { private int groupId ; private int messageId ; private boolean isTerminationMessage ; private String text ; private Vector < Observer > observers ; public MessageImpl ( int groupId , String text , int messageId ) { } @ Override public void completed ( ) { } @ Override public int getGroupId ( ) { } @ Override public int getId ( ) { } @ Override public boolean isTerminationMessage ( ) { } @ Override public void setTerminationMessage ( ) { } @ Override public void run ( ) { try { <START_BUG> Thread . sleep ( 2000 ) ; <END_BUG> } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } System . out . println ( ( "Message<seq2seq4repair_space>finished<seq2seq4repair_space>processing<seq2seq4repair_space>-<seq2seq4repair_space>id:<seq2seq4repair_space>" + ( this . messageId ) ) ) ; this . completed ( ) ; } @ Override public void addObserver ( Observer o ) { } @ Override public void notifyObservers ( ) { } @ Override public void deleteObserver ( Observer o ) { } }

Fix:
Thread . sleep ( 500 ) ;
Buggy code:
public class ChannelOpenListenerService implements Service < Void > , OpenListener { private final Logger log = Logger . getLogger ( "org.jboss.as.remoting" ) ; private final InjectedValue < Endpoint > endpointValue = new InjectedValue < Endpoint > ( ) ; private final InjectedValue < ManagementOperationHandlerFactory > operationHandlerFactoryValue = new InjectedValue < ManagementOperationHandlerFactory > ( ) ; private final String channelName ; private final OptionMap optionMap ; private final Set < ManagementChannel > channels = Collections . synchronizedSet ( new HashSet < ManagementChannel > ( ) ) ; private volatile Registration registration ; private final AtomicBoolean closed = new AtomicBoolean ( ) ; public ChannelOpenListenerService ( final String channelName , OptionMap optionMap ) { } public ServiceName getServiceName ( ) { } public InjectedValue < Endpoint > getEndpointInjector ( ) { } public InjectedValue < ManagementOperationHandlerFactory > getOperationHandlerInjector ( ) { } @ Override public Void getValue ( ) throws IllegalArgumentException , IllegalStateException { } @ Override public void start ( StartContext context ) throws StartException { } @ Override public void stop ( StopContext context ) { } @ Override public void channelOpened ( Channel channel ) { final ManagementOperationHandler handler = operationHandlerFactoryValue . getValue ( ) . createOperationHandler ( ) ; final ManagementChannel managementChannel = new org . jboss . as . protocol . mgmt . ManagementChannelFactory ( handler ) . create ( channelName , channel ) ; channels . add ( managementChannel ) ; log . tracef ( "Opened<seq2seq4repair_space>%s:<seq2seq4repair_space>%s<seq2seq4repair_space>with<seq2seq4repair_space>handler<seq2seq4repair_space>%s" , channelName , managementChannel , handler ) ; managementChannel . startReceiving ( ) ; channel . addCloseHandler ( new org . jboss . remoting3 . CloseHandler < Channel > ( ) { <START_BUG> public void handleClose ( Channel closed ) { <END_BUG> channels . remove ( managementChannel ) ; try { managementChannel . sendByeBye ( ) ; } catch ( IOException ignore ) { } log . tracef ( "Handling<seq2seq4repair_space>close<seq2seq4repair_space>for<seq2seq4repair_space>%s" , managementChannel ) ; } } ) ; } @ Override public void registrationTerminated ( ) { } }

Fix:
public void handleClose ( final Channel closed , final IOException exception ) {
Buggy code:
public class Sash extends Control { Cursor sizeCursor ; boolean dragging ; int lastX ; int lastY ; int startX ; int startY ; private static final int INCREMENT = 1 ; private static final int PAGE_INCREMENT = 9 ; NSArray accessibilityAttributes = null ; public Sash ( Composite parent , int style ) { } int accessibilityAttributeNames ( int id , int sel ) { } int accessibilityAttributeValue ( int id , int sel , int arg0 ) { } boolean accessibilityIsIgnored ( int id , int sel ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } boolean becomeFirstResponder ( int id , int sel ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } void drawWidget ( int id , NSGraphicsContext context , NSRect rect , boolean sendPaint ) { <START_BUG> fillBackground ( view , context , rect ) ; <END_BUG> super . drawWidget ( id , context , rect , sendPaint ) ; } Cursor findCursor ( ) { } boolean sendKeyEvent ( NSEvent nsEvent , int type ) { } void mouseDown ( int id , int sel , int theEvent ) { } void mouseDragged ( int id , int sel , int theEvent ) { } void mouseUp ( int id , int sel , int theEvent ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } void superKeyDown ( int id , int sel , int theEvent ) { } void superKeyUp ( int id , int sel , int theEvent ) { } int traversalCode ( int key , NSEvent theEvent ) { } }

Fix:
fillBackground ( view , context , rect , ( - 1 ) ) ;
Buggy code:
public class FieldReader implements Reader < FieldScanModel > { private List < FieldScanModel > models = new ArrayList < FieldScanModel > ( ) ; @ Override public void read ( JClassType classType , GeneratorContext context ) { for ( JField field : classType . getFields ( ) ) { <START_BUG> if ( ( field . isPublic ( ) ) && ( ! ( field . isFinal ( ) ) ) ) { <END_BUG> FieldScanModel model = new FieldScanModel ( ) ; model . setName ( field . getName ( ) ) ; if ( ( field . getType ( ) . isPrimitive ( ) ) != null ) { model . setTypeClassName ( field . getType ( ) . isPrimitive ( ) . getQualifiedBoxedSourceName ( ) ) ; } else { model . setTypeClassName ( field . getType ( ) . getQualifiedSourceName ( ) ) ; } model . setAnnotationScanModels ( ScanUtils . getAnnotations ( field ) ) ; models . add ( model ) ; } } } @ Override public boolean isMath ( Annotation checkAnnotation ) { } @ Override public List < FieldScanModel > getData ( ) { } }

Fix:
if ( ( ( field . isPublic ( ) ) || ( field . isDefaultAccess ( ) ) ) && ( ! ( field . isFinal ( ) ) ) ) {
Buggy code:
public class XMLValidateTask extends Task { public static String DEFAULT_XML_READER_CLASSNAME = "org.apache.crimson.parser.XMLReaderImpl" ; private static String INIT_FAILED_MSG = "Could<seq2seq4repair_space>not<seq2seq4repair_space>start<seq2seq4repair_space>xml<seq2seq4repair_space>validation:<seq2seq4repair_space>" ; private boolean m_warn = true ; private boolean m_lenient ; private String m_readerClassName = XMLValidateTask . DEFAULT_XML_READER_CLASSNAME ; private File m_file ; private ArrayList m_filesets = new ArrayList ( ) ; private XMLReader m_xmlReader ; private ValidatorErrorHandler m_errorHandler ; private Hashtable m_features = new Hashtable ( ) ; private ArrayList m_dtdLocations = new ArrayList ( ) ; private Path m_classpath ; public void setClassName ( final String className ) { } public void setClasspath ( final Path classpath ) throws TaskException { } public void setFile ( File file ) { } public void setLenient ( final boolean bool ) { } public void setWarn ( final boolean warn ) { } public void addFileset ( final FileSet fileSet ) { } public Path createClasspath ( ) throws TaskException { } public DTDLocation createDTD ( ) { } public void execute ( ) throws TaskException { } private EntityResolver buildEntityResolver ( ) { } private boolean setFeature ( final String feature , final boolean value , final boolean warn ) { } private void doValidate ( File afile ) throws TaskException { try { getLogger ( ) . debug ( ( ( "Validating<seq2seq4repair_space>" + ( afile . getName ( ) ) ) + "...<seq2seq4repair_space>" ) ) ; <START_BUG> m_errorHandler . init ( afile ) ; <END_BUG> InputSource is = new InputSource ( new FileReader ( afile ) ) ; String uri = "file:" + ( afile . getAbsolutePath ( ) . replace ( '\\' , '//' ) ) ; for ( int index = uri . indexOf ( '#' ) ; index != ( - 1 ) ; index = uri . indexOf ( '#' ) ) { uri = ( ( uri . substring ( 0 , index ) ) + "%23" ) + ( uri . substring ( ( index + 1 ) ) ) ; } is . setSystemId ( uri ) ; m_xmlReader . parse ( is ) ; } catch ( SAXException ex ) { final String message = "Could<seq2seq4repair_space>not<seq2seq4repair_space>validate<seq2seq4repair_space>document<seq2seq4repair_space>" + afile ; throw new TaskException ( message ) ; } catch ( IOException ex ) { final String message = "Could<seq2seq4repair_space>not<seq2seq4repair_space>validate<seq2seq4repair_space>document<seq2seq4repair_space>" + afile ; throw new TaskException ( message , ex ) ; } if ( m_errorHandler . getFailure ( ) ) { final String message = afile + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>XML<seq2seq4repair_space>document." ; throw new TaskException ( message ) ; } } private void initValidator ( ) throws TaskException { } }

Fix:
m_errorHandler . reset ( ) ;
Buggy code:
public abstract class OneStepFormHandler < T > extends MultiStepFormFlowHandler < T > { public static final String VAR_INPUT_TEMPLATE_FILE = VAR_TEMPLATE_BASE_PATH ; public OneStepFormHandler ( Class < T > formCls , String inputTemplateFile ) { } public OneStepFormHandler ( Class < T > formCls ) { } protected T retrieveFormInstance ( Map < String , Object > traceMap , String currentStep ) { <START_BUG> return super . generateFormInstanceFromContext ( ) ; <END_BUG> } @ Override protected boolean doUpdateOnValidationSuccess ( FormProcessData processData ) { } @ Override protected boolean treatCompleteStepAsExit ( ) { } protected boolean skipSaveTraceMap ( String currentStep , String renderTargetStep , Map < String , Object > traceMap ) { } protected String createTemplateFilePath ( String templateBasePath , String step ) { } }

Fix:
return super . generateFormInstanceFromContext ( currentStep ) ;
Buggy code:
class PackageFragmentRootInfo extends OpenableElementInfo { protected SourceMapper sourceMapper = null ; protected int rootKind = IPackageFragmentRoot . K_SOURCE ; protected Object [ ] nonJavaResources ; public PackageFragmentRootInfo ( ) { } static Object [ ] computeFolderNonJavaResources ( IPackageFragmentRoot root , IContainer folder , char [ ] [ ] inclusionPatterns , char [ ] [ ] exclusionPatterns ) throws JavaModelException { } private Object [ ] computeNonJavaResources ( IResource underlyingResource , PackageFragmentRoot handle ) { } synchronized Object [ ] getNonJavaResources ( IJavaProject project , IResource underlyingResource , PackageFragmentRoot handle ) { Object [ ] resources = this . nonJavaResources ; if ( resources == null ) { <START_BUG> resources = this . computeNonJavaResources ( underlyingResource , handle ) ; <END_BUG> this . nonJavaResources = resources ; } return resources ; } public int getRootKind ( ) { } protected SourceMapper getSourceMapper ( ) { } private static boolean isClasspathEntry ( IPath path , IClasspathEntry [ ] resolvedClasspath ) { } void setNonJavaResources ( Object [ ] resources ) { } protected void setRootKind ( int newRootKind ) { } protected void setSourceMapper ( SourceMapper mapper ) { } }

Fix:
resources = computeNonJavaResources ( underlyingResource , handle ) ;
Buggy code:
public class Robot extends IterativeRobot { DriveTrain driveTrain ; RobotDrive rd ; ImageProcess camera ; DashBoard board ; public void robotInit ( ) { } public void autonomousPeriodic ( ) { } public void teleopPeriodic ( ) { driveTrain . drive ( ) ; <START_BUG> camera . startCamera ( ) ; <END_BUG> board . addBooleanLog ( "Tote" , camera . isTote ( ) ) ; board . addNumberLog ( "Power" , ( ( driveTrain . getPower ( ) ) * 100 ) ) ; board . addNumberLog ( "TurnRate" , ( ( driveTrain . getTurnRate ( ) ) * 100 ) ) ; board . updateDashboard ( ) ; } public void testPeriodic ( ) { } }

Fix:
camera . runCamera ( ) ;
Buggy code:
@ Component public class NewsFromCourseBuilder { private static final String ILLEGAL_ARGUMENT = "Argument<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ; private static final String TITLE_TEMPLATE = "//templates//news//course//titleTemplate.ftl" ; private static final String MIX_COURSE_TEMPLATE = "//templates//news//course//MixCourse.ftl" ; private static final String BA_COURSE_TEMPLATE = "//templates//news//course//BaCourse.ftl" ; private static final String DEV_COURSE_TEMPLATE = "//templates//news//course//DevCourse.ftl" ; private static final String QA_COURSE_TEMPLATE = "//templates//news//course//QaCourse.ftl" ; @ Autowired private StringFromTemplateBuilder stringFromTemplateBuilder ; @ Autowired private DateService dateService ; private Course course ; private User author ; private Date creationDate ; public NewsFromCourseBuilder setCourse ( Course course ) { } public NewsFromCourseBuilder setAuthor ( User author ) { } public NewsFromCourseBuilder setCreationDate ( Date creationDate ) { if ( creationDate == null ) { throw new IllegalArgumentException ( NewsFromCourseBuilder . ILLEGAL_ARGUMENT ) ; } <START_BUG> this . creationDate = creationDate ; <END_BUG> return this ; } public News build ( ) { } private String getCourseDescription ( final Course course ) { } private String getCourseDescriptionTemplatePath ( final Course course ) { } }

Fix:
this . creationDate = new Date ( creationDate . getTime ( ) ) ;
Buggy code:
@ MessageLogger ( projectCode = "JBAS" ) public interface RemotingLogger extends BasicLogger { RemotingLogger ROOT_LOGGER = Logger . getMessageLogger ( RemotingLogger . class , RemotingLogger . class . getPackage ( ) . getName ( ) ) ; @ LogMessage ( level = INFO ) @ Message ( id = 17100 , value = "Listening<seq2seq4repair_space>on<seq2seq4repair_space>%s" ) <START_BUG> void listeningOnSocket ( InetSocketAddress address ) ; <END_BUG> }

Fix:
void listeningOnSocket ( String address ) ;
Buggy code:
class BinaryField extends BinaryMember implements IField { protected BinaryField ( JavaElement parent , String name ) { } public boolean equals ( Object o ) { } public Object getConstant ( ) throws JavaModelException { } public int getFlags ( ) throws JavaModelException { } public int getElementType ( ) { } protected char getHandleMementoDelimiter ( ) { } public String getKey ( boolean forceOpen ) throws JavaModelException { <START_BUG> return getKey ( this , true , forceOpen ) ; <END_BUG> } public String getTypeSignature ( ) throws JavaModelException { } public boolean isEnumConstant ( ) throws JavaModelException { } public boolean isResolved ( ) { } public JavaElement resolved ( Binding binding ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info , boolean showResolvedInfo ) { } }

Fix:
return getKey ( this , forceOpen ) ;
Buggy code:
public class MySqlDatabase extends CachedDatabase { private final String DATABASE_URL ; public MySqlDatabase ( BlockOwn plugin , String host , int port , String databaseName , String username , String password ) throws ClassNotFoundException , SQLException { } public MySqlDatabase ( BlockOwn plugin , String host , int port , String databaseName , String username ) throws ClassNotFoundException , SQLException { } private Connection connect ( ) throws SQLException { } private void createTables ( ) throws SQLException { } @ Override protected String generateCreateBlockTableQuery ( ) { } @ Override protected String generateCreateEntityTableQuery ( ) { } @ Override protected String generateGetOwnerQuery ( OwnedBlock block ) { } @ Override protected String generateGetOwnerQuery ( OwnedEntity entity ) { } @ Override protected String generateSetBlockOwnerQuery ( DatabaseAction databaseAction ) { } @ Override protected String generateSetEntityOwnerQuery ( DatabaseAction databaseAction ) { } @ Override protected String generateDeleteOwnerQuery ( OwnedEntity entity ) { String worldName = entity . getWorld ( ) . getName ( ) ; StringBuilder query = new StringBuilder ( 200 ) ; <START_BUG> query . append ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>" ) . append ( ENTITY_TABLE ) . append ( "<seq2seq4repair_space>WHERE<seq2seq4repair_space>" ) . append ( WORLD_COLUMN ) . append ( "='" ) . append ( worldName ) . append ( "'<seq2seq4repair_space>AND<seq2seq4repair_space>" ) . append ( "<seq2seq4repair_space>WHERE<seq2seq4repair_space>" ) . append ( ENTITY_ID_COLUMN ) . append ( "='" ) . append ( entity . getUniqueId ( ) . toString ( ) ) . append ( "';" ) ; <END_BUG> return query . toString ( ) ; } @ Override protected String generateDeleteOwnerQuery ( OwnedBlock block ) { } @ Override protected String generateDropUserBlocksQuery ( User user ) { } @ Override protected String generateDropUserEntitiesQuery ( User user ) { } }

Fix:
query . append ( "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>" ) . append ( ENTITY_TABLE ) . append ( "<seq2seq4repair_space>WHERE<seq2seq4repair_space>" ) . append ( WORLD_COLUMN ) . append ( "='" ) . append ( worldName ) . append ( "'<seq2seq4repair_space>AND<seq2seq4repair_space>" ) . append ( ENTITY_ID_COLUMN ) . append ( "='" ) . append ( entity . getUniqueId ( ) . toString ( ) ) . append ( "';" ) ;
Buggy code:
public class PatchBuilder extends ModificationBuilderTarget < PatchBuilder > implements Builder , PatchMetadataResolver { protected String patchId ; private String description ; private Identity identity ; private PatchType patchType ; private final List < ContentModification > modifications = new ArrayList < ContentModification > ( ) ; private final List < PatchBuilder . PatchElementHolder > elements = new ArrayList < PatchBuilder . PatchElementHolder > ( ) ; public static PatchBuilder create ( ) { } protected PatchBuilder ( ) { } public PatchBuilder setPatchId ( String patchId ) { } public PatchBuilder setDescription ( String description ) { } public PatchIdentityBuilder upgradeIdentity ( final String name , final String version , final String resultingVersion ) { } public PatchIdentityBuilder oneOffPatchIdentity ( final String name , final String version ) { } @ Override protected PatchBuilder internalAddModification ( ContentModification modification ) { } public PatchElementBuilder upgradeElement ( final String patchId , final String layerName , final boolean addOn ) { } public PatchElementBuilder oneOffPatchElement ( final String patchId , final String layerName , final boolean addOn ) { } public PatchElementBuilder addElement ( final String patchId , final String layerName , final boolean addOn ) { } public PatchBuilder addElement ( final PatchElement element ) { this . elements . add ( new PatchBuilder . PatchElementHolder ( ) { @ Override public PatchElement createElement ( PatchType patchType ) { final PatchType type = element . getProvider ( ) . getPatchType ( ) ; if ( type == null ) { if ( patchType == ( PatchType . CUMULATIVE ) ) { ( ( org . jboss . as . patching . metadata . impl . PatchElementProviderImpl ) ( element . getProvider ( ) ) ) . upgrade ( ) ; } else { ( ( org . jboss . as . patching . metadata . impl . PatchElementProviderImpl ) ( element . getProvider ( ) ) ) . oneOffPatch ( ) ; } } else if ( patchType != ( PatchBuilder . this . patchType ) ) { <START_BUG> throw new RuntimeException ( "patch<seq2seq4repair_space>types<seq2seq4repair_space>don't<seq2seq4repair_space>match" ) ; <END_BUG> } return element ; } } ) ; return this ; } public List < ContentModification > getModifications ( ) { } @ Override public Patch resolvePatch ( String name , String version ) throws PatchingException { } @ Override public Patch build ( ) { } @ Override protected PatchBuilder returnThis ( ) { } static boolean notNull ( Object o ) { } protected interface PatchElementHolder { PatchElement createElement ( final PatchType type ) { } } }

Fix:
throw MESSAGES . patchTypesDontMatch ( ) ;
Buggy code:
final class ArrayToStringConverter implements ConditionalGenericConverter { private final CollectionToStringConverter helperConverter ; public ArrayToStringConverter ( ConversionService conversionService ) { } public Set < ConvertiblePair > getConvertibleTypes ( ) { } public boolean matches ( TypeDescriptor sourceType , TypeDescriptor targetType ) { <START_BUG> return true ; <END_BUG> } public Object convert ( Object source , TypeDescriptor sourceType , TypeDescriptor targetType ) { } }

Fix:
return this . helperConverter . matches ( sourceType , targetType ) ;
Buggy code:
public class Tester implements Runnable { public final int n_threads ; public final int n_nodes ; public final ExecutorCompletionService < Duration > completionService ; public final ExecutorService threadPool ; public final BinarySearchTree < Integer > tree ; public final List < Duration > results = new ArrayList ( ) ; public Tester ( BinarySearchTree < Integer > bst , int n_threads , int max_nodes ) { } @ Override public void run ( ) { long seed = System . nanoTime ( ) ; List < Integer > keyList = new ArrayList < Integer > ( ) ; for ( int i = 0 ; i < ( n_nodes ) ; ++ i ) { keyList . add ( i ) ; } Collections . shuffle ( keyList , new Random ( seed ) ) ; Collection < Tester . InsertTask > toDo = new ArrayList < Tester . InsertTask > ( ) ; for ( int i = 0 ; i < ( n_nodes ) ; ++ i ) { System . out . println ( ( "Adding<seq2seq4repair_space>task<seq2seq4repair_space>" + ( keyList . get ( i ) ) ) ) ; <START_BUG> completionService . submit ( new Tester . InsertTask ( tree , i ) ) ; <END_BUG> } threadPool . shutdown ( ) ; System . out . println ( "Starting<seq2seq4repair_space>result<seq2seq4repair_space>recovery<seq2seq4repair_space>..." ) ; for ( int i = 0 ; i < ( ( n_nodes ) - 1 ) ; ++ i ) { Duration r ; try { System . out . println ( "Fetching<seq2seq4repair_space>value<seq2seq4repair_space>..." ) ; r = completionService . take ( ) . get ( ) ; if ( r != null ) { System . out . println ( ( ( i + ")<seq2seq4repair_space>Value<seq2seq4repair_space>recovered<seq2seq4repair_space>:<seq2seq4repair_space>" ) + ( r . getNano ( ) ) ) ) ; results . add ( r ) ; } } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } catch ( ExecutionException e ) { e . printStackTrace ( ) ; } } try { threadPool . shutdownNow ( ) ; System . out . println ( "Awaitting<seq2seq4repair_space>termination<seq2seq4repair_space>..." ) ; boolean no_timeout = threadPool . awaitTermination ( 20 , TimeUnit . SECONDS ) ; if ( no_timeout ) System . out . println ( "Task<seq2seq4repair_space>execution<seq2seq4repair_space>ended<seq2seq4repair_space>normally" ) ; else System . out . println ( "Task<seq2seq4repair_space>execution<seq2seq4repair_space>timed<seq2seq4repair_space>out" ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } if ( ( results . size ( ) ) != ( n_nodes ) ) System . out . println ( ( ( ( "Missing<seq2seq4repair_space>nodes<seq2seq4repair_space>:<seq2seq4repair_space>" + ( results . size ( ) ) ) + ",<seq2seq4repair_space>expected<seq2seq4repair_space>" ) + ( n_nodes ) ) ) ; System . out . println ( "Showing<seq2seq4repair_space>Results" ) ; Iterator < Duration > it = results . iterator ( ) ; while ( it . hasNext ( ) ) { System . out . println ( it . next ( ) . getNano ( ) ) ; } } private class InsertTask implements Callable < Duration > { private final int key ; private final double time = 0 ; public final BinarySearchTree < Integer > tree ; public InsertTask ( BinarySearchTree < Integer > tree , int nodekey ) { } @ Override public Duration call ( ) { } } }

Fix:
completionService . submit ( new Tester . InsertTask ( tree , keyList . get ( i ) ) ) ;
Buggy code:
public class WebPagesSessionController extends AbstractComponentSessionController { public WebPagesSessionController ( MainSessionController mainSessionCtrl , ComponentContext componentContext ) { } public String getProfile ( ) { } public boolean haveGotWysiwygNotEmpty ( ) { } public synchronized void removeSubscription ( ) { } public synchronized void addSubscription ( ) { } public boolean isSubscriber ( ) { } private NodePK getNodePK ( ) { } private SubscriptionService getSubscribeService ( ) { } public boolean isSubscriptionUsed ( ) { } private String getUsedXMLTemplate ( ) { } private String getUsedXMLTemplateShortname ( ) { } public boolean isXMLTemplateUsed ( ) { } private PublicationTemplate getXMLTemplate ( ) throws WebPagesException { } public DataRecord getDataRecord ( ) throws WebPagesException { } public boolean isXMLContentDefined ( ) throws WebPagesException { } public Form getViewForm ( ) throws WebPagesException { } public Form getUpdateForm ( ) throws WebPagesException { } public void saveDataRecord ( List < FileItem > items ) throws WebPagesException { RecordSet set ; try { PublicationTemplate pub = getXMLTemplate ( ) ; set = pub . getRecordSet ( ) ; Form form = pub . getUpdateForm ( ) ; DataRecord data = set . getRecord ( "0" ) ; if ( data == null ) { data = set . getEmptyRecord ( ) ; data . setId ( "0" ) ; } PagesContext context = new PagesContext ( "useless" , "0" , getLanguage ( ) , false , getComponentId ( ) , getUserId ( ) ) ; context . setEncoding ( "UTF-8" ) ; context . setObjectId ( "0" ) ; <START_BUG> context . setContentLanguage ( getLanguage ( ) ) ; <END_BUG> form . update ( items , data , context ) ; set . save ( data ) ; } catch ( Exception e ) { throw new WebPagesException ( "WebPagesSessionController.saveDataRecord()" , SilverpeasException . ERROR , "webPages.EX_CANT_SAVE_DATA" , e ) ; } WebPagesUserNotifier . notify ( getNodePK ( ) , getUserId ( ) ) ; indexForm ( set ) ; } private void indexForm ( RecordSet recordSet ) throws WebPagesException { } No newline ; at end ; of file ; }

Fix:
context . setContentLanguage ( defaultLanguage ) ;
Buggy code:
public class ExecuteOsTaskCallable implements Callable { protected String command ; protected Process process ; private static Logger logger = Logger . getLogger ( ExecuteOsTaskCallable . class ) ; public ExecuteOsTaskCallable ( String commandToWatch , Process processToWatch ) { } @ Override public String call ( ) throws Exception { String message ; try { ExecuteOsTaskCallable . logger . info ( ( "Starting<seq2seq4repair_space>to<seq2seq4repair_space>wait<seq2seq4repair_space>for<seq2seq4repair_space>command<seq2seq4repair_space>to<seq2seq4repair_space>finish<seq2seq4repair_space>in<seq2seq4repair_space>background:<seq2seq4repair_space>" + ( this . command ) ) ) ; int exitCode = process . waitFor ( ) ; <START_BUG> message = String . format ( "Command<seq2seq4repair_space>finished.<seq2seq4repair_space>\n<seq2seq4repair_space>command:<seq2seq4repair_space>%s<seq2seq4repair_space>\n<seq2seq4repair_space>exit<seq2seq4repair_space>code:<seq2seq4repair_space>%s<seq2seq4repair_space>\n<seq2seq4repair_space>standard<seq2seq4repair_space>out:<seq2seq4repair_space>\n<seq2seq4repair_space>%s<seq2seq4repair_space>\n<seq2seq4repair_space>%standard<seq2seq4repair_space>error:<seq2seq4repair_space>\n<seq2seq4repair_space>%s" , this . command , exitCode , ProcessOutputReader . getStandardOut ( process ) , ProcessOutputReader . getErrorOut ( process ) ) ; <END_BUG> ExecuteOsTaskCallable . logger . info ( message ) ; return message ; } catch ( Exception e ) { message = String . format ( "An<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>while<seq2seq4repair_space>waiting<seq2seq4repair_space>for<seq2seq4repair_space>%s<seq2seq4repair_space>command<seq2seq4repair_space>to<seq2seq4repair_space>finish<seq2seq4repair_space>in<seq2seq4repair_space>background" , command ) ; ExecuteOsTaskCallable . logger . error ( message , e ) ; return message ; } } }

Fix:
message = String . format ( "Command<seq2seq4repair_space>finished.<seq2seq4repair_space>\n<seq2seq4repair_space>command:<seq2seq4repair_space>%s<seq2seq4repair_space>\n<seq2seq4repair_space>exit<seq2seq4repair_space>code:<seq2seq4repair_space>%d<seq2seq4repair_space>\n<seq2seq4repair_space>standard<seq2seq4repair_space>out:<seq2seq4repair_space>\n<seq2seq4repair_space>%s<seq2seq4repair_space>\n<seq2seq4repair_space>standard<seq2seq4repair_space>error:<seq2seq4repair_space>\n<seq2seq4repair_space>%s" , this . command , exitCode , ProcessOutputReader . getStandardOut ( process ) , ProcessOutputReader . getErrorOut ( process ) ) ;
Buggy code:
public class DefaultErrorHandler implements XMLErrorHandler { protected PrintWriter fOut ; public DefaultErrorHandler ( ) { } public DefaultErrorHandler ( PrintWriter out ) { } public void warning ( String domain , String key , XMLParseException ex ) throws XNIException { } public void error ( String domain , String key , XMLParseException ex ) throws XNIException { } public void fatalError ( String domain , String key , XMLParseException ex ) throws XNIException { } private void printError ( String type , XMLParseException ex ) { fOut . print ( "[" ) ; fOut . print ( type ) ; fOut . print ( "]<seq2seq4repair_space>" ) ; <START_BUG> String systemId = ex . getSystemId ( ) ; <END_BUG> if ( systemId != null ) { int index = systemId . lastIndexOf ( '//' ) ; if ( index != ( - 1 ) ) systemId = systemId . substring ( ( index + 1 ) ) ; fOut . print ( systemId ) ; } fOut . print ( ':' ) ; fOut . print ( ex . getLineNumber ( ) ) ; fOut . print ( ':' ) ; fOut . print ( ex . getColumnNumber ( ) ) ; fOut . print ( ":<seq2seq4repair_space>" ) ; fOut . print ( ex . getMessage ( ) ) ; fOut . println ( ) ; fOut . flush ( ) ; } }

Fix:
String systemId = ex . getExpandedSystemId ( ) ;
Buggy code:
public abstract class AttributeValue extends BaseAttributeValue implements Persistent { private Attribute aAttribute ; private Transaction transaction ; private Attachment attachment ; private NumberKey oldOptionId ; private String oldValue ; private boolean oldOptionIdIsSet ; private boolean oldValueIsSet ; private static String className = "AttributeValue" ; protected AttributeValue ( ) { } public void startTransaction ( Transaction transaction , Attachment attachment ) throws ScarabException { } private void endTransaction ( ) { } private void checkTransaction ( String errorMessage ) throws ScarabException { } public String getQueryKey ( ) { } public String toString ( ) { } public String getOptionIdAsString ( ) { } public void setOptionId ( NumberKey optionId ) throws Exception { if ( ( optionId != null ) && ( ( optionId . getValue ( ) ) != null ) ) { List options = getIssue ( ) . getScarabModule ( ) . getRModuleOptions ( getAttribute ( ) ) ; for ( int i = ( options . size ( ) ) - 1 ; i >= 0 ; i -- ) { RModuleOption option = ( ( RModuleOption ) ( options . get ( i ) ) ) ; if ( option . getOptionId ( ) . equals ( optionId ) ) { setValue ( option . getDisplayValue ( ) ) ; break ; } } } if ( ( ! ( isNew ( ) ) ) && ( ! ( oldOptionIdIsSet ) ) ) { <START_BUG> oldOptionId = getOptionId ( ) ; <END_BUG> oldOptionIdIsSet = true ; } super . setOptionId ( optionId ) ; } public void setValue ( String value ) { } public boolean isRequired ( ) throws Exception { } public boolean isSet ( ) throws Exception { } public Attribute getAttribute ( ) throws Exception { } public void setAttribute ( Attribute v ) throws Exception { } public AttributeOption getAttributeOption ( ) throws Exception { } public boolean isDedupeAttribute ( ) throws Exception { } public boolean isQuickSearchAttribute ( ) throws Exception { } static String getCacheKey ( ObjectKey key ) { } public static AttributeValue getNewInstance ( RModuleAttribute rma , Issue issue ) throws Exception { } public static AttributeValue getNewInstance ( ObjectKey attId , Issue issue ) throws Exception { } public static synchronized AttributeValue getNewInstance ( Attribute attribute , Issue issue ) throws Exception { } protected abstract Object loadResources ( ) throws Exception { } protected abstract void setResources ( Object resources ) { } public abstract void init ( ) throws Exception { } public boolean supportsVoting ( ) { } public AttributeValue copy ( ) throws Exception { } public void save ( DBConnection dbcon ) throws Exception { } private String getActivityDescription ( ) throws Exception { } }

Fix:
oldOptionId = new NumberKey ( getOptionId ( ) ) ;
Buggy code:
public class DatasetFactory { public static Dataset createEmpty ( Integer rows ) { } public static void addEmptyRows ( Dataset dataset , Integer rows ) { } public static Dataset copy ( Dataset dataset ) { } public static Dataset copy ( Dataset dataset , Set < String > features ) { } public static Dataset mergeColumns ( Dataset dataset , Dataset other ) { if ( ( dataset != null ) && ( other == null ) ) { return dataset ; } else if ( ( dataset == null ) && ( other != null ) ) { return other ; } else if ( ( dataset == null ) && ( other == null ) ) { return null ; } else { <START_BUG> for ( int i = 0 ; i < ( dataset . getDataEntry ( ) . size ( ) ) ; i ++ ) { <END_BUG> DataEntry dataEntry = dataset . getDataEntry ( ) . get ( i ) ; DataEntry otherEntry = other . getDataEntry ( ) . get ( i ) ; dataEntry . getValues ( ) . putAll ( otherEntry . getValues ( ) ) ; } dataset . getFeatures ( ) . addAll ( other . getFeatures ( ) ) ; return dataset ; } } public static Dataset mergeRows ( Dataset dataset , Dataset other ) { } public static Dataset randomize ( Dataset dataset , Long seed ) { } public static Dataset stratify ( Dataset dataset , Integer folds , String targetFeature ) { } }

Fix:
for ( int i = 0 ; i < ( Math . min ( dataset . getDataEntry ( ) . size ( ) , other . getDataEntry ( ) . size ( ) ) ) ; i ++ ) {
Buggy code:
@ ViewScoped @ ManagedBean public class DashboardBean implements Serializable { @ Getter private List < Movement > movements ; @ Getter private List < FinancialPeriod > financialPeriods ; @ Getter private List < UserPrivateMessage > userPrivateMessages ; @ Getter @ Setter private UserPrivateMessage selectedPrivateMessage ; @ Getter private PieChartModel consumeModel ; @ Getter private PieChartModel revenueModel ; @ Setter @ ManagedProperty ( "#{messagesFactory}" ) private transient MessagesFactory messages ; @ Setter @ ManagedProperty ( "#{accountService}" ) private transient AccountService accountService ; @ Setter @ ManagedProperty ( "#{movementService}" ) private transient MovementService movementService ; @ Setter @ ManagedProperty ( "#{graphModelService}" ) private transient GraphModelService graphModelService ; @ Setter @ ManagedProperty ( "#{privateMessageService}" ) private transient PrivateMessageService privateMessageService ; public void initialize ( ) { } public void displayMessage ( ) { } public void closePrivateMessage ( ) { } public void deleteAndClosePrivateMessage ( ) { } public String changeToPay ( long movementId ) { <START_BUG> return "movements//maintenance//formPayment.xhtml?faces-redirect=true&movementId=" + movementId ; <END_BUG> } public String doLogout ( ) { } public String getCurrentUserName ( ) { } public String getVersion ( ) { } }

Fix:
return "financial//movement//formPayment.xhtml?faces-redirect=true&movementId=" + movementId ;
Buggy code:
public class ServletResourceManager implements ResourceManager { private final FileResourceManager deploymentResourceManager ; private final Collection < VirtualFile > overlays ; private final boolean explodedDeployment ; public ServletResourceManager ( final VirtualFile resourcesRoot , final Collection < VirtualFile > overlays , boolean explodedDeployment ) throws IOException { } @ Override public Resource getResource ( final String path ) throws IOException { Resource res = deploymentResourceManager . getResource ( path ) ; if ( res != null ) { return res ; } String p = path ; if ( p . startsWith ( "//" ) ) { p = p . substring ( 1 ) ; } if ( ( overlays ) != null ) { for ( VirtualFile overlay : overlays ) { VirtualFile child = overlay . getChild ( p ) ; if ( child . exists ( ) ) { <START_BUG> return new VirtualFileResource ( child , path ) ; <END_BUG> } } } return null ; } @ Override public boolean isResourceChangeListenerSupported ( ) { } @ Override public void registerResourceChangeListener ( ResourceChangeListener listener ) { } @ Override public void removeResourceChangeListener ( ResourceChangeListener listener ) { } @ Override public void close ( ) throws IOException { } }

Fix:
return new VirtualFileResource ( overlay . getPhysicalFile ( ) , child , path ) ;
Buggy code:
public class RadioGroupManager { private RadioGroup radioGroup ; private Activity activity ; public RadioGroupManager ( Activity activity , RadioGroup radioGroup ) { } public void clear ( ) { } public void addButton ( RadioButton radioButton ) { } public RadioButton getNewButton ( ) { } public void selectButton ( int index ) { } public void addButton ( int id , String description ) { RadioButton radioButton = getNewButton ( ) ; radioButton . setId ( id ) ; <START_BUG> radioButton . setContentDescription ( description ) ; <END_BUG> addButton ( radioButton ) ; } public void addListener ( RadioGroup . OnCheckedChangeListener listener ) { } }

Fix:
radioButton . setText ( description ) ;
Buggy code:
public class FormInput extends WicketExamplePage { private class InputForm extends Form < FormInputModel > { public InputForm ( String name ) { } @ Override public void onSubmit ( ) { } } private static final class LinesListView extends ListView < String > { public LinesListView ( String id ) { } @ Override protected void populateItem ( ListItem < String > item ) { } } private final class LocaleChoiceRenderer extends ChoiceRenderer < Locale > { public LocaleChoiceRenderer ( ) { } @ Override public Object getDisplayValue ( Locale locale ) { } } private final class LocaleDropDownChoice extends DropDownChoice < Locale > { public LocaleDropDownChoice ( String id ) { } @ Override <START_BUG> public void onSelectionChanged ( Object newSelection ) { <END_BUG> setResponsePage ( FormInput . class ) ; } @ Override protected boolean wantOnSelectionChangedNotifications ( ) { } } private static final List SITES = Arrays . asList ( new String [ ] { "The<seq2seq4repair_space>Server<seq2seq4repair_space>Side" , "Java<seq2seq4repair_space>Lobby" , "Java.Net" } ) ; static final List NUMBERS = Arrays . asList ( new String [ ] { "1" , "2" , "3" } ) ; public FormInput ( ) { } public void setLocale ( Locale locale ) { } }

Fix:
public void onSelectionChanged ( Locale newSelection ) {
Buggy code:
@ Service public class StockCookieServiceImpl implements StockCookieService { @ Autowired private JdbcTemplate jdbcTemplate ; @ Override public StockCookieBean get ( String userName ) { } @ Override public Boolean add ( StockCookieBean bean ) { <START_BUG> int ret = jdbcTemplate . update ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>pn_stock_cookie(user_name,<seq2seq4repair_space>stock_cookie,<seq2seq4repair_space>saved_date,<seq2seq4repair_space>quick_cookie)<seq2seq4repair_space>value(?,<seq2seq4repair_space>?,<seq2seq4repair_space>now(),<seq2seq4repair_space>?)" , new Object [ ] { bean . getUserName ( ) , bean . getStockCookie ( ) , bean . getQuickCookie ( ) } , new int [ ] { Types . VARCHAR , Types . VARCHAR } , Types . VARCHAR ) ; <END_BUG> return ret == 1 ; } @ Override public Boolean delete ( String userName ) { } @ Override public Boolean update ( StockCookieBean bean ) { } @ Override public Boolean exist ( String userName ) { } }

Fix:
int ret = jdbcTemplate . update ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>pn_stock_cookie(user_name,<seq2seq4repair_space>stock_cookie,<seq2seq4repair_space>saved_date,<seq2seq4repair_space>quick_cookie)<seq2seq4repair_space>value(?,<seq2seq4repair_space>?,<seq2seq4repair_space>now(),<seq2seq4repair_space>?)" , new Object [ ] { bean . getUserName ( ) , bean . getStockCookie ( ) , bean . getQuickCookie ( ) } , new int [ ] { Types . VARCHAR , Types . VARCHAR , Types . VARCHAR } ) ;
Buggy code:
@ Mod ( modid = Reference . MODID , name = Reference . MODNAME , version = Reference . VERSION , dependencies = Reference . DEPENDENCIES ) public class EssentialSorcery { @ SidedProxy ( clientSide = Reference . CLIENT_PROXY , serverSide = Reference . SERVER_PROXY ) public static CommonProxy proxy ; @ Instance public static EssentialSorcery instance = new EssentialSorcery ( ) ; @ EventHandler public void preInit ( FMLPreInitializationEvent e ) { Configuration config = new Configuration ( e . getSuggestedConfigurationFile ( ) ) ; config . load ( ) ; this . proxy . preInit ( e ) ; <START_BUG> System . out . println ( "called<seq2seq4repair_space>method:<seq2seq4repair_space>preInit" ) ; <END_BUG> config . save ( ) ; } @ EventHandler public void init ( FMLInitializationEvent e ) { } @ EventHandler public void postInit ( FMLPostInitializationEvent e ) { } No newline ; at end ; of file ; }

Fix:
System . out . println ( "called<seq2seq4repair_space>method:<seq2seq4repair_space>preInit...<seq2seq4repair_space>and<seq2seq4repair_space>has<seq2seq4repair_space>this<seq2seq4repair_space>changed?" ) ;
Buggy code:
public class ClassLinkItemProvider extends RuleItemProvider implements IEditingDomainItemProvider , IItemLabelProvider , IItemPropertySource , IStructuredItemContentProvider , ITreeItemContentProvider { public static final String copyright = "Copyright<seq2seq4repair_space>2015<seq2seq4repair_space>Waratek<seq2seq4repair_space>Ltd." ; public ClassLinkItemProvider ( AdapterFactory adapterFactory ) { } @ Override public List < IItemPropertyDescriptor > getPropertyDescriptors ( Object object ) { } protected void addQualifiedNamePropertyDescriptor ( Object object ) { } protected void addClassLinkParameterPropertyDescriptor ( Object object ) { } protected void addSignaturePropertyDescriptor ( Object object ) { } @ Override public Object getImage ( Object object ) { } @ Override public String getText ( Object object ) { StringBuffer label = new StringBuffer ( ) ; ClassLink classLink = ( ( ClassLink ) ( object ) ) ; label . append ( ( ( ( ( classLink . getClassLinkParameter ( ) . toString ( ) ) + ":" ) + ( classLink . getQualifiedName ( ) ) ) + ":" ) ) ; <START_BUG> if ( ! ( classLink . getSignature ( ) . equals ( "" ) ) ) { <END_BUG> label . append ( ( ( classLink . getSignature ( ) ) + ":" ) ) ; } label . append ( ( ( ( classLink . getAction ( ) . toString ( ) ) + ":" ) + ( classLink . getLog ( ) . toString ( ) ) ) ) ; return ( label == null ) || ( ( label . length ( ) ) == 0 ) ? getString ( "_UI_ClassLink_type" ) : ( ( getString ( "_UI_ClassLink_type" ) ) + "<seq2seq4repair_space>" ) + label ; } @ Override public void notifyChanged ( Notification notification ) { } @ Override protected void collectNewChildDescriptors ( Collection < Object > newChildDescriptors , Object object ) { } }

Fix:
if ( ( ( classLink . getSignature ( ) ) != null ) && ( ! ( classLink . getSignature ( ) . equals ( "" ) ) ) ) {
Buggy code:
public class FieldBinding extends VariableBinding { public ReferenceBinding declaringClass ; protected FieldBinding ( ) { } public FieldBinding ( char [ ] name , TypeBinding type , int modifiers , ReferenceBinding declaringClass , Constant constant ) { } public FieldBinding ( FieldDeclaration field , TypeBinding type , int modifiers , ReferenceBinding declaringClass ) { } public FieldBinding ( FieldBinding initialFieldBinding , ReferenceBinding declaringClass ) { } public final int kind ( ) { } public final boolean canBeSeenBy ( PackageBinding invocationPackage ) { } public final boolean canBeSeenBy ( TypeBinding receiverType , InvocationSite invocationSite , Scope scope ) { } public char [ ] computeUniqueKey ( boolean isLeaf ) { char [ ] declaringKey = ( ( this . declaringClass ) == null ) ? CharOperation . NO_CHAR : this . declaringClass . computeUniqueKey ( false ) ; int declaringLength = declaringKey . length ; int nameLength = this . name . length ; <START_BUG> char [ ] returnTypeKey = this . type . computeUniqueKey ( false ) ; <END_BUG> int returnTypeLength = returnTypeKey . length ; char [ ] uniqueKey = new char [ ( ( ( declaringLength + 1 ) + nameLength ) + 1 ) + returnTypeLength ] ; int index = 0 ; System . arraycopy ( declaringKey , 0 , uniqueKey , index , declaringLength ) ; index += declaringLength ; uniqueKey [ ( index ++ ) ] = '.' ; System . arraycopy ( this . name , 0 , uniqueKey , index , nameLength ) ; index += nameLength ; uniqueKey [ ( index ++ ) ] = ')' ; System . arraycopy ( returnTypeKey , 0 , uniqueKey , index , returnTypeLength ) ; return uniqueKey ; } public char [ ] genericSignature ( ) { } public final int getAccessFlags ( ) { } public long getAnnotationTagBits ( ) { } public final boolean isDefault ( ) { } public final boolean isDeprecated ( ) { } public final boolean isPrivate ( ) { } public final boolean isPrivateUsed ( ) { } public final boolean isProtected ( ) { } public final boolean isPublic ( ) { } public final boolean isStatic ( ) { } public final boolean isSynthetic ( ) { } public final boolean isTransient ( ) { } public final boolean isViewedAsDeprecated ( ) { } public final boolean isVolatile ( ) { } public FieldBinding original ( ) { } public FieldDeclaration sourceField ( ) { } }

Fix:
char [ ] returnTypeKey = ( ( this . type ) == null ) ? new char [ ] { 'V' } : this . type . computeUniqueKey ( false ) ;
Buggy code:
public class ShowViewAction extends Action implements IPluginContribution { private IWorkbenchWindow window ; private IViewDescriptor desc ; private boolean makeFast = false ; protected ShowViewAction ( IWorkbenchWindow window , IViewDescriptor desc , boolean makeFast ) { } public void run ( ) { IWorkbenchPage page = window . getActivePage ( ) ; if ( page != null ) { try { if ( makeFast ) { WorkbenchPage wp = ( ( WorkbenchPage ) ( page ) ) ; IViewReference ref = wp . findViewReference ( desc . getId ( ) ) ; if ( ref == null ) { IViewPart part = page . showView ( desc . getId ( ) , null , VIEW_CREATE ) ; ref = ( ( IViewReference ) ( wp . getReference ( part ) ) ) ; } FastViewBar bar = ( ( WorkbenchWindow ) ( page . getWorkbenchWindow ( ) ) ) . getFastViewBar ( ) ; <START_BUG> bar . adoptView ( ref , ( - 1 ) , true , true , false ) ; <END_BUG> } else { page . showView ( desc . getId ( ) ) ; } } catch ( PartInitException e ) { ErrorDialog . openError ( window . getShell ( ) , ShowView_errorTitle , e . getMessage ( ) , e . getStatus ( ) ) ; } } } public String getLocalId ( ) { } public String getPluginId ( ) { } }

Fix:
bar . adoptView ( ref , ( - 1 ) , true , true ) ;