#fixed code
                                public static void main(String[] args) throws Exception {
        BitSet bitSet = new BitSet(Integer.MAX_VALUE);//hashcode的值域

        String url = "http://baidu.com/a";
        int hashcode = url.hashCode() & 0x7FFFFFFF;
        bitSet.set(hashcode);

        System.out.println(bitSet.cardinality());//着色位的个数
        System.out.println(bitSet.get(hashcode));//检测存在性
        bitSet.clear(hashcode);//清除位数据
    }
#vulnerable code 
                                public static void main(String[] args) throws Exception {
        String path = "E:/btdata/bt_cumulation.txt";
        BufferedReader br = new BufferedReader(new FileReader(path));
        String line = null;
        br.readLine();

        PrintWriter pw = new PrintWriter("E:/btdata/bt_cumulation2.txt");
        int i = 0;
        while ((line = br.readLine()) != null) {
            //System.out.println("'" + line + "',");
            String[] ss = line.split(",");
            String pin = ss[1];
            pw.println(pin);
            if (i++ % 10 == 0) {
                pw.flush();
                System.out.println(i);
            }
        }

        br.close();
        pw.close();
    } 
                            #location 17 
                            #vulnerability type RESOURCE_LEAK