File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/scala/runtime Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ import scala.annotation.nowarn
1919
2020private [runtime] object ModuleSerializationProxy {
2121 private val instances = new ClassValueCompat [Object ] {
22- @ deprecated( " " , " " ) // because AccessController is deprecated on JDK 17
22+ @ nowarn( " cat=deprecation " ) // AccessController is deprecated on JDK 17
2323 def getModule (cls : Class [_]): Object =
2424 java.security.AccessController .doPrivileged(
2525 (() => cls.getField(" MODULE$" ).get(null )): PrivilegedExceptionAction [Object ])
2626 override protected def computeValue (cls : Class [_]): Object =
27- try getModule(cls): @ nowarn( " cat=deprecation " )
27+ try getModule(cls)
2828 catch {
2929 case e : PrivilegedActionException =>
3030 rethrowRuntime(e.getCause)
You can’t perform that action at this time.
0 commit comments