The abstract parent class for archive output streams has the method

putArchiveEntry(ArchiveEntry)

but all the implementations - apart from Ar - also define the specific method

putNextEntry(xxxArchiveEntry) where xxx = Zip, Jar, etc.

Do we really need the latter method?
Would it not just be simpler to keep the generic method and throw an
Exception (e.g. ClassCast or IllegalParameter) if the wrong type of
ArchiveEntry was provided?

If the method is needed, then it ought to be documented in the abstract class.

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

Reply via email to