This project provides the code samples for the CodeFX blog post about the new Javadoc tags @apiNote, @implSpec and @implNote, which are first used in Java 8.
This includes:
- an interface
Lotterywhich uses them - implementing classes which show how to inherit the tags:
OldLotterydoes not implement the default method ~> the method has no documentation block in the class commentPrivateLotteryprovides no Javadoc for its implementation ~> the documentation from the default method is copied (and a remark added) without the new tagsStateLotteryuses{@inheritDoc}~> inherits the documentation without the new tagsUselessLotteryuses, e.g.,@apiNote {@inheritDoc}~> inherits those specific tags
- the
pom.xmlneeded to let Maven parameterize Javadoc so that it process the tags - the created Javadoc to make things a little easier for the Maven averse