Buggy code:
public class ImageLayer extends ContentLayer { enum State { NORMAL ( ) { } , PREVIEW ( ) { } , SHOW_ORIGINAL ( ) { } ; } private transient boolean imageContentChanged = false ; private static final long serialVersionUID = 2L ; private transient ImageLayer . State state = ImageLayer . State . NORMAL ; private transient TmpDrawingLayer tmpDrawingLayer ; private transient BufferedImage image = null ; private transient BufferedImage previewImage ; private transient BufferedImage filterSourceImage ; public ImageLayer ( Composition comp , BufferedImage image , String name ) { } public ImageLayer ( Composition comp , BufferedImage pastedImage , String name , int width , int height ) { } public ImageLayer ( Composition comp , String name ) { } @ Override public ImageLayer duplicate ( ) { } public BufferedImage getImage ( ) { } private BufferedImage replaceImageWithSelection ( BufferedImage src , BufferedImage newImage ) { } private void setPreviewWithSelection ( BufferedImage newImage ) { } private void setImageWithSelection ( BufferedImage newImage ) { } public void setImage ( BufferedImage newImage ) { } public void startPreviewing ( ) { } public void startNewPreviewFromDialog ( ) { } public void okPressedInDialog ( String filterName ) { } public void cancelPressedInDialog ( ) { } public void tweenCalculatingStarted ( ) { } public void tweenCalculatingEnded ( ) { } public void changePreviewImage ( BufferedImage img , String filterName ) { if ( ( state ) == ( ImageLayer . State . SHOW_ORIGINAL ) ) { } else if ( ( state ) == ( ImageLayer . State . NORMAL ) ) { <START_BUG> throw new IllegalStateException ( "change<seq2seq4repair_space>preview<seq2seq4repair_space>in<seq2seq4repair_space>normal" ) ; <END_BUG> } assert ( previewImage ) != null : "previewImage<seq2seq4repair_space>was<seq2seq4repair_space>null<seq2seq4repair_space>with<seq2seq4repair_space>" + filterName ; if ( img == null ) { throw new IllegalArgumentException ( "img<seq2seq4repair_space>==<seq2seq4repair_space>null" ) ; } if ( img == ( image ) ) { imageContentChanged = false ; boolean shouldRefresh = ( image ) != ( previewImage ) ; previewImage = image ; if ( shouldRefresh ) { comp . imageChanged ( FULL ) ; } } else { imageContentChanged = true ; setPreviewWithSelection ( img ) ; setState ( ImageLayer . State . PREVIEW ) ; comp . imageChanged ( FULL ) ; } } public void filterWithoutDialogFinished ( BufferedImage transformedImage , ChangeReason changeReason , String opName ) { } public void changeImageUndoRedo ( BufferedImage img ) { } @ Override public String toString ( ) { } public Rectangle getBounds ( ) { } public boolean checkForLayerEnlargement ( ) { } public void enlargeLayer ( ) { } private void enlargeSE ( ) { } private void enlargeNE ( ) { } private void enlargeSW ( ) { } private void enlargeNW ( ) { } private void writeObject ( ObjectOutputStream out ) throws IOException { } private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { } public BufferedImage getImageForFilterDialogs ( ) { } @ Override public void flip ( Flip . Direction direction ) { } @ SuppressWarnings ( "SuspiciousNameCombination" ) @ Override public void rotate ( int angleDegree ) { } @ Override public void mergeDownOn ( ImageLayer bellowImageLayer ) { } public TmpDrawingLayer createTmpDrawingLayer ( Composite c , boolean respectSelection ) { } public void mergeTmpDrawingImageDown ( ) { } public BufferedImage createCompositionSizedTmpImage ( ) { } public BufferedImage getCompositionSizedSubImage ( ) { } public BufferedImage getFilterSourceImage ( ) { } public BufferedImage getImageOrSubImageIfSelected ( boolean copyIfNoSelection , boolean copyAndTranslateIfSelected ) { } public BufferedImage getSelectionSizedPartFrom ( BufferedImage src , Selection selection , boolean copyAndTranslateIfSelected ) { } public void cropToCanvasSize ( ) { } @ Override public void enlargeCanvas ( int north , int east , int south , int west ) { } @ Override TranslateEdit createTranslateEdit ( int oldTranslationX , int oldTranslationY ) { } @ Override public void resize ( int targetWidth , int targetHeight , boolean progressiveBilinear ) { } @ Override public void crop ( Rectangle selectionBounds ) { } private void checkConstructorPostConditions ( ) { } @ Override public void paintLayerOnGraphics ( Graphics2D g , boolean isFirstVisibleLayer ) { } public void setShowOriginal ( boolean b ) { } private void setState ( ImageLayer . State newState ) { } public void debugImages ( ) { } private boolean isImageContentChanged ( ) { } ImageLayer . State getState ( ) { } }

Fix:
throw new IllegalStateException ( "change<seq2seq4repair_space>preview<seq2seq4repair_space>in<seq2seq4repair_space>normal<seq2seq4repair_space>state" ) ;