Javadoc comments can be written in Markdown using /// line comments, instead of HTML tags inside /** */.
The problem it solved
Documentation required HTML — <p>, <ul>, <code> and escaped entities — which made comments harder to read in source than the code they described.
How you did it before
HTML inside /** */ blocks, with < and & escaped by hand and {@code} for anything containing generics.
Asked as
- Why did Javadoc use HTML in the first place?
- Can you mix Markdown and HTML in a doc comment?