/** * Sets comment list, and updates the parent of each entry to point * to this node. Replaces any existing comments. * @param comments comment list. can be {@code null}. */ public void setComments(SortedSet<Comment> comments) { if (comments == null) { this.comments = null; } else { if (this.comments != null) this.comments.clear(); for (Comment c : comments) addComment(c); } }
/** * Sets comment list, and updates the parent of each entry to point * to this node. Replaces any existing comments. * @param comments comment list. can be {@code null}. */ public void setComments(SortedSet<Comment> comments) { if (comments == null) { this.comments = null; } else { if (this.comments != null) this.comments.clear(); for (Comment c : comments) addComment(c); } }
/** * Sets comment list, and updates the parent of each entry to point * to this node. Replaces any existing comments. * @param comments comment list. can be {@code null}. */ public void setComments(SortedSet<Comment> comments) { if (comments == null) { this.comments = null; } else { if (this.comments != null) this.comments.clear(); for (Comment c : comments) addComment(c); } }
/** * Sets comment list, and updates the parent of each entry to point * to this node. Replaces any existing comments. * @param comments comment list. can be {@code null}. */ public void setComments(SortedSet<Comment> comments) { if (comments == null) { this.comments = null; } else { if (this.comments != null) this.comments.clear(); for (Comment c : comments) addComment(c); } }
end = Math.max(end, getNodeEnd(scannedComments.get(last))); for (Comment c : scannedComments) { root.addComment(c);
end = Math.max(end, getNodeEnd(scannedComments.get(last))); for (Comment c : scannedComments) { root.addComment(c);
end = Math.max(end, getNodeEnd(scannedComments.get(last))); for (Comment c : scannedComments) { root.addComment(c);
end = Math.max(end, getNodeEnd(scannedComments.get(last))); for (Comment c : scannedComments) { root.addComment(c);