langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/PackageListWriter.java
changeset 22163 3651128c74eb
parent 22159 682da512ec17
child 25454 376a52c9540c
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    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());