diplomacy: silence a warning (#560)
This commit is contained in:
parent
45d016a76f
commit
027d6247b6
@ -32,7 +32,7 @@ abstract class LazyModule()(implicit val p: Parameters)
|
||||
} else if (classOf[Seq[LazyModule]].isAssignableFrom(m.getReturnType)) {
|
||||
val obj = m.invoke(this)
|
||||
if (obj eq null) Seq() else {
|
||||
val seq = try { obj.asInstanceOf[Seq[Object]] } catch { case _ => null }
|
||||
val seq = try { obj.asInstanceOf[Seq[Object]] } catch { case _: Throwable => null }
|
||||
if (seq eq null) Seq() else {
|
||||
seq.zipWithIndex.map { case (l, i) => (m.getName + "_" + i, l) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user