Skip to content

Commit fc624b7

Browse files
committed
Move FIXME comment
1 parent 705cdb8 commit fc624b7

File tree

1 file changed

+2
-2
lines changed
  • json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/util

1 file changed

+2
-2
lines changed

json-schema-validator/src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/util/NumberParts.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ private const val TEN: Double = 10.0
2424
/**
2525
* This function should be used only if you are certain that the [element] is a number
2626
*/
27+
@Suppress("detekt:ForbiddenComment")
28+
// FIXME: if we add support for formats other then JSON we should handle +Inf, -Inf and NaN values correctly
2729
internal fun numberParts(element: PrimitiveElement): NumberParts {
28-
@Suppress("detekt:ForbiddenComment")
2930
if (element.content.run { contains(E_SMALL_CHAR) || contains(E_BIG_CHAR) }) {
30-
// FIXME: if we add support for YAML then we should handle +Inf and -Inf values correctly
3131
val number = requireNotNull(element.number) { "element '${element.content}' is not a number" }
3232
return number.toDouble().run {
3333
var precision = 0

0 commit comments

Comments
 (0)