nus-yam/ex-repair huggingface dataset:
Buggy code:
public class SQLite extends Database { @ Override protected void connect ( ) throws ClassNotFoundException , SQLException { <START_BUG> File dbFile = new File ( ( ( FastTravelSignsPlugin . dataDir ) + "signs.db" ) ) ; <END_BUG> Class . forName ( "org.sqlite.JDBC" ) ; if ( ! ( dbFile . exists ( ) ) ) try { dbFile . getAbsoluteFile ( ) . createNewFile ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } dbConn = DriverManager . getConnection ( ( "jdbc:sqlite:" + dbFile ) ) ; } }

Fix:
File dbFile = new File ( ( ( FastTravelSignsPlugin . dataDir ) + "//signs.db" ) ) ;
Buggy code:
public final class HttpReplyHdr { private static final String CR = "\r\n" ; private static final String HTTP_PROTOCOL = "HTTP//1.0" ; private static final String HTTP_SERVER = "Java<seq2seq4repair_space>Proxy<seq2seq4repair_space>Server" ; private HttpReplyHdr ( ) { } public static String formOk ( String contentType , long contentLength ) { } private static String formErrorBody ( String error , String description ) { } private static String formError ( String error , String description ) { } public static String formCreated ( ) { } public static String formAccepted ( ) { } public static String formPartial ( ) { } public static String formMoved ( ) { } public static String formFound ( ) { } public static String formMethod ( ) { } public static String formNotModified ( ) { } public static String formUnautorized ( ) { } public static String formPaymentNeeded ( ) { } public static String formForbidden ( ) { } public static String formNotFound ( ) { } public static String formInternalError ( ) { } public static String formNotImplemented ( ) { <START_BUG> return HttpReplyHdr . formError ( "501<seq2seq4repair_space>Method<seq2seq4repair_space>not<seq2seq4repair_space>implemented" , "Service<seq2seq4repair_space>not<seq2seq4repair_space>implemented,<seq2seq4repair_space>programer<seq2seq4repair_space>was<seq2seq4repair_space>lazy" ) ; <END_BUG> } public static String formOverloaded ( ) { } public static String formTimeout ( ) { } public static String formServerNotFound ( ) { } public static String formNotAllowed ( ) { } }

Fix:
return HttpReplyHdr . formError ( "501<seq2seq4repair_space>Method<seq2seq4repair_space>not<seq2seq4repair_space>implemented" , "Service<seq2seq4repair_space>not<seq2seq4repair_space>implemented" ) ;
Buggy code:
public class KmlDemoActivity extends BaseDemoActivity { protected int getLayoutId ( ) { } public void startDemo ( ) { try { Log . i ( "Demo" , "Start" ) ; <START_BUG> KmlLayer kmlLayer = new KmlLayer ( getMap ( ) , raw . default_balloon , getApplicationContext ( ) ) ; <END_BUG> kmlLayer . addKmlData ( ) ; Log . i ( "Demo" , "End" ) ; } catch ( Exception e ) { Log . e ( "Exception<seq2seq4repair_space>caught" , e . toString ( ) ) ; } } }

Fix:
KmlLayer kmlLayer = new KmlLayer ( getMap ( ) , raw . ballon_gx_prefix , getApplicationContext ( ) ) ;
Buggy code:
public class JstExpressionBindingResolver implements IJstRefResolver { private static final boolean DEBUG = false ; private final JstParseController m_controller ; private final JstExpressionTypeLinker m_typeLinkerVisitor ; private ErrorReporter m_errorReporter = new DefaultErrorReporter ( ) ; public JstExpressionBindingResolver ( JstParseController controller ) { } public synchronized ResolutionResult resolve ( IJstType type ) { } private void resolveTypeInternal ( IJstType type , ResolutionResult rr ) { promoteGlobals ( type , m_controller . getJstTypeSpaceMgr ( ) , rr ) ; m_typeLinkerVisitor . setCurrentType ( type ) ; m_typeLinkerVisitor . setGroupName ( type . getPackage ( ) . getGroupName ( ) ) ; JstExpressionTypeLinkerTraversal . accept ( type , m_typeLinkerVisitor ) ; <START_BUG> if ( ( m_typeLinkerVisitor . isTypeConstructed ( ) ) && ( ! ( type . equals ( m_typeLinkerVisitor . getType ( ) ) ) ) ) { <END_BUG> JstExpressionTypeLinkerTraversal . accept ( m_typeLinkerVisitor . getType ( ) , m_typeLinkerVisitor ) ; type = m_typeLinkerVisitor . getType ( ) ; } if ( type instanceof JstType ) { JstType type2 = ( ( JstType ) ( type ) ) ; setResolutionStatus ( type2 ) ; rr . setType ( type2 ) ; } } private void promoteGlobals ( IJstType type , JstTypeSpaceMgr mgr , ResolutionResult rr ) { } private boolean validateGlobal ( IJstType type , JstTypeSpaceMgr mgr , ResolutionResult rr , boolean error ) { } private IScriptProblem reportError ( IJstType type , IJstGlobalVar vars , String name , IJstNode findGlobal , String msg ) { } private void setResolutionStatus ( JstType type ) { } public synchronized ResolutionResult resolve ( String groupName , IJstType type ) { } public synchronized ResolutionResult resolve ( IJstProperty property ) { } private ResolutionResult resolvePropertyInternal ( IJstProperty property , ResolutionResult rr ) { } public synchronized ResolutionResult resolve ( String groupName , IJstProperty property ) { } public synchronized ResolutionResult resolve ( IJstMethod method ) { } public synchronized ResolutionResult resolve ( String groupName , IJstMethod method ) { } public JstParseController getController ( ) { } @ Deprecated public ErrorReporter getErrorReporter ( ) { } @ Deprecated public void setErrorReporter ( ErrorReporter reporter ) { } @ Deprecated public void error ( String message , String resource , int start , int end , int line , int column ) { } @ Deprecated public void warning ( String message , String resource , int start , int end , int line , int column ) { } public synchronized ResolutionResult resolve ( IJstType ownerType , IJstNode node ) { } }

