src/share/classes/com/sun/tools/doclets/formats/html/LinkFactoryImpl.java

changeset 1735
8ea30d59ac41
parent 1691
f10cffab99b4
child 1736
74cd21f2c2fe
equal deleted inserted replaced
1734:8dd528992c15 1735:8ea30d59ac41
119 * {@inheritDoc} 119 * {@inheritDoc}
120 */ 120 */
121 protected LinkOutput getTypeParameterLink(LinkInfo linkInfo, 121 protected LinkOutput getTypeParameterLink(LinkInfo linkInfo,
122 Type typeParam) { 122 Type typeParam) {
123 LinkInfoImpl typeLinkInfo = new LinkInfoImpl(m_writer.configuration, 123 LinkInfoImpl typeLinkInfo = new LinkInfoImpl(m_writer.configuration,
124 linkInfo.getContext(), typeParam); 124 ((LinkInfoImpl) linkInfo).getContext(), typeParam);
125 typeLinkInfo.excludeTypeBounds = linkInfo.excludeTypeBounds; 125 typeLinkInfo.excludeTypeBounds = linkInfo.excludeTypeBounds;
126 typeLinkInfo.excludeTypeParameterLinks = linkInfo.excludeTypeParameterLinks; 126 typeLinkInfo.excludeTypeParameterLinks = linkInfo.excludeTypeParameterLinks;
127 typeLinkInfo.linkToSelf = linkInfo.linkToSelf; 127 typeLinkInfo.linkToSelf = linkInfo.linkToSelf;
128 typeLinkInfo.isJava5DeclarationLocation = false; 128 typeLinkInfo.isJava5DeclarationLocation = false;
129 LinkOutput output = getLinkOutput(typeLinkInfo); 129 LinkOutput output = getLinkOutput(typeLinkInfo);
202 * "../../java/lang/Object.html" 202 * "../../java/lang/Object.html"
203 * 203 *
204 * @param linkInfo the information about the link. 204 * @param linkInfo the information about the link.
205 */ 205 */
206 private DocPath getPath(LinkInfoImpl linkInfo) { 206 private DocPath getPath(LinkInfoImpl linkInfo) {
207 if (linkInfo.context == LinkInfoImpl.PACKAGE_FRAME) { 207 if (linkInfo.context == LinkInfoImpl.Kind.PACKAGE_FRAME) {
208 //Not really necessary to do this but we want to be consistent 208 //Not really necessary to do this but we want to be consistent
209 //with 1.4.2 output. 209 //with 1.4.2 output.
210 return DocPath.forName(linkInfo.classDoc); 210 return DocPath.forName(linkInfo.classDoc);
211 } 211 }
212 return m_writer.pathToRoot.resolve(DocPath.forClass(linkInfo.classDoc)); 212 return m_writer.pathToRoot.resolve(DocPath.forClass(linkInfo.classDoc));

mercurial