Skip to content

Commit 1f8de2e

Browse files
committed
chore: comment on why we are using null
1 parent 62ea280 commit 1f8de2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io/jvm/src/main/scala/fs2/io/ioplatform.scala

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ private[fs2] trait ioplatform extends iojvmnative {
146146
}
147147
}
148148

149+
// Using null instead of Option because null check is faster
149150
private lazy val vtExecutor: ExecutionContext = {
150151
val javaVersion: Int =
151152
System.getProperty("java.version").stripPrefix("1.").takeWhile(_.isDigit).toInt

0 commit comments

Comments
 (0)