View | Details | Raw Unified | Return to bug 230364 | Differences between
and this patch

Collapse All | Expand All

(-)formatter/org/eclipse/jdt/internal/formatter/Scribe.java (-1 / +1 lines)
Lines 1860-1866 Link Here
1860
		int firstColumn = this.column;
1860
		int firstColumn = this.column;
1861
		int indentLevel = this.indentationLevel;
1861
		int indentLevel = this.indentationLevel;
1862
		int indentations = this.numberOfIndentations;
1862
		int indentations = this.numberOfIndentations;
1863
		this.indentationLevel = (this.column / this.tabLength) * this.tabLength;
1863
		this.indentationLevel = getNextIndentationLevel(firstColumn);
1864
		this.numberOfIndentations = this.indentationLevel / this.indentationSize;
1864
		this.numberOfIndentations = this.indentationLevel / this.indentationSize;
1865
1865
1866
		// Consume the comment prefix
1866
		// Consume the comment prefix
(-)src/org/eclipse/jdt/core/tests/formatter/FormatterCommentsTests.java (+4 lines)
Lines 767-772 Link Here
767
public void testLineComments06() throws JavaModelException {
767
public void testLineComments06() throws JavaModelException {
768
	formatUnit("comments.line", "X06.java");
768
	formatUnit("comments.line", "X06.java");
769
}
769
}
770
// TODO Pass this test case
770
public void _testLineComments07() throws JavaModelException {
771
public void _testLineComments07() throws JavaModelException {
771
	formatUnit("comments.line", "X07.java");
772
	formatUnit("comments.line", "X07.java");
772
}
773
}
Lines 779-784 Link Here
779
public void testLineComments10() throws JavaModelException {
780
public void testLineComments10() throws JavaModelException {
780
	formatUnit("comments.line", "X10.java");
781
	formatUnit("comments.line", "X10.java");
781
}
782
}
783
public void testLineComments11() throws JavaModelException {
784
	formatUnit("comments.line", "X11.java");
785
}
782
786
783
/*
787
/*
784
 * Test formatter block lines
788
 * Test formatter block lines
(-)workspace/FormatterJavadoc/test/comments/line/X11.java (+4 lines)
Added Link Here
1
package test.comments.line;
2
3
public class X11 { // This comment will go____over the max line length
4
}
(-)workspace/FormatterJavadoc/test/comments/line/out/default/X11.java (+6 lines)
Added Link Here
1
package test.comments.line;
2
3
public class X11 { // This comment will
4
					// go____over the
5
					// max line length
6
}

Return to bug 230364