I got bug says " OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE"

Here is my code :

/**
     * Copies the contents of the  input file to the output file.
     */
    public static void copy(File in, File out) throws IOException {
        FileInputStream inStream = new FileInputStream(in);
        FileOutputStream outStream = new FileOutputStream(out);
        try {
            copy(inStream, outStream);
        } finally {
            try {
                outStream.flush();
                outStream.close();
                inStream.close();.
            } catch (Exception e) {
                log.error("Failed to close stream");
            }
        }
    }

Here i have closed stream within final block. How can i modify this code to avoid above mentioned error?