Remove catchall silents from prod code (#27432)

* WIP

* Remove catch all silent annocations from prod code
This commit is contained in:
Christopher Batey 2019-07-30 10:12:23 +01:00 committed by Arnout Engelen
parent e898197bdd
commit 89e269d5d8
110 changed files with 255 additions and 258 deletions

View file

@ -1336,9 +1336,9 @@ final class Replicator(settings: ReplicatorSettings) extends Actor with ActorLog
// possibility to disable Gossip for testing purpose
var fullStateGossipEnabled = true
@silent
@silent("deprecated")
val subscribers = new mutable.HashMap[KeyId, mutable.Set[ActorRef]] with mutable.MultiMap[KeyId, ActorRef]
@silent
@silent("deprecated")
val newSubscribers = new mutable.HashMap[KeyId, mutable.Set[ActorRef]] with mutable.MultiMap[KeyId, ActorRef]
var subscriptionKeys = Map.empty[KeyId, KeyR]

View file

@ -47,7 +47,7 @@ private object ReplicatedDataSerializer {
def getKey(entry: A): Any
final def compare(x: A, y: A): Int = compareKeys(getKey(x), getKey(y))
@silent
@silent("deprecated")
private final def compareKeys(t1: Any, t2: Any): Int = (t1, t2) match {
case (k1: String, k2: String) => k1.compareTo(k2)
case (_: String, _) => -1