Skip to content

Commit

Permalink
diplomacy: mark some identity flags as final
Browse files Browse the repository at this point in the history
  • Loading branch information
hcook committed Jul 29, 2020
1 parent 55d9af0 commit bc63143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/diplomacy/Nodes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class IdentityNode[D, U, EO, EI, B <: Data](imp: NodeImp[D, U, EO, EI, B])()(imp
extends AdapterNode(imp)({ s => s }, { s => s })
{
override def description = "identity"
override def identity = true
override final def identity = true
override protected[diplomacy] def instantiate() = {
val dangles = super.instantiate()
(out zip in) map { case ((o, _), (i, _)) => o <> i }
Expand All @@ -599,7 +599,7 @@ class EphemeralNode[D, U, EO, EI, B <: Data](imp: NodeImp[D, U, EO, EI, B])()(im
extends AdapterNode(imp)({ s => s }, { s => s })
{
override def description = "ephemeral"
override def identity = true
override final def identity = true
override def omitGraphML = true
override def oForward(x: Int) = Some(iDirectPorts(x) match { case (i, n, _, _) => (i, n) })
override def iForward(x: Int) = Some(oDirectPorts(x) match { case (i, n, _, _) => (i, n) })
Expand Down

0 comments on commit bc63143

Please sign in to comment.