You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stefan Bodewig <bo...@apache.org> on 2014/01/12 11:18:46 UTC

[compress] exclude _internal package from javadocs?

Compress holds a package that is public as an implementation detail but
whose API isn't meant for public consumption.  The javadocs of said
package state this in bold letters.[1]

Current trunk will even go further and hide the package from javadoc,
but the only class inside is still refered to by two stream classes that
inherit from it (ZCompressorInputStream and UnshrinkingInputStream).

I'm a bit torn on this and since I'll re-roll a new RC anyway I'd like
to see what others think about hiding internal packages.

Stefan

[1] http://people.apache.org/~bodewig/cc-1.7/apidocs/org/apache/commons/compress/compressors/z/_internal_/package-summary.html

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


Re: [compress] exclude _internal package from javadocs?

Posted by Stefan Bodewig <bo...@apache.org>.
On 2014-01-12, Stefan Bodewig wrote:

> I'm a bit torn on this and since I'll re-roll a new RC anyway I'd like
> to see what others think about hiding internal packages.

I've unhid it again and strengthened the "may change" warning as Sebb
suggested.  Making things explicit feels better to me.

Stefan

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


Re: [compress] exclude _internal package from javadocs?

Posted by Emmanuel Bourg <eb...@apache.org>.
+1 for hiding. If the internal classes were shaded from another artifact
they wouldn't appear in the Javadoc, so let's be consistent and hide
anything not meant for public usage.

Emmanuel Bourg


Le 12/01/2014 14:34, sebb a écrit :
> On 12 January 2014 10:18, Stefan Bodewig <bo...@apache.org> wrote:
> 
> I think it's better to keep the Javadoc, and be explicit about not
> using it, rather than hoping people won't use classes that don't
> happen to have Javadoc.
> It's not possible for a user to tell if the Javadoc is deliberately or
> accidentally missing [1].
> 
> In fact I would go a bit further and change the class Javadoc:
> 
> Base-class for traditional Unix ".Z" compression and the Unshrinking
> method of ZIP archive.
> 
> to add something like "Internal use only. May change or disappear
> without warning.".
> 
> 
> [1] Remember the manual pages which stated "This page is intentionally
> left blank"? Similar reasoning here.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 


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


Re: [compress] exclude _internal package from javadocs?

Posted by sebb <se...@gmail.com>.
On 12 January 2014 10:18, Stefan Bodewig <bo...@apache.org> wrote:
> Compress holds a package that is public as an implementation detail but
> whose API isn't meant for public consumption.  The javadocs of said
> package state this in bold letters.[1]
>
> Current trunk will even go further and hide the package from javadoc,
> but the only class inside is still refered to by two stream classes that
> inherit from it (ZCompressorInputStream and UnshrinkingInputStream).
>
> I'm a bit torn on this and since I'll re-roll a new RC anyway I'd like
> to see what others think about hiding internal packages.

I think it's better to keep the Javadoc, and be explicit about not
using it, rather than hoping people won't use classes that don't
happen to have Javadoc.
It's not possible for a user to tell if the Javadoc is deliberately or
accidentally missing [1].

In fact I would go a bit further and change the class Javadoc:

Base-class for traditional Unix ".Z" compression and the Unshrinking
method of ZIP archive.

to add something like "Internal use only. May change or disappear
without warning.".


[1] Remember the manual pages which stated "This page is intentionally
left blank"? Similar reasoning here.

> Stefan
>
> [1] http://people.apache.org/~bodewig/cc-1.7/apidocs/org/apache/commons/compress/compressors/z/_internal_/package-summary.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

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