FormatJavadocBlock block = javadoc.blocks[index++]; int newLines = this.formatter.preferences.comment_insert_empty_line_before_root_tags ? 2 : 1; printJavadocGapLines(previousBlock.sourceEnd+1, block.sourceStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); previousBlock = block; printJavadocBlock(previousBlock); FormatJavadocBlock block = javadoc.blocks[index++]; printJavadocGapLines(previousBlock.sourceEnd+1, block.sourceStart-1, 1, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); previousBlock = block; printJavadocGapLines(javadoc.textStart, firstBlockStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); printJavadocGapLines(previousBlock.sourceEnd+1, javadoc.textEnd, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, true, null);
printJavadocGapLinesForImmutableBlock(block); } else { printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null); printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null);
printJavadocGapLinesForImmutableBlock(block); } else { printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null); printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null);
FormatJavadocBlock block = javadoc.blocks[index++]; int newLines = this.formatter.preferences.comment_insert_empty_line_before_root_tags ? 2 : 1; printJavadocGapLines(previousBlock.sourceEnd+1, block.sourceStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); previousBlock = block; printJavadocBlock(previousBlock); FormatJavadocBlock block = javadoc.blocks[index++]; printJavadocGapLines(previousBlock.sourceEnd+1, block.sourceStart-1, 1, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); previousBlock = block; printJavadocGapLines(javadoc.textStart, firstBlockStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); printJavadocGapLines(previousBlock.sourceEnd+1, javadoc.textEnd, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, true, null);
printJavadocGapLinesForImmutableBlock(block); } else { printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null); printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null);
FormatJavadocBlock block = javadoc.blocks[index++]; int newLines = this.formatter.preferences.comment_insert_empty_line_before_root_tags ? 2 : 1; printJavadocGapLines(previousBlock.sourceEnd+1, block.sourceStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); previousBlock = block; printJavadocBlock(previousBlock); FormatJavadocBlock block = javadoc.blocks[index++]; printJavadocGapLines(previousBlock.sourceEnd+1, block.sourceStart-1, 1, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); previousBlock = block; printJavadocGapLines(javadoc.textStart, firstBlockStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); printJavadocGapLines(previousBlock.sourceEnd+1, javadoc.textEnd, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, true, null);
int newLines = startLine - endLine; if (clearBlankLines) newLines = 1; printJavadocGapLines(end+1, nextStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); textOnNewLine = true;
int newLines = startLine - endLine; if (clearBlankLines) newLines = 1; printJavadocGapLines(end+1, nextStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); textOnNewLine = true;
int newLines = startLine - endLine; if (clearBlankLines) newLines = 1; printJavadocGapLines(end+1, nextStart-1, newLines, this.formatter.preferences.comment_clear_blank_lines_in_javadoc_comment, false, null); textOnNewLine = true;
printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null); printJavadocGapLines(previousEnd+1, nextStart-1, linesAfter, clearBlankLines, false, buffer); textOnNewLine = true; if (newLines == 0) newLines=1; this.needSpace = false; printJavadocGapLines(end+1, nextStart-1, newLines, false/* clear first blank lines inside <pre> tag as done by old formatter */, false, null); printJavadocGapLines(codeEnd+1, nextStart-1, 1, false/* clear blank lines inside <pre> tag as done by old formatter */, false, null); return 2; int line2 = Util.getLineNumber(nextStart-1, this.lineEnds, line1-1, this.maxLines); int gapLines = line2-line1-1; printJavadocGapLines(end+1, nextStart-1, gapLines, false/* never clear blank lines inside <pre> tag*/, false, null); if (gapLines > 0) textOnNewLine = true; printJavadocGapLines(previousEnd+1, nextStart-1, linesAfter, clearBlankLines, false, buffer); textOnNewLine = linesAfter > 0;
printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null); printJavadocGapLines(previousEnd+1, nextStart-1, linesAfter, clearBlankLines, false, buffer); textOnNewLine = true; if (newLines == 0) newLines=1; this.needSpace = false; printJavadocGapLines(end+1, nextStart-1, newLines, false/* clear first blank lines inside <pre> tag as done by old formatter */, false, null); printJavadocGapLines(codeEnd+1, nextStart-1, 1, false/* clear blank lines inside <pre> tag as done by old formatter */, false, null); return 2; int line2 = Util.getLineNumber(nextStart-1, this.lineEnds, line1-1, this.maxLines); int gapLines = line2-line1-1; printJavadocGapLines(end+1, nextStart-1, gapLines, false/* never clear blank lines inside <pre> tag*/, false, null); if (gapLines > 0) textOnNewLine = true; printJavadocGapLines(previousEnd+1, nextStart-1, linesAfter, clearBlankLines, false, buffer); textOnNewLine = linesAfter > 0;
printJavadocGapLines(previousEnd+1, nodeStart-1, newLines, clearBlankLines, false, null); printJavadocGapLines(previousEnd+1, nextStart-1, linesAfter, clearBlankLines, false, buffer); textOnNewLine = true; if (newLines == 0) newLines=1; this.needSpace = false; printJavadocGapLines(end+1, nextStart-1, newLines, false/* clear first blank lines inside <pre> tag as done by old formatter */, false, null); printJavadocGapLines(codeEnd+1, nextStart-1, 1, false/* clear blank lines inside <pre> tag as done by old formatter */, false, null); return 2; int line2 = Util.getLineNumber(nextStart-1, this.lineEnds, line1-1, this.maxLines); int gapLines = line2-line1-1; printJavadocGapLines(end+1, nextStart-1, gapLines, false/* never clear blank lines inside <pre> tag*/, false, null); if (gapLines > 0) textOnNewLine = true; printJavadocGapLines(previousEnd+1, nextStart-1, linesAfter, clearBlankLines, false, buffer); textOnNewLine = linesAfter > 0;