Scala 3 cross compatible akka-actor / akka-testkit / akka-actor-tests (#29956)

* Remove @switch when it doesn't take effect
* Use ActorRef.noSender
* Minor tweaks to SchedulerSpec
* Disambiguate TypedActor for Scala 3
* Bump ScalaTest to a version compatible with Scala 3
* Bump ScalaCheck
* Disambiguate Event in SupervisorHierarchySpec
* Scala 3 compatible EventBusSpec
* Prevent private unused variables to be erased by Scala 3
* Bump mockito
* Explicit actorRef2Scala import
* restore original .scalafix.conf
* Scala 3 compatible tailrec
* Reminder to re add switch annotation in case
* Move to nowarn instead of silencer
* Bump to Scala 2.12.13
* Cross compatible annotations
* fix docs generation
* adapt the build for Scala 3
* fix errors but bus
* remove more SerialVersion from trait
* scalacheck only from scalatest
* cross-compile akka-actor-tests
* restore cross-compilation
* early initializers workaround
* scalacheck switch
* cross compatible FSM.State class
* cross compatible LARS spec
* Change results to pass LineNumberSpec
* fix stackoverflow in AsyncDnsResolverIntegrationSpec
* FSM.State unapply
* fix Scala 2.13 mima
* SerialVersionRemover compiler plugin
* removed unused nowarns
This commit is contained in:
Andrea Peruffo 2021-02-01 15:38:29 +00:00 committed by GitHub
parent 0f27ed6189
commit da70e0ccd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
370 changed files with 4058 additions and 1373 deletions

View file

@ -13,7 +13,7 @@ import scala.compat.java8.FutureConverters._
import scala.concurrent.duration.FiniteDuration
import scala.reflect.ClassTag
import com.github.ghik.silencer.silent
import scala.annotation.nowarn
import akka.NotUsed
import akka.event.{ LogMarker, LoggingAdapter, MarkerLoggingAdapter }
@ -686,7 +686,7 @@ class SubSource[Out, Mat](
* `n` must be positive, and `d` must be greater than 0 seconds, otherwise
* IllegalArgumentException is thrown.
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def groupedWithin(n: Int, d: java.time.Duration): SubSource[java.util.List[Out @uncheckedVariance], Mat] =
groupedWithin(n, d.asScala)
@ -734,7 +734,7 @@ class SubSource[Out, Mat](
* `maxWeight` must be positive, and `d` must be greater than 0 seconds, otherwise
* IllegalArgumentException is thrown.
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def groupedWeightedWithin(
maxWeight: Long,
costFn: function.Function[Out, java.lang.Long],
@ -783,7 +783,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def dropWithin(d: java.time.Duration): SubSource[Out, Mat] =
dropWithin(d.asScala)
@ -900,7 +900,7 @@ class SubSource[Out, Mat](
* @param of time to shift all messages
* @param strategy Strategy that is used when incoming elements cannot fit inside the buffer
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def delay(of: java.time.Duration, strategy: DelayOverflowStrategy): SubSource[Out, Mat] =
delay(of.asScala, strategy)
@ -1110,7 +1110,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels or timer fires
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def takeWithin(d: java.time.Duration): SubSource[Out, Mat] =
takeWithin(d.asScala)
@ -1786,7 +1786,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def initialTimeout(timeout: java.time.Duration): SubSource[Out, Mat] =
initialTimeout(timeout.asScala)
@ -1819,7 +1819,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def completionTimeout(timeout: java.time.Duration): SubSource[Out, Mat] =
completionTimeout(timeout.asScala)
@ -1854,7 +1854,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def idleTimeout(timeout: java.time.Duration): SubSource[Out, Mat] =
idleTimeout(timeout.asScala)
@ -1889,7 +1889,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def backpressureTimeout(timeout: java.time.Duration): SubSource[Out, Mat] =
backpressureTimeout(timeout.asScala)
@ -1932,7 +1932,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def keepAlive(maxIdle: java.time.Duration, injectedElem: function.Creator[Out]): SubSource[Out, Mat] =
keepAlive(maxIdle.asScala, injectedElem)
@ -2296,7 +2296,7 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@silent("deprecated")
@nowarn("msg=deprecated")
def initialDelay(delay: java.time.Duration): SubSource[Out, Mat] =
initialDelay(delay.asScala)