langtools/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java
changeset 25454 376a52c9540c
parent 21494 eb34dbccfb60
equal deleted inserted replaced
25453:be80cf0463b3 25454:376a52c9540c
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    24  */
    24  */
    25 
    25 
    26 package com.sun.tools.doclets.formats.html;
    26 package com.sun.tools.doclets.formats.html;
    27 
    27 
    28 import java.io.*;
    28 import java.io.*;
    29 import java.util.*;
       
    30 
    29 
    31 import com.sun.javadoc.*;
    30 import com.sun.javadoc.*;
    32 import com.sun.tools.javac.jvm.Profile;
    31 import com.sun.tools.javac.jvm.Profile;
    33 import com.sun.tools.doclets.formats.html.markup.*;
    32 import com.sun.tools.doclets.formats.html.markup.*;
    34 import com.sun.tools.doclets.internal.toolkit.*;
    33 import com.sun.tools.doclets.internal.toolkit.*;
   153      *
   152      *
   154      * @param div the content tree to which the deprecation information will be added
   153      * @param div the content tree to which the deprecation information will be added
   155      */
   154      */
   156     public void addDeprecationInfo(Content div) {
   155     public void addDeprecationInfo(Content div) {
   157         Tag[] deprs = packageDoc.tags("deprecated");
   156         Tag[] deprs = packageDoc.tags("deprecated");
   158         if (Util.isDeprecated(packageDoc)) {
   157         if (utils.isDeprecated(packageDoc)) {
   159             HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV);
   158             HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV);
   160             deprDiv.addStyle(HtmlStyle.deprecatedContent);
   159             deprDiv.addStyle(HtmlStyle.deprecatedContent);
   161             Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase);
   160             Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase);
   162             deprDiv.addContent(deprPhrase);
   161             deprDiv.addContent(deprPhrase);
   163             if (deprs.length > 0) {
   162             if (deprs.length > 0) {