Filter-out static initializer method from classes

Submitted-by: Andreas Studer
This commit is contained in:
Diomidis Spinellis 2006-06-20 16:52:08 +00:00
parent cbc51f5ed5
commit 84fa647445
3 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@
<li>Support the -link flag in the same way as the standard doclet, in order to populate
the api doc map, used to generate image maps with links to associated external classes.
</li>
<li> Filter-out the static initializer method from classes</li>
</ul>
</dd>

View File

@ -300,6 +300,9 @@ class ClassGraph {
for (MethodDoc md : m) {
if (hidden(md))
continue;
// Filter-out static initializer method
if (md.name().equals("<clinit>") && md.isStatic() && md.isPackagePrivate())
continue;
stereotype(opt, md, Align.LEFT);
String op = visibility(opt, md) + md.name();
if (opt.showType) {

View File

@ -300,6 +300,9 @@ class ClassGraph {
for (MethodDoc md : m) {
if (hidden(md))
continue;
// Filter-out static initializer method
if (md.name().equals("<clinit>") && md.isStatic() && md.isPackagePrivate())
continue;
stereotype(opt, md, Align.LEFT);
String op = visibility(opt, md) + md.name();
if (opt.showType) {