Menu

#23 No warnings printed for missing JD on implicit constructor

open
nobody
None
5
2004-07-08
2004-07-08
Jesse Glick
No

With this file:

/**
* This is a class which does something.
*/
public class Foo {
}

doctorj --warning 1 Foo.java

prints nothing. Yet the semantically interchangeable file

/**
* This is a class which does something.
*/
public class Foo {
public Foo() {}
}

produces the warning

Foo.java:5:12:5:14: Undocumented public constructor

Note that Javadoc produces an entry for the constructor
in both cases, so if it has no comment it is really an
omission.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB