langtools/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/MethodBuilder.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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 |
205 public void buildMethodComments(XMLNode node, Content methodDocTree) { |
205 public void buildMethodComments(XMLNode node, Content methodDocTree) { |
206 if (!configuration.nocomment) { |
206 if (!configuration.nocomment) { |
207 MethodDoc method = (MethodDoc) methods.get(currentMethodIndex); |
207 MethodDoc method = (MethodDoc) methods.get(currentMethodIndex); |
208 |
208 |
209 if (method.inlineTags().length == 0) { |
209 if (method.inlineTags().length == 0) { |
210 DocFinder.Output docs = DocFinder.search( |
210 DocFinder.Output docs = DocFinder.search(configuration, |
211 new DocFinder.Input(method)); |
211 new DocFinder.Input(method)); |
212 method = docs.inlineTags != null && docs.inlineTags.length > 0 ? |
212 method = docs.inlineTags != null && docs.inlineTags.length > 0 ? |
213 (MethodDoc) docs.holder : method; |
213 (MethodDoc) docs.holder : method; |
214 } |
214 } |
215 //NOTE: When we fix the bug where ClassDoc.interfaceTypes() does |
215 //NOTE: When we fix the bug where ClassDoc.interfaceTypes() does |