111 private Content inheritThrowsDocumentation(Doc holder, |
111 private Content inheritThrowsDocumentation(Doc holder, |
112 Type[] declaredExceptionTypes, Set<String> alreadyDocumented, |
112 Type[] declaredExceptionTypes, Set<String> alreadyDocumented, |
113 TagletWriter writer) { |
113 TagletWriter writer) { |
114 Content result = writer.getOutputInstance(); |
114 Content result = writer.getOutputInstance(); |
115 if (holder instanceof MethodDoc) { |
115 if (holder instanceof MethodDoc) { |
116 Set<Tag> declaredExceptionTags = new LinkedHashSet<Tag>(); |
116 Set<Tag> declaredExceptionTags = new LinkedHashSet<>(); |
117 for (Type declaredExceptionType : declaredExceptionTypes) { |
117 for (Type declaredExceptionType : declaredExceptionTypes) { |
118 DocFinder.Output inheritedDoc = |
118 DocFinder.Output inheritedDoc = |
119 DocFinder.search(new DocFinder.Input((MethodDoc) holder, this, |
119 DocFinder.search(new DocFinder.Input((MethodDoc) holder, this, |
120 declaredExceptionType.typeName())); |
120 declaredExceptionType.typeName())); |
121 if (inheritedDoc.tagList.size() == 0) { |
121 if (inheritedDoc.tagList.size() == 0) { |
137 */ |
137 */ |
138 public Content getTagletOutput(Doc holder, TagletWriter writer) { |
138 public Content getTagletOutput(Doc holder, TagletWriter writer) { |
139 ExecutableMemberDoc execHolder = (ExecutableMemberDoc) holder; |
139 ExecutableMemberDoc execHolder = (ExecutableMemberDoc) holder; |
140 ThrowsTag[] tags = execHolder.throwsTags(); |
140 ThrowsTag[] tags = execHolder.throwsTags(); |
141 Content result = writer.getOutputInstance(); |
141 Content result = writer.getOutputInstance(); |
142 HashSet<String> alreadyDocumented = new HashSet<String>(); |
142 HashSet<String> alreadyDocumented = new HashSet<>(); |
143 if (tags.length > 0) { |
143 if (tags.length > 0) { |
144 result.addContent(throwsTagsOutput( |
144 result.addContent(throwsTagsOutput( |
145 execHolder.throwsTags(), writer, alreadyDocumented, true)); |
145 execHolder.throwsTags(), writer, alreadyDocumented, true)); |
146 } |
146 } |
147 result.addContent(inheritThrowsDocumentation(holder, |
147 result.addContent(inheritThrowsDocumentation(holder, |