Repository navigation
Reduce usages of fwd/bwd flags in DefaultEdgeFilter constructor - #1381
Conversation
…method. Signed-off-by: ammagamma <[email protected]>
|
Should we replace the default constructor calls with |
| @@ -40,6 +40,18 @@ public DefaultEdgeFilter(FlagEncoder encoder, boolean bwd, boolean fwd) { | |||
| this.fwd = fwd; | |||
| } | |||
There was a problem hiding this comment.
Should we remove this or even all constructors? IMO the order bwd+fwd is unintuitive
There was a problem hiding this comment.
I removed the constructor that only takes a FlagEncoder and made the other one protected. We could make it private, too and instead add a getter for the flag encoder (this is currently needed for the PrepEdgeFilter in PrepareRoutingSubnetworks).
There was a problem hiding this comment.
Changed the order bwd+fwd too.
IMO yes, so we have no mixed constructor+factory usage. At least the bwd+fwd constructor
IMO this is fine - or maybe add a javadoc comment what it does? |
Signed-off-by: ammagamma <[email protected]>
Signed-off-by: ammagamma <[email protected]>
#1380
Replacing the constructor calls in other branches can be done quite easily using this regex search&replace in IntelliJ:
