Fix JavaDoc build warnings

Fixes issues #181 and #182.