diff --git a/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java b/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java index a9c8104f5..7d0bd7888 100644 --- a/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java +++ b/module-client/src/main/java/org/apache/http/impl/client/ClientParamsStack.java @@ -270,6 +270,24 @@ public class ClientParamsStack extends AbstractHttpParams { } + /** + * Does not remove a parameter. + * Parameter stacks are read-only. It is possible, though discouraged, + * to access and modify specific stack entries. + * Derived classes may change this behavior. + * + * @param name ignored + * + * @return nothing + * + * @throws UnsupportedOperationException always + */ + public boolean removeParameter(String name) { + throw new UnsupportedOperationException + ("Removing parameters in a stack is not supported."); + } + + /** * Does not copy parameters. * Parameter stacks are lightweight objects, expected to be instantiated