File tree Expand file tree Collapse file tree 4 files changed +34
-29
lines changed Expand file tree Collapse file tree 4 files changed +34
-29
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,19 @@ internal expect fun String.asUtf8ToByteArray(): ByteArray
2626/* *
2727 * Signals about a general issue occurred during I/O operation.
2828 */
29- public expect open class IOException ( message : String? , cause : Throwable ? ) : Exception {
29+ public expect open class IOException : Exception {
3030 public constructor ()
3131 public constructor (message: String? )
3232 public constructor (cause: Throwable ? )
33+ public constructor (message: String? , cause: Throwable ? )
3334}
3435
3536/* *
3637 * Signals that the end of the file or stream was reached unexpectedly during an input operation.
3738 */
38- public expect open class EOFException ( message : String? ) : IOException {
39+ public expect open class EOFException : IOException {
3940 public constructor ()
41+ public constructor (message: String? )
4042}
4143
4244
Original file line number Diff line number Diff line change @@ -9,19 +9,20 @@ import kotlinx.io.internal.commonAsUtf8ToByteArray
99
1010internal actual fun String.asUtf8ToByteArray (): ByteArray = commonAsUtf8ToByteArray()
1111
12- public actual open class IOException actual constructor(
13- message : String? ,
14- cause : Throwable ?
15- ) : Exception(message, cause) {
16- public actual constructor (message: String? ) : this (message, null )
12+ public actual open class IOException : Exception {
13+ public actual constructor () : super ()
1714
18- public actual constructor (cause : Throwable ? ) : this ( null , cause )
15+ public actual constructor (message : String ? ) : super (message )
1916
20- public actual constructor () : this (null , null )
17+ public actual constructor (cause: Throwable ? ) : super (cause)
18+
19+ public actual constructor (message: String? , cause: Throwable ? ) : super (message, cause)
2120}
2221
23- public actual open class EOFException actual constructor(message : String? ) : IOException(message) {
24- public actual constructor () : this (null )
22+ public actual open class EOFException : IOException {
23+ public actual constructor () : super ()
24+
25+ public actual constructor (message: String? ) : super (message)
2526}
2627
2728@Suppress(" ACTUAL_WITHOUT_EXPECT" )
Original file line number Diff line number Diff line change @@ -24,17 +24,18 @@ import kotlinx.io.internal.commonAsUtf8ToByteArray
2424
2525internal actual fun String.asUtf8ToByteArray (): ByteArray = commonAsUtf8ToByteArray()
2626
27- public actual open class IOException actual constructor(
28- message : String? ,
29- cause : Throwable ?
30- ) : Exception(message, cause) {
31- public actual constructor (message: String? ) : this (message, null )
27+ public actual open class IOException : Exception {
28+ public actual constructor () : super ()
3229
33- public actual constructor (cause : Throwable ? ) : this ( null , cause )
30+ public actual constructor (message : String ? ) : super (message )
3431
35- public actual constructor () : this (null , null )
32+ public actual constructor (cause: Throwable ? ) : super (cause)
33+
34+ public actual constructor (message: String? , cause: Throwable ? ) : super (message, cause)
3635}
3736
38- public actual open class EOFException actual constructor(message : String? ) : IOException(message) {
39- public actual constructor () : this (null )
37+ public actual open class EOFException : IOException {
38+ public actual constructor () : super ()
39+
40+ public actual constructor (message: String? ) : super (message)
4041}
Original file line number Diff line number Diff line change @@ -9,17 +9,18 @@ import kotlinx.io.internal.commonAsUtf8ToByteArray
99
1010internal actual fun String.asUtf8ToByteArray (): ByteArray = commonAsUtf8ToByteArray()
1111
12- public actual open class IOException actual constructor(
13- message : String? ,
14- cause : Throwable ?
15- ) : Exception(message, cause) {
16- public actual constructor (message: String? ) : this (message, null )
12+ public actual open class IOException : Exception {
13+ public actual constructor () : super ()
1714
18- public actual constructor (cause : Throwable ? ) : this ( null , cause )
15+ public actual constructor (message : String ? ) : super (message )
1916
20- public actual constructor () : this (null , null )
17+ public actual constructor (cause: Throwable ? ) : super (cause)
18+
19+ public actual constructor (message: String? , cause: Throwable ? ) : super (message, cause)
2120}
2221
23- public actual open class EOFException actual constructor(message : String? ) : IOException(message) {
24- public actual constructor () : this (null )
22+ public actual open class EOFException : IOException {
23+ public actual constructor () : super ()
24+
25+ public actual constructor (message: String? ) : super (message)
2526}
You can’t perform that action at this time.
0 commit comments