#fixed code
                                public static void main(String[] args) throws IOException, InterruptedException {
        IntData performanceData = new IntData();
        for (int i=0; i<10; i++) {
            long start = System.currentTimeMillis();
            DataReader dataReader = new DataReaderFactory().getDataReader(new FileInputStream(args[0]));
            dataReader.read();
            performanceData.add((int)(System.currentTimeMillis() - start));
        }
        
        printIntData(args[0], performanceData);
    }
#vulnerable code 
                                public static void main(String[] args) throws IOException, InterruptedException {
        IntData performanceData = new IntData();
        for (int i=0; i<50; i++) {
            long start = System.currentTimeMillis();
            DataReader dataReader = new DataReaderSun1_6_0(new FileInputStream(args[0]));
            dataReader.read();
            performanceData.add((int)(System.currentTimeMillis() - start));
        }
        
        printIntData(args[0], performanceData);
    } 
                            #location 5 
                            #vulnerability type RESOURCE_LEAK