### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java,v retrieving revision 1.205 diff -u -r1.205 FormatterRegressionTests.java --- src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 26 Jan 2007 18:48:10 -0000 1.205 +++ src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 5 Feb 2007 14:50:28 -0000 @@ -54,8 +54,8 @@ private long time; static { -// TESTS_NUMBERS = new int[] { 649 }; -// TESTS_RANGE = new int[] { 643, -1 }; +// TESTS_NUMBERS = new int[] { 650 }; +// TESTS_RANGE = new int[] { 650, -1 }; } public static Test suite() { return buildModelTestSuite(FormatterRegressionTests.class); @@ -9172,4 +9172,32 @@ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test649", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ } + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 + public void test650() { + final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); + DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); + DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); + runTest(codeFormatter, "test650", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ + } + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 + public void test651() { + final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); + DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); + DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); + runTest(codeFormatter, "test651", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ + } + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 + public void test652() { + final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); + DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); + DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); + runTest(codeFormatter, "test652", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ + } + // https://bugs.eclipse.org/bugs/show_bug.cgi?id=172848 + public void test653() { + final Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); + DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); + DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); + runTest(codeFormatter, "test653", "A.java");//$NON-NLS-1$ //$NON-NLS-2$ + } } Index: workspace/Formatter/test651/A_in.java =================================================================== RCS file: workspace/Formatter/test651/A_in.java diff -N workspace/Formatter/test651/A_in.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test651/A_in.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,5 @@ +public class Test +{ + int i = 0; + int k = + --i; +} Index: workspace/Formatter/test650/A_in.java =================================================================== RCS file: workspace/Formatter/test650/A_in.java diff -N workspace/Formatter/test650/A_in.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test650/A_in.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,5 @@ +public class Test +{ + int i = 0; + int k = + ++i; +} Index: workspace/Formatter/test651/A_out.java =================================================================== RCS file: workspace/Formatter/test651/A_out.java diff -N workspace/Formatter/test651/A_out.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test651/A_out.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,4 @@ +public class Test { + int i = 0; + int k = +--i; +} Index: workspace/Formatter/test650/A_out.java =================================================================== RCS file: workspace/Formatter/test650/A_out.java diff -N workspace/Formatter/test650/A_out.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test650/A_out.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,4 @@ +public class Test { + int i = 0; + int k = + ++i; +} Index: workspace/Formatter/test653/A_in.java =================================================================== RCS file: workspace/Formatter/test653/A_in.java diff -N workspace/Formatter/test653/A_in.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test653/A_in.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,5 @@ +public class Test +{ + int i = 0; + int k = - ++i; +} Index: workspace/Formatter/test652/A_in.java =================================================================== RCS file: workspace/Formatter/test652/A_in.java diff -N workspace/Formatter/test652/A_in.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test652/A_in.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,5 @@ +public class Test +{ + int i = 0; + int k = - --i; +} Index: workspace/Formatter/test653/A_out.java =================================================================== RCS file: workspace/Formatter/test653/A_out.java diff -N workspace/Formatter/test653/A_out.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test653/A_out.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,4 @@ +public class Test { + int i = 0; + int k = -++i; +} Index: workspace/Formatter/test652/A_out.java =================================================================== RCS file: workspace/Formatter/test652/A_out.java diff -N workspace/Formatter/test652/A_out.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ workspace/Formatter/test652/A_out.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,4 @@ +public class Test { + int i = 0; + int k = - --i; +}