Optimized combiner logic
We only need to combine grouped entries that have more than one request handler.
related to
@@ -63,9 +63,11 @@ class DefaultRequestHandlerCombiner implements RequestHandlerCombiner {
List<RequestHandler> handlers = groupByEquality.get(path);
RequestHandler toCombine = path.get();
+ if (handlers.size() > 1) {
for (RequestHandler each : handlers) {
toCombine = combine(toCombine, each);
}
+ }
combined.add(toCombine);
}
return combined;
