diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/routing/RequestRouter.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/routing/RequestRouter.java index b58190109..d802bbce8 100644 --- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/routing/RequestRouter.java +++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/routing/RequestRouter.java @@ -81,13 +81,13 @@ public String toString() { } - static class SingleAuthorityResolver implements Function { + static final class SingleAuthorityResolver implements Function { private final URIAuthority singleAuthority; private final T router; SingleAuthorityResolver(final URIAuthority singleAuthority, final T router) { - this.singleAuthority = singleAuthority; + this.singleAuthority = Args.notNull(singleAuthority, "singleAuthority"); this.router = router; }