Fix:
if ( ! ( type . equals ( m_typeLinkerVisitor . getType ( ) ) ) ) {
Buggy code:
public class Caverphone2 extends AbstractCaverphone { private static final String TEN_1 = "1111111111" ; @ Override <START_BUG> public String encode ( String source ) { <END_BUG> String txt = source ; if ( ( txt == null ) || ( ( txt . length ( ) ) == 0 ) ) { return Caverphone2 . TEN_1 ; } txt = txt . toLowerCase ( Locale . ENGLISH ) ; txt = txt . replaceAll ( "[^a-z]" , "" ) ; txt = txt . replaceAll ( "e$" , "" ) ; txt = txt . replaceAll ( "^cough" , "cou2f" ) ; txt = txt . replaceAll ( "^rough" , "rou2f" ) ; txt = txt . replaceAll ( "^tough" , "tou2f" ) ; txt = txt . replaceAll ( "^enough" , "enou2f" ) ; txt = txt . replaceAll ( "^trough" , "trou2f" ) ; txt = txt . replaceAll ( "^gn" , "2n" ) ; txt = txt . replaceAll ( "mb$" , "m2" ) ; txt = txt . replaceAll ( "cq" , "2q" ) ; txt = txt . replaceAll ( "ci" , "si" ) ; txt = txt . replaceAll ( "ce" , "se" ) ; txt = txt . replaceAll ( "cy" , "sy" ) ; txt = txt . replaceAll ( "tch" , "2ch" ) ; txt = txt . replaceAll ( "c" , "k" ) ; txt = txt . replaceAll ( "q" , "k" ) ; txt = txt . replaceAll ( "x" , "k" ) ; txt = txt . replaceAll ( "v" , "f" ) ; txt = txt . replaceAll ( "dg" , "2g" ) ; txt = txt . replaceAll ( "tio" , "sio" ) ; txt = txt . replaceAll ( "tia" , "sia" ) ; txt = txt . replaceAll ( "d" , "t" ) ; txt = txt . replaceAll ( "ph" , "fh" ) ; txt = txt . replaceAll ( "b" , "p" ) ; txt = txt . replaceAll ( "sh" , "s2" ) ; txt = txt . replaceAll ( "z" , "s" ) ; txt = txt . replaceAll ( "^[aeiou]" , "A" ) ; txt = txt . replaceAll ( "[aeiou]" , "3" ) ; txt = txt . replaceAll ( "j" , "y" ) ; txt = txt . replaceAll ( "^y3" , "Y3" ) ; txt = txt . replaceAll ( "^y" , "A" ) ; txt = txt . replaceAll ( "y" , "3" ) ; txt = txt . replaceAll ( "3gh3" , "3kh3" ) ; txt = txt . replaceAll ( "gh" , "22" ) ; txt = txt . replaceAll ( "g" , "k" ) ; txt = txt . replaceAll ( "s+" , "S" ) ; txt = txt . replaceAll ( "t+" , "T" ) ; txt = txt . replaceAll ( "p+" , "P" ) ; txt = txt . replaceAll ( "k+" , "K" ) ; txt = txt . replaceAll ( "f+" , "F" ) ; txt = txt . replaceAll ( "m+" , "M" ) ; txt = txt . replaceAll ( "n+" , "N" ) ; txt = txt . replaceAll ( "w3" , "W3" ) ; txt = txt . replaceAll ( "wh3" , "Wh3" ) ; txt = txt . replaceAll ( "w$" , "3" ) ; txt = txt . replaceAll ( "w" , "2" ) ; txt = txt . replaceAll ( "^h" , "A" ) ; txt = txt . replaceAll ( "h" , "2" ) ; txt = txt . replaceAll ( "r3" , "R3" ) ; txt = txt . replaceAll ( "r$" , "3" ) ; txt = txt . replaceAll ( "r" , "2" ) ; txt = txt . replaceAll ( "l3" , "L3" ) ; txt = txt . replaceAll ( "l$" , "3" ) ; txt = txt . replaceAll ( "l" , "2" ) ; txt = txt . replaceAll ( "2" , "" ) ; txt = txt . replaceAll ( "3$" , "A" ) ; txt = txt . replaceAll ( "3" , "" ) ; txt = txt + ( Caverphone2 . TEN_1 ) ; return txt . substring ( 0 , Caverphone2 . TEN_1 . length ( ) ) ; } }

Fix:
public String encode ( final String source ) {
Buggy code:
public class CompositeFormat { private CompositeFormat ( ) { } public static NumberFormat getDefaultNumberFormat ( ) { } public static NumberFormat getDefaultNumberFormat ( final Locale locale ) { final NumberFormat nf = NumberFormat . getInstance ( locale ) ; <START_BUG> nf . setMaximumFractionDigits ( 2 ) ; <END_BUG> return nf ; } public static void parseAndIgnoreWhitespace ( final String source , final ParsePosition pos ) { } public static char parseNextCharacter ( final String source , final ParsePosition pos ) { } private static Number parseNumber ( final String source , final double value , final ParsePosition pos ) { } public static Number parseNumber ( final String source , final NumberFormat format , final ParsePosition pos ) { } public static boolean parseFixedstring ( final String source , final String expected , final ParsePosition pos ) { } public static StringBuffer formatDouble ( final double value , final NumberFormat format , final StringBuffer toAppendTo , final FieldPosition pos ) { } }

Fix:
nf . setMaximumFractionDigits ( 10 ) ;
Buggy code:
public class MailSessionAdd extends AbstractAddStepHandler { static final MailSessionAdd INSTANCE = new MailSessionAdd ( ) ; public static final ServiceName SERVICE_NAME_BASE = JBOSS . append ( "mail-session" ) ; private final Logger log = Logger . getLogger ( MailSessionAdd . class ) ; private MailSessionAdd ( ) { } @ Override protected void populateModel ( ModelNode existingModel , ModelNode newModel ) throws OperationFailedException { <START_BUG> MailSessionAdd . copyModel ( existingModel , newModel , JNDI_NAME , PASSWORD , USERNAME , DEBUG ) ; <END_BUG> if ( existingModel . hasDefined ( SMTP_SERVER ) ) { newModel . get ( SMTP_SERVER ) . set ( existingModel . get ( SMTP_SERVER ) ) ; } if ( existingModel . hasDefined ( POP3_SERVER ) ) { newModel . get ( POP3_SERVER ) . set ( existingModel . get ( POP3_SERVER ) ) ; } if ( existingModel . hasDefined ( IMAP_SERVER ) ) { newModel . get ( IMAP_SERVER ) . set ( existingModel . get ( IMAP_SERVER ) ) ; } } static void copyModel ( ModelNode src , ModelNode target , String ... params ) { } @ Override protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > controllers ) throws OperationFailedException { } protected MailSessionService createMailSessionService ( final ModelNode operation ) throws OperationFailedException { } }

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

Fix:
this . valueCast = this . binding . returnType ;
Buggy code:
public class PackageFragment extends Openable implements IPackageFragment { protected static IClassFile [ ] fgEmptyClassFileList = new IClassFile [ ] { } ; protected static ICompilationUnit [ ] fgEmptyCompilationUnitList = new ICompilationUnit [ ] { } ; protected PackageFragment ( IPackageFragmentRoot root , String name ) { } protected boolean computeChildren ( OpenableElementInfo info , IResource resource ) throws JavaModelException { } public boolean containsJavaResources ( ) throws JavaModelException { } public void copy ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public ICompilationUnit createCompilationUnit ( String name , String contents , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected OpenableElementInfo createElementInfo ( ) { } public void delete ( boolean force , IProgressMonitor monitor ) throws JavaModelException { } <START_BUG> protected boolean generateInfos ( OpenableElementInfo info , IProgressMonitor pm , Map newElements , IResource underlyingResource , IProblemRequestor problemRequestor ) throws JavaModelException { <END_BUG> return computeChildren ( info , underlyingResource ) ; } public IClassFile getClassFile ( String name ) { } public IClassFile [ ] getClassFiles ( ) throws JavaModelException { } public ICompilationUnit getCompilationUnit ( String name ) { } public ICompilationUnit [ ] getCompilationUnits ( ) throws JavaModelException { } protected char getHandleMementoDelimiter ( ) { } public int getKind ( ) throws JavaModelException { } public Object [ ] getNonJavaResources ( ) throws JavaModelException { } public IPath getPath ( ) { } public IResource getResource ( ) { } public IResource getUnderlyingResource ( ) throws JavaModelException { } public boolean hasSubpackages ( ) throws JavaModelException { } public boolean isDefaultPackage ( ) { } public void move ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public void refreshChildren ( ) { } public void rename ( String name , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public IJavaElement rootedAt ( IJavaProject project ) { } protected void toStringChildren ( int tab , StringBuffer buffer , Object info ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { } }

Fix:
protected boolean generateInfos ( OpenableElementInfo info , IProgressMonitor pm , Map newElements , IResource underlyingResource ) throws JavaModelException {
Buggy code:
public final class SwingPreferencesDialog extends StandardDialog implements ActionListener , ListSelectionListener { private static final long serialVersionUID = 9 ; private JList < PreferencesCategory > tabList ; private CategoryPanel mainPanel ; private PreferencesCategory selected ; private PreferencesDialogModel manager ; private final SwingWorker < PreferencesDialogModel , Void > worker ; private final DialogProvider < SwingRestartDialog > restartDialogProvider ; private final Provider < CategoryPanel > categoryPanelProvider ; private final IconManager iconManager ; private final DMDircMBassador eventBus ; @ Inject public SwingPreferencesDialog ( @ MainWindow final Window parentWindow , final IconManager iconManager , @ ForSettings final DialogProvider < SwingRestartDialog > restartDialogProvider , final Provider < PreferencesDialogModel > dialogModelProvider , final Provider < CategoryPanel > categoryPanelProvider , final DMDircMBassador eventBus ) { } private PreferencesDialogModel getPrefsModel ( final Provider < PreferencesDialogModel > dialogModelProvider ) { } private void setPrefsManager ( final PreferencesDialogModel manager ) { } private void initComponents ( ) { } private void addCategories ( final Iterable < PreferencesCategory > categories ) { } private int countCategories ( final Iterable < PreferencesCategory > categories ) { } @ Override public void actionPerformed ( final ActionEvent actionEvent ) { if ( ( selected ) != null ) { selected . fireCategoryDeselected ( ) ; selected = null ; } mainPanel . setCategory ( null ) ; if ( ( actionEvent != null ) && ( getOkButton ( ) . equals ( actionEvent . getSource ( ) ) ) ) { saveOptions ( ) ; } <START_BUG> UIUtilities . invokeOffEDT ( ( ) -> { <END_BUG> if ( ( manager ) != null ) { manager . dismiss ( ) ; } } ) ; dispose ( ) ; } @ Override public void valueChanged ( final ListSelectionEvent e ) { } public void saveOptions ( ) { } @ Override public void dispose ( ) { } }

Fix:
UIUtilities . invokeOffEDT ( eventBus , ( ) -> {
Buggy code:
class RemoveFromIndex implements IJob { String resourceName ; IPath indexedContainer ; IndexManager manager ; public RemoveFromIndex ( String resourceName , IPath indexedContainer , IndexManager manager ) { } public boolean belongsTo ( String jobFamily ) { } public boolean execute ( IProgressMonitor progressMonitor ) { if ( ( progressMonitor != null ) && ( progressMonitor . isCanceled ( ) ) ) return IJob . COMPLETE ; try { <START_BUG> IIndex index = manager . getIndex ( this . indexedContainer ) ; <END_BUG> if ( index == null ) return IJob . COMPLETE ; ReadWriteMonitor monitor = manager . getMonitorFor ( index ) ; if ( monitor == null ) return IJob . COMPLETE ; try { monitor . enterWrite ( ) ; index . remove ( resourceName ) ; } finally { monitor . exitWrite ( ) ; } } catch ( IOException e ) { if ( JobManager . VERBOSE ) { JobManager . verbose ( ( ( "-><seq2seq4repair_space>failed<seq2seq4repair_space>to<seq2seq4repair_space>remove<seq2seq4repair_space>" + ( this . resourceName ) ) + "<seq2seq4repair_space>from<seq2seq4repair_space>index<seq2seq4repair_space>because<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>following<seq2seq4repair_space>exception:" ) ) ; e . printStackTrace ( ) ; } return IJob . FAILED ; } return IJob . COMPLETE ; } public String toString ( ) { } public void cancel ( ) { } }

Fix:
IIndex index = manager . getIndex ( this . indexedContainer , true , true ) ;
Buggy code:
public class CovMerge extends CovBase { private File tofile = null ; private Vector filesets = new Vector ( ) ; private boolean verbose ; public void setTofile ( File value ) { } public void setVerbose ( boolean flag ) { } public void addFileset ( FileSet fs ) { } public CovMerge ( ) { } public void execute ( ) throws BuildException { checkOptions ( ) ; File paramfile = createParamFile ( ) ; try { Commandline cmdl = new Commandline ( ) ; cmdl . setExecutable ( findExecutable ( "jpcovmerge" ) ) ; if ( verbose ) { cmdl . createArgument ( ) . setValue ( "-v" ) ; } cmdl . createArgument ( ) . setValue ( ( ( getParamFileArgument ( ) ) + ( paramfile . getAbsolutePath ( ) ) ) ) ; if ( isJProbe4Plus ( ) ) { cmdl . createArgument ( ) . setValue ( tofile . getPath ( ) ) ; } LogStreamHandler handler = new LogStreamHandler ( this , Project . MSG_INFO , Project . MSG_WARN ) ; Execute exec = new Execute ( handler ) ; log ( cmdl . describeCommand ( ) , MSG_VERBOSE ) ; exec . setCommandline ( cmdl . getCommandline ( ) ) ; int exitValue = exec . execute ( ) ; <START_BUG> if ( exitValue != 0 ) { <END_BUG> throw new BuildException ( ( ( "JProbe<seq2seq4repair_space>Coverage<seq2seq4repair_space>Merging<seq2seq4repair_space>failed<seq2seq4repair_space>(" + exitValue ) + ")" ) ) ; } } catch ( IOException e ) { throw new BuildException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>run<seq2seq4repair_space>JProbe<seq2seq4repair_space>Coverage<seq2seq4repair_space>Merge:<seq2seq4repair_space>" + e ) ) ; } finally { paramfile . delete ( ) ; } } protected void checkOptions ( ) throws BuildException { } protected File [ ] getSnapshots ( ) { } protected File createParamFile ( ) throws BuildException { } }

Fix:
if ( Execute . isFailure ( exitValue ) ) {
Buggy code:
public class ControlsState extends GameState { private MenuButton btnUP ; private MenuButton btnDOWN ; private MenuButton btnLEFT ; private MenuButton btnRIGHT ; private MenuButton btnATTACK ; private MenuButton activeBtn ; private int key = 0 ; public ControlsState ( GamePanel gp ) { } @ Override public void tick ( ) { } @ Override public void draw ( Graphics2D g , double interpolation ) { } @ Override public void restart ( ) { } @ Override public void init ( ) { } public void buttonBackAction ( ) { Config . saveConfig ( ) ; <START_BUG> gsm . transition ( this , OPTIONSMENU_STATE , BLACKFADE ) ; <END_BUG> } public void buttonUPAction ( ) { } public void buttonDOWNAction ( ) { } public void buttonLEFTAction ( ) { } public void buttonRIGHTAction ( ) { } public void buttonATTACKAction ( ) { } @ Override public void init ( Object o ) { } }

Fix:
gsm . popTransition ( BLACKFADE ) ;
Buggy code:
public class ColorMessageMenu extends IMenu implements ActionListener , SelectionListener { public static String [ ] items = new String [ ] { MailResourceLoader . getString ( "dialog" , "color" , "blue" ) , MailResourceLoader . getString ( "dialog" , "color" , "gray" ) , MailResourceLoader . getString ( "dialog" , "color" , "green" ) , MailResourceLoader . getString ( "dialog" , "color" , "red" ) , MailResourceLoader . getString ( "dialog" , "color" , "yellow" ) , MailResourceLoader . getString ( "dialog" , "color" , "custom" ) } ; public static Color [ ] colors = new Color [ ] { Color . blue , Color . gray , Color . green , Color . red , Color . yellow , Color . black } ; public ColorMessageMenu ( FrameMediator controller ) { } protected void createSubMenu ( ) { } public void actionPerformed ( ActionEvent e ) { String action = e . getActionCommand ( ) ; <START_BUG> FolderCommandReference r = ( ( org . columba . mail . gui . frame . MailFrameMediator ) ( getController ( ) ) ) . getTableSelection ( ) ; <END_BUG> if ( action . equals ( "NONE" ) ) { r . setColorValue ( 0 ) ; processor . addOp ( new org . columba . mail . folder . command . ColorMessageCommand ( r ) ) ; } else { int result = - 1 ; for ( int i = 0 ; i < ( ColorMessageMenu . items . length ) ; i ++ ) { if ( action . equals ( ColorMessageMenu . items [ i ] ) ) { result = i ; break ; } } r . setColorValue ( ColorMessageMenu . colors [ result ] . getRGB ( ) ) ; processor . addOp ( new org . columba . mail . folder . command . ColorMessageCommand ( r ) ) ; } } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
FolderCommandReference r = ( ( org . columba . mail . gui . frame . MailFrameMediator ) ( getFrameMediator ( ) ) ) . getTableSelection ( ) ;
Buggy code:
public class ClusterConfigProvider { @ Inject DockerApi dockerApi ; public Collection < ClusterConfig > getCurrentClusters ( String domain ) { } private ClusterConfig merge ( ClusterConfig a , ClusterConfig b ) { b . mergeWith ( a ) ; <START_BUG> return a ; <END_BUG> } private Collection < String > getActiveContainerNames ( ) { } }

Fix:
return b ;
Buggy code:
public final class ManagedBeanDeploymentItem implements Serializable , DeploymentItem { private final String name ; private final String className ; private final String postConstructMethodName ; private final String preDestroyMethodName ; private final List < ManagedBeanDeploymentItem . Resource > resources ; public static final ServiceName JBOSS_MANAGEDBEAN = JBOSS . append ( "managedbean" ) ; private static final String BINDING = "binding" ; private static final long serialVersionUID = - 2132700755920008127L ; protected ManagedBeanDeploymentItem ( final String name , final String className , final String postConstructMethodName , final String preDestroyMethodName , final List < ManagedBeanDeploymentItem . Resource > resources ) { } public String getName ( ) { } public String getClassName ( ) { } public String getPostConstructMethodName ( ) { } public String getPreDestroyMethodName ( ) { } <START_BUG> public void install ( final DeploymentItemContext context ) { <END_BUG> } protected abstract static class Resource { } }

Fix:
public void install ( final BatchBuilder builder ) {
Buggy code:
public class IngresDictionary extends DBDictionary { public IngresDictionary ( ) { } public void connectedConfiguration ( Connection conn ) throws SQLException { } boolean isVersion9_2orLater ( Connection conn ) throws SQLException { } protected void appendSelectRange ( SQLBuffer buf , long start , long end , boolean subselect ) { } @ Override protected String getSequencesSQL ( String schemaName , String sequenceName ) { <START_BUG> StringBuffer buf = new StringBuffer ( ) ; <END_BUG> buf . append ( sequenceSQL ) ; if ( ( schemaName != null ) || ( sequenceName != null ) ) buf . append ( "<seq2seq4repair_space>WHERE<seq2seq4repair_space>" ) ; if ( schemaName != null ) { buf . append ( sequenceSchemaSQL ) ; if ( sequenceName != null ) buf . append ( "<seq2seq4repair_space>AND<seq2seq4repair_space>" ) ; } if ( sequenceName != null ) buf . append ( sequenceNameSQL ) ; return buf . toString ( ) ; } @ Override protected Sequence newSequence ( ResultSet sequenceMeta ) throws SQLException { } public void indexOf ( SQLBuffer buf , FilterValue str , FilterValue find , FilterValue start ) { } public void substring ( SQLBuffer buf , FilterValue str , FilterValue start , FilterValue end ) { } }

Fix:
StringBuilder buf = new StringBuilder ( ) ;
Buggy code:
public class ResourceLink extends Link implements IResourceListener { private static final long serialVersionUID = 1L ; private final ResourceReference resourceReference ; private final Resource resource ; public ResourceLink ( final String id , final ResourceReference resourceReference ) { } public ResourceLink ( final String id , final Resource resource ) { } public void onClick ( ) { } public final void onResourceRequested ( ) { } <START_BUG> protected final String getURL ( ) { <END_BUG> if ( ( resourceReference ) != null ) { resourceReference . bind ( getApplication ( ) ) ; return getRequestCycle ( ) . urlFor ( resourceReference ) ; } return urlFor ( INTERFACE ) ; } }

Fix:
protected final CharSequence getURL ( ) {
Buggy code:
public class AbstractTag extends AbstractComponent implements DynamicPropertied , RawId { protected String _tagnm ; private Map < String , Object > _props ; protected AbstractTag ( String tagname ) { } protected AbstractTag ( ) { } public String getSclass ( ) { } public void setSclass ( String sclass ) { } public String getStyle ( ) { } public void setStyle ( String style ) { } public String getTag ( ) { } public boolean hasDynamicProperty ( String name ) { } public Object getDynamicProperty ( String name ) { } public void setDynamicProperty ( String name , Object value ) throws WrongValueException { } private String getEncodedURL ( String src ) { } private String filterStyle ( String style ) { } private void setDynaProp ( String name , Object value ) { } protected boolean shallHideId ( ) { } public boolean setVisible ( boolean visible ) { } public String getWidgetClass ( ) { } public void redraw ( Writer out ) throws IOException { } protected void redrawChildrenDirectly ( TagRenderContext rc , Execution exec , Writer out ) throws IOException { } protected void renderProperties ( ContentRenderer renderer ) throws IOException { } String getPrologHalf ( boolean hideUuidIfNoId ) { final StringBuilder sb = new StringBuilder ( 128 ) . append ( '<' ) . append ( _tagnm ) ; if ( ( ( ! hideUuidIfNoId ) && ( ! ( shallHideId ( ) ) ) ) || ( ( getId ( ) . length ( ) ) > 0 ) ) sb . append ( "<seq2seq4repair_space>id=\"" ) . append ( getUuid ( ) ) . append ( '"' ) ; if ( ( _props ) != null ) { for ( Iterator it = _props . entrySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { final Map . Entry me = ( ( Map . Entry ) ( it . next ( ) ) ) ; sb . append ( '<seq2seq4repair_space>' ) . append ( me . getKey ( ) ) . append ( "=\"" ) . append ( XMLs . encodeAttribute ( Objects . toString ( me . getValue ( ) ) ) ) . append ( '"' ) ; } } if ( ! ( isOrphanTag ( ) ) ) sb . append ( '//' ) ; sb . append ( '>' ) ; Object textContent = getDynamicProperty ( "textContent" ) ; if ( textContent != null ) <START_BUG> sb . append ( ( ( String ) ( textContent ) ) ) ; <END_BUG> return sb . toString ( ) ; } String getEpilogHalf ( ) { } protected boolean isChildable ( ) { } protected boolean isOrphanTag ( ) { } public Object clone ( ) { } public String toString ( ) { } public Object getExtraCtrl ( ) { } protected class ExtraCtrl implements DirectContent { } }

Fix:
sb . append ( XMLs . escapeXML ( ( ( String ) ( textContent ) ) ) ) ;
Buggy code:
public class AttributeModifier extends AbstractBehavior implements IClusterable { public static final String VALUELESS_ATTRIBUTE_ADD = "VA_ADD" ; public static final String VALUELESS_ATTRIBUTE_REMOVE = "VA_REMOVE" ; private static final long serialVersionUID = 1L ; private final boolean addAttributeIfNotPresent ; private final String attribute ; private boolean enabled ; private final String pattern ; private final IModel replaceModel ; public AttributeModifier ( final String attribute , final boolean addAttributeIfNotPresent , final IModel replaceModel ) { } public AttributeModifier ( final String attribute , final IModel replaceModel ) { } public AttributeModifier ( final String attribute , final String pattern , final boolean addAttributeIfNotPresent , final IModel replaceModel ) { } public AttributeModifier ( final String attribute , final String pattern , final IModel replaceModel ) { } public final void detachModel ( Component component ) { } public boolean isEnabled ( Component component ) { } public final boolean isEnabled ( ) { } public final void onComponentTag ( Component component , ComponentTag tag ) { } public final void replaceAttibuteValue ( final Component component , final ComponentTag tag ) { } public final void setEnabled ( final boolean enabled ) { } public String toString ( ) { } protected final IModel getReplaceModel ( ) { } protected String newValue ( final String currentValue , final String replacementValue ) { } private Object getReplacementOrNull ( final Component component ) { <START_BUG> return ( replaceModel ) != null ? replaceModel . getObject ( component ) : null ; <END_BUG> } private String toStringOrNull ( final Object replacementValue ) { } }

Fix:
return ( replaceModel ) != null ? replaceModel . getObject ( ) : null ;
Buggy code:
public class SeqRes2AtomAligner { private static final Logger logger = LoggerFactory . getLogger ( SeqRes2AtomAligner . class ) ; private String alignmentString ; public SeqRes2AtomAligner ( ) { } public String getAlignmentString ( ) { } public static Chain getMatchingAtomRes ( Chain seqRes , List < Chain > atomList ) { Iterator < Chain > iter = atomList . iterator ( ) ; while ( iter . hasNext ( ) ) { Chain atomChain = iter . next ( ) ; if ( atomChain . getChainID ( ) . equals ( seqRes . getChainID ( ) ) ) { return atomChain ; } } <START_BUG> SeqRes2AtomAligner . logger . debug ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>SEQRES<seq2seq4repair_space>chainID<seq2seq4repair_space>>" + ( seqRes . getChainID ( ) ) ) + "<<seq2seq4repair_space>to<seq2seq4repair_space>ATOM<seq2seq4repair_space>chains!,<seq2seq4repair_space>size<seq2seq4repair_space>of<seq2seq4repair_space>atom<seq2seq4repair_space>chain:<seq2seq4repair_space>" ) + ( atomList . size ( ) ) ) ) ; <END_BUG> return null ; } public void align ( Structure s , List < Chain > seqResList ) { } public void mapSeqresRecords ( Chain atomRes , Chain seqRes ) { } private void alignNucleotideChains ( Chain seqRes , Chain atomRes ) { } private List < Group > trySimpleMatch ( List < Group > seqResGroups , List < Group > atmResGroups ) { } public static String getFullAtomSequence ( List < Group > groups , Map < Integer , Integer > positionIndex ) { } private boolean alignNucleotideGroups ( List < Group > seqRes , List < Group > atomRes ) { } private boolean alignProteinChains ( List < Group > seqRes , List < Group > atomRes ) { } private boolean mapChains ( List < Group > seqResGroups , List < Group > atomRes , SequencePair < ProteinSequence , AminoAcidCompound > pair , Map < Integer , Integer > seqresIndexPosition , Map < Integer , Integer > atomIndexPosition ) { } private boolean mapDNAChains ( List < Group > seqResGroups , List < Group > atomRes , SequencePair < Sequence < NucleotideCompound > , NucleotideCompound > pair , Map < Integer , Integer > seqresIndexPosition , Map < Integer , Integer > atomIndexPosition ) { } }

Fix:
SeqRes2AtomAligner . logger . info ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>SEQRES<seq2seq4repair_space>chainID<seq2seq4repair_space>>" + ( seqRes . getChainID ( ) ) ) + "<<seq2seq4repair_space>to<seq2seq4repair_space>ATOM<seq2seq4repair_space>chains!,<seq2seq4repair_space>size<seq2seq4repair_space>of<seq2seq4repair_space>atom<seq2seq4repair_space>chain:<seq2seq4repair_space>" ) + ( atomList . size ( ) ) ) ) ;
Buggy code:
@ Transactional ( readOnly = false , propagation = Propagation . REQUIRED ) public class UserServiceImpl implements UserService { private UserDao userDao ; public void setUserDao ( UserDao userDao ) { } public void create ( User user ) { } public String sha1 ( String password ) throws NoSuchAlgorithmException { } public User getUserByEmail ( String email ) { } public List < Friendship > getAccepteFriendships ( String email ) { } public Stream getActivitiesFromFriends ( String email ) { } @ Override public User getUser ( int id ) { } @ Override public User updateUser ( User origin , User user ) { if ( user . getPassword ( ) . equals ( "changeit" ) ) { user . setPassword ( origin . getPassword ( ) ) ; user . setRepeat ( origin . getPassword ( ) ) ; } else { try { String password = user . getPassword ( ) ; password = sha1 ( password ) ; user . setPassword ( password ) ; user . setRepeat ( password ) ; } catch ( NoSuchAlgorithmException e ) { e . printStackTrace ( ) ; } } <START_BUG> if ( ( user . getPhoto ( ) . length ) != 0 ) { <END_BUG> origin . setPhoto ( user . getPhoto ( ) ) ; } origin . setEmail ( user . getEmail ( ) ) ; origin . setPassword ( user . getPassword ( ) ) ; origin . setRepeat ( user . getPassword ( ) ) ; origin . setPrename ( user . getPrename ( ) ) ; origin . setSurname ( user . getSurname ( ) ) ; origin . setBirthdate ( user . getBirthdate ( ) ) ; origin . setCity ( user . getCity ( ) ) ; userDao . save ( origin ) ; return origin ; } }

Fix:
if ( ( user . getHasPhoto ( ) ) && ( ( user . getPhoto ( ) . length ) != 0 ) ) {
Buggy code:
public class CommitLog { private static volatile int SEGMENT_SIZE = ( 128 * 1024 ) * 1024 ; private static volatile CommitLog instance_ ; private static Lock lock_ = new ReentrantLock ( ) ; private static Logger logger_ = Logger . getLogger ( CommitLog . class ) ; private static Map < String , CommitLogHeader > clHeaders_ = new HashMap < String , CommitLogHeader > ( ) ; public static final class CommitLogContext { static CommitLog . CommitLogContext NULL = new CommitLog . CommitLogContext ( null , ( - 1L ) ) ; public final String file ; public final long position ; public CommitLogContext ( String file , long position ) { } boolean isValidContext ( ) { } } public static class CommitLogFileComparator implements Comparator < String > { public int compare ( String f , String f2 ) { } public boolean equals ( Object o ) { } } public static void setSegmentSize ( int size ) { } static int getSegmentCount ( ) { } static long getCreationTime ( String file ) { } private static IFileWriter createWriter ( String file ) throws IOException { } static CommitLog open ( ) throws IOException { } private String logFile_ ; private CommitLogHeader clHeader_ ; private IFileWriter logWriter_ ; private void setNextFileName ( ) { <START_BUG> logFile_ = ( ( ( ( DatabaseDescriptor . getLogFileLocation ( ) ) + ( System . getProperty ( "file.separator" ) ) ) + "CommitLog-" ) + ( System . currentTimeMillis ( ) ) ) + ".log" ; <END_BUG> } CommitLog ( boolean recoveryMode ) throws IOException { } CommitLog ( File logFile ) throws IOException { } String getLogFile ( ) { } private CommitLogHeader readCommitLogHeader ( IFileReader logReader ) throws IOException { } private static void writeCommitLogHeader ( String commitLogFileName , byte [ ] bytes ) throws IOException { } private void writeCommitLogHeader ( ) throws IOException { } private void seekAndWriteCommitLogHeader ( byte [ ] bytes ) throws IOException { } private static void writeCommitLogHeader ( IFileWriter logWriter , byte [ ] bytes ) throws IOException { } void recover ( File [ ] clogs ) throws IOException { } private void maybeUpdateHeader ( Row row ) throws IOException { } CommitLog . CommitLogContext getContext ( ) throws IOException { } synchronized CommitLog . CommitLogContext add ( Row row ) throws IOException { } synchronized void onMemtableFlush ( String tableName , String cf , CommitLog . CommitLogContext cLogCtx ) throws IOException { } private void discardCompletedSegments ( CommitLog . CommitLogContext cLogCtx , int id ) throws IOException { } private void checkThresholdAndRollLog ( ) throws IOException { } }

Fix:
logFile_ = ( ( ( ( DatabaseDescriptor . getLogFileLocation ( ) ) + ( File . separator ) ) + "CommitLog-" ) + ( System . currentTimeMillis ( ) ) ) + ".log" ;
Buggy code:
public interface ComputerDAOInterface { public Computer get ( final long id ) { } public void update ( final Computer computer ) { } <START_BUG> public int save ( final Computer computer ) ; <END_BUG> public Page getPage ( int pageNumber ) { } public void remove ( final long id ) { } public int getCount ( String query ) { } public Page getPage ( Page page ) { } public void removeByCompany ( long id ) { } }

Fix:
public void save ( final Computer computer ) ;
Buggy code:
public class ThisJoinPointVisitor extends ASTVisitor { boolean needsDynamic = false ; boolean needsStatic = false ; boolean needsStaticEnclosing = false ; boolean hasEffectivelyStaticRef = false ; LocalVariableBinding thisJoinPointDec ; LocalVariableBinding thisJoinPointStaticPartDec ; LocalVariableBinding thisEnclosingJoinPointStaticPartDec ; LocalVariableBinding thisJoinPointDecLocal ; LocalVariableBinding thisJoinPointStaticPartDecLocal ; LocalVariableBinding thisEnclosingJoinPointStaticPartDecLocal ; boolean replaceEffectivelyStaticRefs = false ; AbstractMethodDeclaration method ; ThisJoinPointVisitor ( AbstractMethodDeclaration method ) { } public void computeJoinPointParams ( ) { } boolean isRef ( NameReference ref , Binding binding ) { } boolean isRef ( Expression expr , Binding binding ) { } public void endVisit ( SingleNameReference ref , BlockScope scope ) { } boolean canTreatAsStatic ( String id ) { } boolean inBlockThatCantRun = false ; public boolean visit ( MessageSend call , BlockScope scope ) { } private void replaceEffectivelyStaticRef ( MessageSend call ) { } private MethodBinding getEquivalentStaticBinding ( MethodBinding template ) { ReferenceBinding b = ( ( ReferenceBinding ) ( thisJoinPointStaticPartDec . type ) ) ; <START_BUG> return b . getExactMethod ( template . selector , template . parameters ) ; <END_BUG> } public int removeUnusedExtraArguments ( ) { } private void removeParameter ( int indexToRemove ) { } private static TypeBinding [ ] removeParameter ( int index , TypeBinding [ ] bindings ) { } private static LocalVariableBinding [ ] removeLocalBinding ( int index , LocalVariableBinding [ ] bindings ) { } }

Fix:
return b . getExactMethod ( template . selector , template . parameters , null ) ;
Buggy code:
public interface SnaxAble { static final Logger LOG = LoggerFactory . getLogger ( SnaxAble . class ) ; void toSnax ( SimpleContentHandler sch ) throws SAXException ; class SnaxSource extends SAXSource { SnaxSource ( SnaxAble x ) { } SnaxSource ( SnaxAble x , XMLReader r ) { } } interface SnaxElement { String name ( ) { } Map < String , String > atts ( ) { } Iterable < SnaxAble > kids ( ) { } class SnaxElementImpl implements SnaxAble . SnaxElement { final String NAME ; final Map < String , String > ATTS ; final Iterable < SnaxAble > KIDS ; public SnaxElementImpl ( String name , Map < String , String > atts , Iterable < SnaxAble > kids ) { } @ Override public String name ( ) { } @ Override public Map < String , String > atts ( ) { } @ Override public Iterable < SnaxAble > kids ( ) { } } class ElementSnaxAble implements SnaxAble { public static final Function < SnaxAble . SnaxElement , SnaxAble > ELEMENT_SNAXABLE ; final SnaxAble . SnaxElement E ; public ElementSnaxAble ( SnaxAble . SnaxElement e ) { } @ Override public void toSnax ( SimpleContentHandler sch ) throws SAXException { sch . startElement ( E . name ( ) , new SimpleAttributes ( ) . addAttributes ( E . atts ( ) ) ) ; for ( SnaxAble kid : E . kids ( ) ) kid . toSnax ( sch ) ; sch . endElement ( E . name ( ) ) ; } } } class SnaxText implements SnaxAble { final Object DELEGATE ; public SnaxText ( Object delegate ) { } @ Override public void toSnax ( SimpleContentHandler sch ) throws SAXException { String s = DELEGATE . toString ( ) ; Preconditions . checkArgument ( ( null != s ) , "delegate<seq2seq4repair_space>toString<seq2seq4repair_space>mustn't<seq2seq4repair_space>return<seq2seq4repair_space>null" ) ; <START_BUG> sch . characters ( toString ( ) ) ; <END_BUG> } } }

Fix:
sch . characters ( s ) ;
Buggy code:
public class WebResponse extends Response { private static final Log log = LogFactory . getLog ( WebResponse . class ) ; protected boolean redirect ; private final HttpServletResponse httpServletResponse ; WebResponse ( ) { } WebResponse ( final HttpServletResponse httpServletResponse ) throws IOException { } public void close ( ) { } public String encodeURL ( String url ) { } public final HttpServletResponse getHttpServletResponse ( ) { } public OutputStream getOutputStream ( ) { } public final boolean isRedirect ( ) { } public void redirect ( final String url ) { if ( ( httpServletResponse ) != null ) { try { if ( httpServletResponse . isCommitted ( ) ) { <START_BUG> WebResponse . log . error ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>redirect.<seq2seq4repair_space>HTTP<seq2seq4repair_space>Response<seq2seq4repair_space>has<seq2seq4repair_space>already<seq2seq4repair_space>been<seq2seq4repair_space>committed." ) ; <END_BUG> } if ( WebResponse . log . isDebugEnabled ( ) ) { WebResponse . log . debug ( ( "Redirecting<seq2seq4repair_space>to<seq2seq4repair_space>" + url ) ) ; } httpServletResponse . sendRedirect ( url ) ; redirect = true ; } catch ( IOException e ) { throw new WicketRuntimeException ( "Redirect<seq2seq4repair_space>failed" , e ) ; } } } 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 String string ) { } }

Fix:
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." ) ) ;
Buggy code:
public class CodeSnippetFieldReference extends FieldReference implements ProblemReasons , EvaluationConstants { EvaluationContext evaluationContext ; FieldBinding delegateThis ; public CodeSnippetFieldReference ( char [ ] source , long pos , EvaluationContext evaluationContext ) { } public void generateAssignment ( BlockScope currentScope , CodeStream codeStream , Assignment assignment , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void generateCompoundAssignment ( BlockScope currentScope , CodeStream codeStream , Expression expression , int operator , int assignmentImplicitConversion , boolean valueRequired ) { } public void generatePostIncrement ( BlockScope currentScope , CodeStream codeStream , CompoundAssignment postIncrement , boolean valueRequired ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo , boolean isReadAccess ) { } public TypeBinding resolveType ( BlockScope scope ) { this . receiverType = this . receiver . resolveType ( scope ) ; if ( ( this . receiverType ) == null ) { this . constant = NotAConstant ; return null ; } this . codegenBinding = this . binding = scope . getField ( this . receiverType , this . token , this ) ; FieldBinding firstAttempt = this . binding ; boolean isNotVisible = false ; if ( ! ( this . binding . isValidBinding ( ) ) ) { if ( ( ( this . binding ) instanceof ProblemFieldBinding ) && ( ( ( ( ProblemFieldBinding ) ( this . binding ) ) . problemId ( ) ) == ( ProblemReasons . NotVisible ) ) ) { isNotVisible = true ; if ( ( this . evaluationContext . declaringTypeName ) != null ) { this . delegateThis = scope . getField ( scope . enclosingSourceType ( ) , EvaluationConstants . DELEGATE_THIS , this ) ; if ( ( this . delegateThis ) == null ) { this . constant = NotAConstant ; scope . problemReporter ( ) . invalidField ( this , this . receiverType ) ; return null ; } } else { this . constant = NotAConstant ; scope . problemReporter ( ) . invalidField ( this , this . receiverType ) ; return null ; } CodeSnippetScope localScope = new CodeSnippetScope ( scope ) ; this . codegenBinding = this . binding = localScope . getFieldForCodeSnippet ( this . delegateThis . type , this . token , this ) ; } } if ( ! ( this . binding . isValidBinding ( ) ) ) { this . constant = NotAConstant ; if ( isNotVisible ) { this . codegenBinding = this . binding = firstAttempt ; } scope . problemReporter ( ) . invalidField ( this , this . receiverType ) ; return null ; } <START_BUG> if ( isFieldUseDeprecated ( this . binding , scope , ( ( ( this . bits ) & ( IsStrictlyAssignedMASK ) ) != 0 ) ) ) { <END_BUG> scope . problemReporter ( ) . deprecatedField ( this . binding , this ) ; } this . constant = FieldReference . getConstantFor ( this . binding , this , this . receiver . isImplicitThis ( ) , scope ) ; if ( ! ( this . receiver . isThis ( ) ) ) { this . constant = NotAConstant ; } return this . resolvedType = this . binding . type ; } }

Fix:
if ( isFieldUseDeprecated ( this . binding , scope , ( ( ( this . bits ) & ( ASTNode . IsStrictlyAssigned ) ) != 0 ) ) ) {