File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
increase-java-core/src/main/kotlin/com/increase/api/core/http Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,7 @@ interface HttpClient : AutoCloseable {
1919 request : HttpRequest ,
2020 requestOptions : RequestOptions = RequestOptions .none(),
2121 ): CompletableFuture <HttpResponse >
22+
23+ /* * Overridden from [AutoCloseable] to not have a checked exception in its signature. */
24+ override fun close ()
2225}
Original file line number Diff line number Diff line change 11package com.increase.api.core.http
22
3- import java.io.IOException
43import java.io.OutputStream
54import java.lang.AutoCloseable
65
76interface HttpRequestBody : AutoCloseable {
87
9- @Throws( IOException :: class ) fun writeTo (outputStream : OutputStream )
8+ fun writeTo (outputStream : OutputStream )
109
1110 fun contentType (): String?
1211
@@ -21,5 +20,6 @@ interface HttpRequestBody : AutoCloseable {
2120 */
2221 fun repeatable (): Boolean
2322
23+ /* * Overridden from [AutoCloseable] to not have a checked exception in its signature. */
2424 override fun close ()
2525}
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ interface HttpResponse : AutoCloseable {
1111
1212 fun body (): InputStream
1313
14+ /* * Overridden from [AutoCloseable] to not have a checked exception in its signature. */
15+ override fun close ()
16+
1417 interface Handler <T > {
1518
1619 fun handle (response : HttpResponse ): T
You can’t perform that action at this time.
0 commit comments