Fix compiler warnings in akka-remote, akka-actor-typed. (#26139)

Fix compiler warnings in akka-remote, akka-actor-typed. (#26139)
This commit is contained in:
Helena Edelson 2018-12-20 09:10:54 -08:00 committed by GitHub
parent 15e2527629
commit 408fab3313
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 144 additions and 151 deletions

View file

@ -4,12 +4,13 @@
package akka.remote.artery
import akka.actor.{ ActorRef, ExtendedActorSystem }
import akka.event.{ Logging, LoggingAdapter }
import akka.util.OptionVal
import java.nio.ByteBuffer
import scala.annotation.tailrec
import scala.util.control.NonFatal
import akka.actor.{ ActorRef, ExtendedActorSystem }
import akka.event.{ Logging, LoggingAdapter }
import akka.util.{ OptionVal, unused }
/**
* INTERNAL API
@ -287,7 +288,7 @@ private[remote] object RemoteInstruments {
def getKey(kl: Int): Byte = (kl >>> 26).toByte
def getLength(kl: Int): Int = kl & lengthMask
def create(system: ExtendedActorSystem, log: LoggingAdapter): Vector[RemoteInstrument] = {
def create(system: ExtendedActorSystem, @unused log: LoggingAdapter): Vector[RemoteInstrument] = {
val c = system.settings.config
val path = "akka.remote.artery.advanced.instruments"
import scala.collection.JavaConverters._