XenoAmess commented on a change in pull request #228:
URL: https://github.com/apache/commons-vfs/pull/228#discussion_r773360784



##########
File path: 
commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorOutputStream.java
##########
@@ -121,7 +121,9 @@ public void close() throws IOException {
      */
     @Override
     public synchronized void flush() throws IOException {
-        assertOpen();

Review comment:
       I think it can be fixed this way because:
   
   1. we will invoke **flush** when **close**.
   
   2. after invoke **close**, every operations that will try to add something 
to the buffer would cause a  FileSystemException
   
   3. then if invoke **flush** after close, there shouold actually nothing to 
flush




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to