langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/PackageListWriter.java
equal
deleted
inserted
replaced
74 throw new DocletAbortException(exc); |
74 throw new DocletAbortException(exc); |
75 } |
75 } |
76 } |
76 } |
77 |
77 |
78 protected void generatePackageListFile(RootDoc root) { |
78 protected void generatePackageListFile(RootDoc root) { |
79 ArrayList<String> names = new ArrayList<String>(); |
79 ArrayList<String> names = new ArrayList<>(); |
80 for (PackageDoc pkg : configuration.packages) { |
80 for (PackageDoc pkg : configuration.packages) { |
81 // if the -nodeprecated option is set and the package is marked as |
81 // if the -nodeprecated option is set and the package is marked as |
82 // deprecated, do not include it in the packages list. |
82 // deprecated, do not include it in the packages list. |
83 if (!(configuration.nodeprecated && Util.isDeprecated(pkg))) |
83 if (!(configuration.nodeprecated && Util.isDeprecated(pkg))) |
84 names.add(pkg.name()); |
84 names.add(pkg.name()); |