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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java (-1 / +9 lines)
Lines 62-68 Link Here
62
			return suite;
62
			return suite;
63
		}
63
		}
64
		junit.framework.TestSuite suite = new Suite(FormatterRegressionTests.class.getName());
64
		junit.framework.TestSuite suite = new Suite(FormatterRegressionTests.class.getName());
65
		suite.addTest(new FormatterRegressionTests("test576"));  //$NON-NLS-1$
65
		suite.addTest(new FormatterRegressionTests("test577"));  //$NON-NLS-1$
66
		return suite;
66
		return suite;
67
	}
67
	}
68
68
Lines 8073-8076 Link Here
8073
			JavaCore.setOptions(javaCoreOptions);
8073
			JavaCore.setOptions(javaCoreOptions);
8074
		}
8074
		}
8075
	}
8075
	}
8076
	
8077
	// https://bugs.eclipse.org/bugs/show_bug.cgi?id=90213
8078
	public void test577() {
8079
		Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings();
8080
		DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options);
8081
		DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences);
8082
		runTest(codeFormatter, "test577", "A.java", CodeFormatter.K_UNKNOWN, false);//$NON-NLS-1$ //$NON-NLS-2$
8083
	}
8076
}
8084
}
(-)workspace/Formatter/test577/A_in.java (+1 lines)
Added Link Here
1
public Object obj=new Object();public Object obj2=new Object();void foo() {}
(-)workspace/Formatter/test577/A_out.java (+6 lines)
Added Link Here
1
public Object obj = new Object();
2
3
public Object obj2 = new Object();
4
5
void foo() {
6
}

Return to bug 98037