Skip to content

Commit 692ce00

Browse files
committed
Fix BigDecimal/BigInteger break
1 parent de95123 commit 692ce00

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

runtime/runtime-core/api/runtime-core.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ public final class aws/smithy/kotlin/runtime/content/BigDecimal : java/lang/Numb
396396
public final fun floatValue ()F
397397
public final fun getExponent ()I
398398
public final fun getMantissa ()Laws/smithy/kotlin/runtime/content/BigInteger;
399+
public final fun getValue ()Ljava/lang/String;
399400
public fun hashCode ()I
400401
public final fun intValue ()I
401402
public final fun longValue ()J
@@ -421,6 +422,7 @@ public final class aws/smithy/kotlin/runtime/content/BigInteger : java/lang/Numb
421422
public final fun doubleValue ()D
422423
public fun equals (Ljava/lang/Object;)Z
423424
public final fun floatValue ()F
425+
public final fun getValue ()Ljava/lang/String;
424426
public fun hashCode ()I
425427
public final fun intValue ()I
426428
public final fun longValue ()J

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public actual class BigDecimal private constructor(private val delegate: JvmBigD
4545
public actual val exponent: Int
4646
get() = delegate.scale()
4747

48+
public val value: String = delegate.toString()
49+
4850
public actual operator fun plus(other: BigDecimal): BigDecimal =
4951
coalesceOrCreate(delegate + other.delegate, this, other)
5052

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public actual class BigInteger internal constructor(internal val delegate: JvmBi
3535
public actual override fun toDouble(): Double = delegate.toDouble()
3636
public actual override fun toString(): String = toString(10)
3737
public actual fun toString(radix: Int): String = delegate.toString(radix)
38+
public val value: String = delegate.toString()
3839

3940
public actual override fun hashCode(): Int = 17 + delegate.hashCode()
4041
public actual override fun equals(other: Any?): Boolean = other is BigInteger && delegate == other.delegate

0 commit comments

Comments
 (0)