Closed ullenius closed 2 years ago
Using try-with-resources with RandomAccessFile:
RandomAccessFile
close()
file.close()
finally
Using java.nio for file deletion:
java.nio
IOException
Coverage remained the same at 71.21% when pulling b010abe31cf5f9e75f4f9495a8b0b939ed99fcc0 on ullenius:test-refactor into 9fd933b305d735554b3aed9355bb0ca4a18925bf on mpatric:master.
Thanks @ullenius !
Using try-with-resources with
RandomAccessFile
:close()
method is calledfile.close()
was not in thefinally
block.Using
java.nio
for file deletion:IOException
upon failure.