File tree Expand file tree Collapse file tree
core/src/main/scala/io/bullet/borer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99package io .bullet .borer
1010
11- import java .nio .charset .StandardCharsets
12- import io .bullet .borer .internal .{ElementDeque , Parser , Receptacle , Util }
11+ import io .bullet .borer .internal .*
1312import io .bullet .borer .json .JsonParser
1413
14+ import java .nio .charset .StandardCharsets
1515import scala .annotation .tailrec
1616import scala .collection .{mutable , Factory }
1717
@@ -25,7 +25,7 @@ final class InputReader[Config <: Reader.Config](
2525 config : Config ,
2626 val target : Target ):
2727
28- import io .bullet .borer .{ DataItem => DI }
28+ import io .bullet .borer .DataItem as DI
2929
3030 private [this ] val configReadIntegersAlsoAsFloatingPoint = config.readIntegersAlsoAsFloatingPoint
3131 private [this ] val configReadDoubleAlsoAsFloat = config.readDoubleAlsoAsFloat
@@ -161,7 +161,7 @@ final class InputReader[Config <: Reader.Config](
161161 def longCompare (value : Long ): Int =
162162 if (hasLong)
163163 val long = if (hasInt) receptacle.intValue.toLong else receptacle.longValue
164- math.signum (long - value).toInt
164+ java.lang. Long .compare (long, value)
165165 else Int .MaxValue
166166
167167 def tryReadLongCompare (value : Long ): Int =
You can’t perform that action at this time.
0 commit comments