I wish to be able to use the -private switch in NetBeans. How it could also be 
done with Ant, Gradle, and Maven will also be useful to know though I think 
each will allow me to run an external process, such as javadoc.exe, as 
described in each build system's configuration file.

When I was teaching, I required my students to use JavaDocs comments for every 
method regardless of the access control. I'd return work to students who failed 
to comment for resubmission with comments. I must admit to not knowing that 
there was a way to include these methods in the output from JavaDocs.

I just ran a quick test with Public, Private, Protected, and Package-Private 
methods and fields.  With the -private switch they all appear in the JavaDocs 
otherwise only the public and protected elements appear in the JavaDocs.

I'd really like for NetBeans to let me use this switch.

Ken


-----Original Message-----
From: Laszlo Kishalmi <[email protected]>
Sent: Monday, November 24, 2025 4:56 PM
To: [email protected]
Subject: Re: JavaDocs -private

Javadoc for NetBeans, or JavaDoc for some project using a build system Ant, 
Gradle or Maven?

On 11/24/25 13:46, Kenneth Fogel wrote:
> Hi,
>
> First, if my questions should be asked in another mailing list then please 
> let me know.
>
> Second, today’s question is whether the JavaDocs switch ‘-private’, used to 
> have JavaDocs include private methods and fields in the HTML files it 
> produces at the command line, can be configured in NetBeans 28? I cannot seem 
> to find anyplace to add this switch.
>
> Thanks,
>
> Ken
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to