hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Odd comment for deprecated consumeContent() method
Date Tue, 21 Sep 2010 22:23:15 GMT
The comments added for the @deprecated tags in

r932551 - Deprecated HttpEntity#consumeContent in favor of a more
standard InputStream#close contract

do not seem to make sense.

For example, in BasicHttpEntry:

     * @deprecated see {@link #getContent()} and {@link #writeTo(OutputStream)}
    public void consumeContent() throws IOException {

Should the comment refer to close() instead? i.e. the user should call
close() on the getContent() response?

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message