Skip to content

Commit

Permalink
=act Add @nowarn for unsafe deprecated usage.
Browse files Browse the repository at this point in the history
Signed-off-by: He-Pin <[email protected]>
  • Loading branch information
He-Pin committed Jun 26, 2023
1 parent fa4d0d6 commit 4ce1095
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ import java.io.Closeable
import java.util.concurrent.ThreadFactory
import java.util.concurrent.atomic.{ AtomicLong, AtomicReference }

import scala.annotation.tailrec
import scala.annotation.{ nowarn, tailrec }
import scala.collection.immutable
import scala.concurrent.{ Await, ExecutionContext, Future, Promise }
import scala.concurrent.duration._
import scala.util.control.NonFatal

import com.typesafe.config.Config

import org.apache.pekko
import pekko.dispatch.AbstractNodeQueue
import pekko.event.LoggingAdapter
Expand Down Expand Up @@ -347,6 +346,7 @@ class LightArrayRevolverScheduler(config: Config, log: LoggingAdapter, threadFac
}

object LightArrayRevolverScheduler {
@nowarn("msg=deprecated")
private[this] val taskOffset = unsafe.objectFieldOffset(classOf[TaskHolder].getDeclaredField("task"))

private class TaskQueue extends AbstractNodeQueue[TaskHolder]
Expand Down

0 comments on commit 4ce1095

Please sign in to comment.