#vulnerable code 
                                InputStream createUnSortedInputStream() {
        try {
            return new ObjectInputStream(new BufferedInputStream(new FileInputStream(unsortedFile)));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                                OutputStream createUnsortedOutputStream() {
        try {
            return new BufferedOutputStream(new FileOutputStream(unsortedFile));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }