ARTEMIS-2767 Perf Improvement. Routing = null should still reuse context
This commit is contained in:
parent
d2cec4e920
commit
55582772f9
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue