[tor-bugs] #16626 [Onionoo]: Improved resource handling using try-with-resources

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jul 21 07:30:10 UTC 2015


#16626: Improved resource handling using try-with-resources
-------------------------+---------------------
 Reporter:  firebrand    |          Owner:
     Type:  enhancement  |         Status:  new
 Priority:  minor        |      Milestone:
Component:  Onionoo      |        Version:
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
-------------------------+---------------------
 There are many places in the onionoo-code where file and stream handles
 are not correctly closed within finally blocks. This patch reworks these
 places to use Java 7's new try-with-resources functionality.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16626>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list