Skip to content

Commit 89cf0b7

Browse files
chore(client): remove checked exception related code (#236)
Checked exceptions aren't checked in Kotlin anyway.
1 parent fec7641 commit 89cf0b7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

onebusaway-sdk-kotlin-core/src/main/kotlin/org/onebusaway/core/http/HttpRequestBody.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package org.onebusaway.core.http
22

3-
import java.io.IOException
43
import java.io.OutputStream
54
import java.lang.AutoCloseable
65

76
interface HttpRequestBody : AutoCloseable {
87

9-
@Throws(IOException::class) fun writeTo(outputStream: OutputStream)
8+
fun writeTo(outputStream: OutputStream)
109

1110
fun contentType(): String?
1211

@@ -20,6 +19,4 @@ interface HttpRequestBody : AutoCloseable {
2019
* streamed. In this case the body data isn't available on subsequent attempts.
2120
*/
2221
fun repeatable(): Boolean
23-
24-
override fun close()
2522
}

0 commit comments

Comments
 (0)