Skip to content

Commit 24c6028

Browse files
committed
Suppressed Animal Sniffer error on ULong.toString()
1 parent 0ec900b commit 24c6028

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

formats/json/commonMain/src/kotlinx/serialization/json/JsonElement.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public fun JsonPrimitive(value: UInt): JsonPrimitive = JsonPrimitive(value.toULo
9090
*
9191
* The value will be encoded as a JSON number.
9292
*/
93+
@SuppressAnimalSniffer // Long.toUnsignedString(long)
9394
@ExperimentalSerializationApi
9495
public fun JsonPrimitive(value: ULong): JsonPrimitive = JsonUnquotedLiteral(value.toString())
9596

0 commit comments

Comments
 (0)