Details
Description
Instead of
public RouteContext popRouteContext() { try { return routeContextStack.pop(); } catch (NoSuchElementException e) { // ignore and return null } return null; }
can just write
public RouteContext popRouteContext() { return routeContextStack.pollFirst(); }
I understand the cost of an exception is low, but still it doesn't look nice to see zillions of exceptions in a flight recording caused by Camel.