# HG changeset patch # User ksrini # Date 1505946141 25200 # Node ID 5ee94c2e087ed562b84afdf15c1294830aed9f37 # Parent 205e4c0dc8a3e374589cb69ebd235bad6297ebb0 8186875: Removed unused method LinkFactory.getTypeAnnotationLinks(LinkInfo linkInfo) Reviewed-by: anazarov, bpatel, jjg diff -r 205e4c0dc8a3 -r 5ee94c2e087e src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/LinkFactoryImpl.java --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/LinkFactoryImpl.java Thu Sep 21 14:40:50 2017 +0200 +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/LinkFactoryImpl.java Wed Sep 20 15:22:21 2017 -0700 @@ -139,11 +139,6 @@ } @Override - protected Content getTypeAnnotationLink(LinkInfo linkInfo, AnnotationMirror annotation) { - throw new RuntimeException("Not implemented yet!"); - } - - @Override public Content getTypeAnnotationLinks(LinkInfo linkInfo) { Utils utils = ((LinkInfoImpl)linkInfo).utils; ContentBuilder links = new ContentBuilder(); diff -r 205e4c0dc8a3 -r 5ee94c2e087e src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/links/LinkFactory.java --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/links/LinkFactory.java Thu Sep 21 14:40:50 2017 +0200 +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/links/LinkFactory.java Wed Sep 20 15:22:21 2017 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -223,8 +223,6 @@ */ protected abstract Content getTypeParameterLink(LinkInfo linkInfo, TypeMirror typeParam); - protected abstract Content getTypeAnnotationLink(LinkInfo linkInfo, AnnotationMirror annotation); - /** * Return the links to the type parameters. * @@ -282,23 +280,5 @@ return links; } - public Content getTypeAnnotationLinks(LinkInfo linkInfo) { - Utils utils = ((LinkInfoImpl)linkInfo).utils; - Content links = newContent(); - if (!utils.isAnnotated(linkInfo.type)) - return links; - - List annotations = linkInfo.type.getAnnotationMirrors(); - boolean needSpace = false; - for (AnnotationMirror anno : annotations) { - if (needSpace) { - links.addContent(" "); - } - links.addContent(getTypeAnnotationLink(linkInfo, anno)); - needSpace = true; - } - - links.addContent(" "); - return links; - } + public abstract Content getTypeAnnotationLinks(LinkInfo linkInfo); }