Buggy code:
class CassandraStatement extends AbstractStatement implements Statement { protected static final Pattern UpdatePattern = Pattern . compile ( "UPDATE<seq2seq4repair_space>.*" , Pattern . CASE_INSENSITIVE ) ; protected CassandraConnection connection ; protected String cql ; protected int fetchDirection = ResultSet . FETCH_FORWARD ; protected int fetchSize = 0 ; protected int maxFieldSize = 0 ; protected int maxRows = 0 ; protected int resultSetType = CResultSet . DEFAULT_TYPE ; protected int resultSetConcurrency = CResultSet . DEFAULT_CONCURRENCY ; protected int resultSetHoldability = CResultSet . DEFAULT_HOLDABILITY ; protected ResultSet currentResultSet = null ; protected int updateCount = - 1 ; protected boolean escapeProcessing = true ; CassandraStatement ( CassandraConnection con ) throws SQLException { } CassandraStatement ( CassandraConnection con , String cql ) throws SQLException { } CassandraStatement ( CassandraConnection con , String cql , int resultSetType , int resultSetConcurrency ) throws SQLException { } CassandraStatement ( CassandraConnection con , String cql , int resultSetType , int resultSetConcurrency , int resultSetHoldability ) throws SQLException { } public void addBatch ( String arg0 ) throws SQLException { } private final void checkNotClosed ( ) throws SQLException { } public void clearBatch ( ) throws SQLException { } public void clearWarnings ( ) throws SQLException { } public void close ( ) throws SQLException { } private void doExecute ( String sql ) throws SQLException { } public boolean execute ( String query ) throws SQLException { } public boolean execute ( String sql , int autoGeneratedKeys ) throws SQLException { } public int [ ] executeBatch ( ) throws SQLException { } public ResultSet executeQuery ( String query ) throws SQLException { } public int executeUpdate ( String query ) throws SQLException { } public int executeUpdate ( String sql , int autoGeneratedKeys ) throws SQLException { } public Connection getConnection ( ) throws SQLException { } public int getFetchDirection ( ) throws SQLException { } public int getFetchSize ( ) throws SQLException { } public int getMaxFieldSize ( ) throws SQLException { } public int getMaxRows ( ) throws SQLException { } public boolean getMoreResults ( ) throws SQLException { } public boolean getMoreResults ( int current ) throws SQLException { } public int getQueryTimeout ( ) throws SQLException { } public ResultSet getResultSet ( ) throws SQLException { } public int getResultSetConcurrency ( ) throws SQLException { } public int getResultSetHoldability ( ) throws SQLException { } public int getResultSetType ( ) throws SQLException { } public int getUpdateCount ( ) throws SQLException { } public SQLWarning getWarnings ( ) throws SQLException { } public boolean isClosed ( ) throws SQLException { } public boolean isPoolable ( ) throws SQLException { } public boolean isWrapperFor ( Class < ? > iface ) throws SQLException { } private final void resetResults ( ) { } public void setEscapeProcessing ( boolean enable ) throws SQLException { } public void setFetchDirection ( int direction ) throws SQLException { checkNotClosed ( ) ; if ( ( ( direction == ( ResultSet . FETCH_FORWARD ) ) || ( direction == ( ResultSet . FETCH_REVERSE ) ) ) || ( direction == ( ResultSet . FETCH_UNKNOWN ) ) ) { if ( ( ( getResultSetType ( ) ) == ( ResultSet . TYPE_FORWARD_ONLY ) ) && ( direction != ( ResultSet . FETCH_FORWARD ) ) ) throw new SQLSyntaxErrorException ( String . format ( BAD_FETCH_DIR , direction ) ) ; fetchDirection = direction ; <START_BUG> } <END_BUG> throw new SQLSyntaxErrorException ( String . format ( BAD_FETCH_DIR , direction ) ) ; } public void setFetchSize ( int size ) throws SQLException { } public void setMaxFieldSize ( int arg0 ) throws SQLException { } public void setMaxRows ( int arg0 ) throws SQLException { } public void setPoolable ( boolean poolable ) throws SQLException { } public void setQueryTimeout ( int arg0 ) throws SQLException { } public < T > T unwrap ( Class < T > iface ) throws SQLException { } }

Fix:
} else