[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #15654 [Onionoo]: proper closing of BufferedWriter in LockFile.java



#15654: proper closing of BufferedWriter in LockFile.java
-----------------------------+-----------------
     Reporter:  firebrand    |      Owner:
         Type:  enhancement  |     Status:  new
     Priority:  trivial      |  Milestone:
    Component:  Onionoo      |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+-----------------

Comment (by firebrand):

 Updated the patch to not contain nested try blocks anymore. I took the
 first two statements out of the existing try block as they cannot throw an
 IOException anyways. I put them into their own block as they might throw a
 SecurityException if the location for the lock file is not readable or
 writable.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15654#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs