Skip to content

Commit 3cd853a

Browse files
author
Szymon Rodziewicz
committed
Fix failing MiMa
1 parent 6ace38e commit 3cd853a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/scala/runtime/LazyVals.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package scala.runtime
22

3+
import scala.annotation.since
4+
35
/**
46
* Helper methods used in thread-safe lazy vals.
57
*/
@@ -106,6 +108,7 @@ object LazyVals {
106108
r
107109
}
108110

111+
@since("3.2")
109112
def getOffsetStatic(field: java.lang.reflect.Field) =
110113
val r = unsafe.objectFieldOffset(field)
111114
if (debug)

0 commit comments

Comments
 (0)