We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb745b commit 20f0bbdCopy full SHA for 20f0bbd
library/src/scala/runtime/LazyVals.scala
@@ -10,7 +10,7 @@ import scala.annotation.*
10
*/
11
object LazyVals {
12
@nowarn
13
- private val unsafe: sun.misc.Unsafe = {
+ private val unsafe: sun.misc.Unsafe^ = { // do not let unsafe leak
14
def throwInitializationException() =
15
throw new ExceptionInInitializerError(
16
new IllegalStateException("Can't find instance of sun.misc.Unsafe")
0 commit comments