Skip to content

Commit e1fd290

Browse files
committed
ktlint
1 parent 58bbe52 commit e1fd290

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

runtime/protocol/smithy-rpcv2-protocols/common/src/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ public object RpcV2CborSmithyProtocolResponseHeaderInterceptor : HttpInterceptor
2121
throw ClientException("Expected `smithy-protocol` response header `rpc-v2-cbor`, got `$smithyProtocolHeader`")
2222
}
2323
}
24-
}
24+
}

runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ internal fun getMockClient(response: ByteArray, responseHeaders: Headers = Heade
5454

5555
internal val RESPONSE = "abc".repeat(1024).encodeToByteArray()
5656

57-
58-
class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest {
57+
class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest {
5958
@Test
6059
fun testThrowsOnMissingHeader() = runTest {
6160
val req = HttpRequestBuilder()
@@ -84,4 +83,4 @@ class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest {
8483
val client = getMockClient(response = RESPONSE, responseHeaders)
8584
op.roundTrip(client, Unit)
8685
}
87-
}
86+
}

runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class BigIntegerTest {
3030
"0" to ("-1" to "1"),
3131
"1" to ("-1" to "2"),
3232
"340282366920938463463374607431768211456" to ("340282366920938463463374607431768211446" to "10"),
33-
"-32134902384590238490284023839028330923830129830129301234239834982" to ("-42134902384590238490284023839028330923830129830129301234239834982" to "10000000000000000000000000000000000000000000000000000000000000000")
33+
"-32134902384590238490284023839028330923830129830129301234239834982" to ("-42134902384590238490284023839028330923830129830129301234239834982" to "10000000000000000000000000000000000000000000000000000000000000000"),
3434
)
3535

3636
tests.forEach { (expected, actualPair) ->
@@ -48,7 +48,7 @@ class BigIntegerTest {
4848
"-2" to ("-1" to "1"),
4949
"-3" to ("-1" to "2"),
5050
"340282366920938463463374607431768211436" to ("340282366920938463463374607431768211446" to "10"),
51-
"-52134902384590238490284023839028330923830129830129301234239834982" to ("-42134902384590238490284023839028330923830129830129301234239834982" to "10000000000000000000000000000000000000000000000000000000000000000")
51+
"-52134902384590238490284023839028330923830129830129301234239834982" to ("-42134902384590238490284023839028330923830129830129301234239834982" to "10000000000000000000000000000000000000000000000000000000000000000"),
5252
)
5353

5454
tests.forEach { (expected, actualPair) ->
@@ -70,7 +70,7 @@ class BigIntegerTest {
7070
"0x7fffffff" to "2147483647",
7171
"0x123456789abcdef0" to "1311768467463790320",
7272
"0x00ffffffffffffffffffffffffffffffec" to "340282366920938463463374607431768211436",
73-
"0x81445edf51ddc07216da5621c727bfd379d400f3da08018d45749a" to "-52134902384590238490284023839028330923830129830129301234239834982"
73+
"0x81445edf51ddc07216da5621c727bfd379d400f3da08018d45749a" to "-52134902384590238490284023839028330923830129830129301234239834982",
7474

7575
)
7676

runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/content/BigIntegerJVM.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public actual class BigInteger actual constructor(public val value: String) : Nu
2020
public actual override fun equals(other: Any?): Boolean = other is BigInteger && value == other.value
2121

2222
public actual operator fun plus(other: BigInteger): BigInteger = BigInteger((delegate + other.delegate).toString())
23-
public actual operator fun minus(other: BigInteger): BigInteger = BigInteger((delegate - other.delegate).toString())
23+
public actual operator fun minus(other: BigInteger): BigInteger = BigInteger((delegate - other.delegate).toString())
2424
public actual fun toByteArray(): ByteArray = delegate.toByteArray()
2525
}

runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/content/BigIntegerNative.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package aws.smithy.kotlin.runtime.content
66

77
public actual class BigInteger actual constructor(value: String) : Number() {
8-
public actual constructor(bytes: ByteArray): this("Not yet implemented")
8+
public actual constructor(bytes: ByteArray) : this("Not yet implemented")
99

1010
actual override fun toByte(): Byte {
1111
TODO("Not yet implemented")

runtime/smithy-test/common/src/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import aws.smithy.kotlin.runtime.http.readAll
1212
import aws.smithy.kotlin.runtime.http.request.HttpRequest
1313
import aws.smithy.kotlin.runtime.httptest.TestEngine
1414
import aws.smithy.kotlin.runtime.text.encoding.encodeBase64
15-
import kotlinx.coroutines.runBlocking
1615
import kotlinx.coroutines.test.TestResult
1716
import kotlinx.coroutines.test.runTest
1817
import kotlin.test.assertEquals

0 commit comments

Comments
 (0)