I got bug says " OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE"
Here is my code :
/** * Copies the contents of the input file to the output file. */publicstaticvoidcopy(Filein,Fileout)throwsIOException{FileInputStreaminStream=newFileInputStream(in);FileOutputStreamoutStream=newFileOutputStream(out);try{copy(inStream,outStream);}finally{try{outStream.flush();outStream.close();inStream.close();.}catch(Exceptione){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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got bug says " OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE"
Here is my code :
Here i have closed stream within final block. How can i modify this code to avoid above mentioned error?