-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apidoc error/warning fix (#2) #5561
Conversation
restarted build with javadoc label, otherwise it won't build the javadoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only took a quick look though it so far
*/ | ||
protected abstract Object[] getParameters(); | ||
|
||
/** | ||
* Factory method returns a new instance of a testcases. | ||
* Overrides the basic method so that it's needless any more. | ||
* @return test case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i gotta say I hate this kind of doc :)
This isn't adding any information it is just auto generated noise. Is there no way to turn off the warnings for things like this? This doesn't actually make the doc any better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how to be more specific for the warning, the return are not critical and I hate writing that too. But as some other warning prevents generation of javadoc I prefer having this noise than having half of apidoc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing doc warnings should be harmless as far as I know. They shouldn't cause doc to be not generated at all - at least I never saw that happening before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And for everything else there's doclint:none
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doclint:html,reference,syntax would be perfect I guess for the needs of having a apidoc in good shape.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put an additionnal commit to set doclint to verify only what html/reference/syntax. Thanks for the tip, I do prefer focus on links/href/html as it break website :p. Bad text for a parameter/return can be fixed later if people have concern on that.
I had to relax the failonwarning because javadoc on jdk18 create warning on depreciate with removal of some classes.
harness/nbjunit/src/org/netbeans/junit/ParametricTestSuite.java
Outdated
Show resolved
Hide resolved
04c99d0
to
00108e0
Compare
java/classfile/src/org/netbeans/modules/classfile/Parameter.java
Outdated
Show resolved
Hide resolved
webcommon/lib.v8debug/src/org/netbeans/lib/v8debug/connection/ClientConnection.java
Outdated
Show resolved
Hide resolved
00108e0
to
6125292
Compare
java/classfile/arch.xml
Outdated
@@ -182,7 +182,7 @@ | |||
--> | |||
<answer id="compat-standards"> | |||
<p> | |||
The module depends upon the <a href="http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html"> | |||
The module depends upon the <a href="https://docs.oracle.com/javase/specs/jvms/se6/html/VMSpecTOC.doc.html"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same url as the previous comment.
java/classfile/src/org/netbeans/modules/classfile/ExceptionTableEntry.java
Outdated
Show resolved
Hide resolved
@@ -79,6 +81,8 @@ public final int getStartPC() { | |||
* Returns the ending offset into the method's bytecodes of this | |||
* exception handler, or the length of the bytecode array if the | |||
* handler supports the method's last bytecodes (JVM 4.7.3). | |||
* @return ending offset of the exception handlong code into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same typo. handler/handling
java/classfile/src/org/netbeans/modules/classfile/ExceptionTableEntry.java
Outdated
Show resolved
Hide resolved
@@ -73,7 +73,7 @@ <h2>Examples</h2> | |||
<h2>Related Documentation</h2> | |||
|
|||
<ul> | |||
<li><A HREF="http://java.sun.com/docs/books/jls/index.html">Java Virtual Machine Specification, Second Edition</a> | |||
<li><A HREF="hhttps://docs.oracle.com/javase/specs/jvms/se6/html/VMSpecTOC.doc.html">Java Virtual Machine Specification, Second Edition</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an extra h
in http
. Consider using https://docs.oracle.com/javase/specs/jvms/se8/html/index.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well seems the scanner for wrong url didn't issue an error. Will not for later check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work.
1025dc6
to
de388cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ok I merge and go for another round :D |
This is a second split of the big PR #4450.
using the following to have ant javadoc -Dmetabuild.branch=master -Dapidocfullcheck=true.