]> source.dussan.org Git - jgit.git/commit
Transport: Implement AutoCloseable 05/64605/4
authorShawn Pearce <spearce@spearce.org>
Tue, 19 Jan 2016 21:08:38 +0000 (13:08 -0800)
committerShawn Pearce <spearce@spearce.org>
Tue, 19 Jan 2016 22:27:11 +0000 (14:27 -0800)
commit6b662af76ef66cd75502ace714302d3a36129ed1
treed6cf409098b24da1108b569a2dcccfd3ee418199
parenteadfcd3ec166c55c1ff3f3fe0b5e97dd94ff8d83
Transport: Implement AutoCloseable

After creating a Transport instance callers should always call
its close() method. Use AutoCloseable to document this idiom
and allow use of try-with-resources.

Change-Id: I0c6ff3e39ebecdd7a028dbcae1856a818937b186
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/DumbClientDumbServerTest.java
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/AtomicPushTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/BundleWriterTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TransportTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Connection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java