The JDK Java docs for Java < 10 have a section called "Methods inherited from" which lists methods which are declared in the parent class / interface. However starting with Java 10 this section is called "Methods declared in".
For comparison:
Is there a difference between them or is this only a change of the section name?
In Java 10 the option --override-methods (detail|summary)
, was added to the javadoc
command:
The intention was to reduce the noise when methods are implemented or overridden, but the documentation remained unchanged.
detail
mode (default)The detail
mode is the default when you use javadoc
without specifying override-methods
.
It behaves the way the documentation has been generated before:
summary
modeThe summary
mode is now used to generate the JDK documentation (JDK-8189706).
Be aware that this mode is currently bugged because it ignores some changes to the method signature which should be documented, see JDK-8223607.
You will either see a "Methods inherited from" or a "Methods declared in" section.
When comparing two documentations (one with "inherited from", the other with "declared in") for the same class, then the one with "inherited from" might list more methods under "Method Detail", while for the "declared in" one, some methods are instead in the "declared in" section.
So yes, there is a difference between them.
The difference in behavior can be seen for example for the java.time.temporal.ChronoUnit
class: