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

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun May 10 16:00:04 UTC 2015


#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


More information about the tor-bugs mailing list