ARTEMIS-2767 Perf Improvement. Routing = null should still reuse context

This commit is contained in:
Clebert Suconic 2020-05-16 00:13:29 -04:00
parent d2cec4e920
commit 55582772f9
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ public final class RoutingContextImpl implements RoutingContext {
@Override @Override
public RoutingContext setRoutingType(RoutingType routingType) { public RoutingContext setRoutingType(RoutingType routingType) {
if (this.routingType == null || this.routingType != routingType) { if (this.routingType == null && routingType != null || this.routingType != routingType) {
this.clear(); this.clear();
} }
this.routingType = routingType; this.routingType = routingType;