Buggy code:
public class CookieManager extends ConfigTestElement implements Serializable , TestListener { private static transient Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String CLEAR = "CookieManager.clearEachIteration" ; public static final String COOKIES = "CookieManager.cookies" ; private static SimpleDateFormat dateFormat = new SimpleDateFormat ( "EEEE,<seq2seq4repair_space>dd-MMM-yy<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>zzz" ) ; public CookieManager ( ) { } public CollectionProperty getCookies ( ) { } public int getCookieCount ( ) { } public boolean getClearEachIteration ( ) { } public void setClearEachIteration ( boolean clear ) { } public Cookie getCookie ( int row ) { } public void save ( String authFile ) throws IOException { } public void addFile ( String cookieFile ) throws IOException { File file = new File ( cookieFile ) ; if ( ! ( file . isAbsolute ( ) ) ) file = new File ( ( ( ( System . getProperty ( "user.dir" ) ) + ( File . separator ) ) + cookieFile ) ) ; BufferedReader reader = null ; if ( file . canRead ( ) ) { reader = new BufferedReader ( new FileReader ( file ) ) ; } else { throw new IOException ( "The<seq2seq4repair_space>file<seq2seq4repair_space>you<seq2seq4repair_space>specified<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>read." ) ; } String line ; while ( ( line = reader . readLine ( ) ) != null ) { try { if ( ( line . startsWith ( "#" ) ) || ( ( line . trim ( ) . length ( ) ) == 0 ) ) continue ; String [ ] st = split ( line , "\t" , "<seq2seq4repair_space>" ) ; int domain = 0 ; int path = 2 ; if ( st [ path ] . equals ( "<seq2seq4repair_space>" ) ) st [ path ] = "//" ; <START_BUG> boolean secure = new Boolean ( st [ 3 ] ) . booleanValue ( ) ; <END_BUG> long expires = new Long ( st [ 4 ] ) . longValue ( ) ; int name = 5 ; int value = 6 ; Cookie cookie = new Cookie ( st [ name ] , st [ value ] , st [ domain ] , st [ path ] , secure , expires ) ; getCookies ( ) . addItem ( cookie ) ; } catch ( Exception e ) { throw new IOException ( ( ( ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>cookie<seq2seq4repair_space>line\n\t\'" + line ) + "\'\n\t" ) + e ) ) ; } } reader . close ( ) ; } public void recoverRunningVersion ( ) { } public void setRunningVersion ( boolean running ) { } public void add ( Cookie c ) { } public void add ( ) { } public void clear ( ) { } public void remove ( int index ) { } public int size ( ) { } public Cookie get ( int i ) { } public String convertLongToDateFormatStr ( long dateLong ) { } public long convertDateFormatStrToLong ( String dateStr ) { } public String getCookieHeaderForURL ( URL url ) { } public void addCookieFromHeader ( String cookieHeader , URL url ) { } public void removeCookieNamed ( String name ) { } public String [ ] split ( String splittee , String splitChar , String def ) { } public String getClassLabel ( ) { } public void testStarted ( ) { } public void testEnded ( ) { } public void testStarted ( String host ) { } public void testEnded ( String host ) { } public void testIterationStart ( LoopIterationEvent event ) { } public static class Test extends TestCase { public Test ( String name ) { } public void testRemoveCookie ( ) throws Exception { } public void testSendCookie ( ) throws Exception { } public void testSendCookie2 ( ) throws Exception { } } }

Fix:
boolean secure = Boolean . valueOf ( st [ 3 ] ) . booleanValue ( ) ;