Replace construction of FileInputStream and FileOutputStream objects with Files NIO APIs.#221
Replace construction of FileInputStream and FileOutputStream objects with Files NIO APIs.#221garydgregory merged 1 commit intoapache:masterfrom arturobernalg:feature/newOutputStream
Conversation
|
@arturobernalg |
HI @garydgregory |
| throw new IOException("Cannot create file " + testFile + " as the parent directory does not exist"); | ||
| } | ||
| final BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(testFile)); | ||
| final BufferedOutputStream output = new BufferedOutputStream(Files.newOutputStream(testFile.toPath())); |
There was a problem hiding this comment.
In these test methods, you keep calling toPath() over and over, why not just call it once? IOW should testFile be testPath or have both?
…with Files NIO APIs.
|
I am unsure about this one. First of all, it changes way too many files, in my opinion. |
HI @jochenw |
Indeed, @jochenw do notice |
No description provided.