mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javadoc: insert empty template when no javadoc has been generated (IDEA-72880)
This commit is contained in:
@@ -232,10 +232,13 @@ public class JavaDocInfoGenerator {
|
||||
return null;
|
||||
}
|
||||
if (docURLs != null) {
|
||||
StringBuffer errorsSection = new StringBuffer("<p id=\"error\">Following external urls were checked:<br> <i>");
|
||||
StringBuilder errorsSection = new StringBuilder("<p id=\"error\">Following external urls were checked:<br> <i>");
|
||||
errorsSection.append(StringUtil.join(docURLs, "</i><br> <i>"));
|
||||
errorsSection.append("</i><br>The documentation for this element is not found. Please add all the needed paths to API docs in ");
|
||||
errorsSection.append("<a href=\"open://Project Settings\">Project Settings.</a></p>");
|
||||
if (buffer.length() == 0) {
|
||||
buffer.append("<html><body></body></html>");
|
||||
}
|
||||
buffer.insert(buffer.indexOf("<body>"), errorsSection.toString());
|
||||
}
|
||||
return fixupDoc(buffer);
|
||||
|
||||
Reference in New Issue
Block a user