Buggy code:
public class BatchState implements BatchStateListener { private transient List < BatchStateListener > listeners ; private ClientCommunicator comm ; private String hostname ; private int port ; private User user ; private String [ ] [ ] values ; private Cell selectedCell ; private double zoomLevel ; private int scrollPosition ; private boolean highlightsVisible ; private boolean imageInverted ; private int windowPositionX ; private int windowPositionY ; private int windowSizeX ; private int windowSizeY ; private int horizontalDivider ; private int verticalDivider ; private int numberOfRows ; private int numberOfColumns ; private String imageURL ; private int imageX ; private int imageY ; private int imageWidth ; private int imageHeight ; private int projectID ; ArrayList < Field > fields ; private boolean hasDownloadedBatch ; private int firstYCoord ; private int recordHeight ; private boolean loggingIn ; private boolean downloadingBatch ; private Map < String , Set < String > > dictionary ; public BatchState ( String hostname , int port ) { } public void addListener ( BatchStateListener l ) { } public void setValue ( Cell cell , String value ) { } public String getValue ( Cell cell ) { } public void setSelectedCell ( Cell selCell ) { } public Cell getSelectedCell ( ) { } @ Override public void stateChanged ( ) { } public void save ( ) { } public boolean submitBatch ( ) { } public void setDownloadedBatch ( DownloadBatch_Result result ) { } public boolean qualityCheck ( Cell cell ) { String inputWord = this . getValue ( cell ) ; inputWord = inputWord . trim ( ) ; <START_BUG> if ( inputWord == "" ) { <END_BUG> return true ; } String word = inputWord . toLowerCase ( ) ; if ( ( dictionary . get ( fields . get ( cell . getField ( ) ) . getTitle ( ) ) ) == null ) { return true ; } else { Set < String > tempSet = dictionary . get ( fields . get ( cell . getField ( ) ) . getTitle ( ) ) ; if ( tempSet . contains ( word . toLowerCase ( ) ) ) { return true ; } } return false ; } public Set < String > makeSuggestions ( Cell cell ) { } private Set < String > refineSuggestions ( Set < String > allSuggested , Cell cell ) { } private Set < String > findAllSuggestions ( Cell cell ) { } private Set < String > findNearbyWords ( String word ) { } public ClientCommunicator getComm ( ) { } public void setComm ( ClientCommunicator comm ) { } public String getHostname ( ) { } public void setHostname ( String hostname ) { } public int getPort ( ) { } public void setPort ( int port ) { } public User getUser ( ) { } public void setUser ( User user ) { } public String getImageURL ( ) { } public void setImageURL ( String imageURL ) { } public int getProjectID ( ) { } public void setProjectID ( int projectID ) { } public ArrayList < Field > getFields ( ) { } public void setFields ( ArrayList < Field > fields ) { } public void setNumberOfRows ( int recordsPerImage ) { } public boolean getHasDownloadedBatch ( ) { } public void setHasDownloadedBatch ( boolean hasDownloadedBatch ) { } public List < BatchStateListener > getListeners ( ) { } public void setListeners ( List < BatchStateListener > listeners ) { } public boolean isHighlightsVisible ( ) { } public void setHighlightsVisible ( boolean highlightsVisible ) { } public boolean isImageInverted ( ) { } public void setImageInverted ( boolean imageInverted ) { } public int getHorizontalDivider ( ) { } public void setHorizontalDivider ( int horizontalDivider ) { } public int getNumberOfColumns ( ) { } public void setNumberOfColumns ( int numberOfColumns ) { } public int getFirstYCoord ( ) { } public void setFirstYCoord ( int firstYCoord ) { } public int getRecordHeight ( ) { } public void setRecordHeight ( int recordHeight ) { } public int getNumberOfRows ( ) { } public double getZoomLevel ( ) { } public void setZoomLevel ( double zoomLevel ) { } public String [ ] [ ] getValues ( ) { } public void setValues ( String [ ] [ ] values ) { } public int getScrollPosition ( ) { } public void setScrollPosition ( int scrollPosition ) { } public int getWindowPositionX ( ) { } public void setWindowPositionX ( int windowPositionX ) { } public int getWindowPositionY ( ) { } public void setWindowPositionY ( int windowPositionY ) { } public int getWindowSizeX ( ) { } public void setWindowSizeX ( int windowSizeX ) { } public int getWindowSizeY ( ) { } public void setWindowSizeY ( int windowSizeY ) { } public int getVerticalDivider ( ) { } public void setVerticalDivider ( int verticalDivider ) { } public int getImageX ( ) { } public void setImageX ( int imageX ) { } public int getImageY ( ) { } public void setImageY ( int imageY ) { } public int getImageWidth ( ) { } public void setImageWidth ( int imageWidth ) { } public int getImageHeight ( ) { } public void setImageHeight ( int imageHeight ) { } public boolean isLoggingIn ( ) { } public void setLoggingIn ( boolean loggingIn ) { } public boolean isDownloadingBatch ( ) { } public void setDownloadingBatch ( boolean downloadingBatch ) { } public void update ( BatchState savedState ) { } No newline ; at end ; of file ; }

Fix:
if ( inputWord . equals ( "" ) ) {