8133223: Clean up package handling code in JavadocTool

Reviewed-by: ksrini
2 files changed