Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 22230 Details for
Bug 98037
[formatter] Templates with multiple lines are inlined when used
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD of org.eclipse.jdt.core.tests.model
patch_98037_tests.txt (text/plain), 2.21 KB, created by
Olivier Thomann
on 2005-06-02 10:04:30 EDT
(
hide
)
Description:
Apply on HEAD of org.eclipse.jdt.core.tests.model
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-02 10:04:30 EDT
Size:
2.21 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java,v >retrieving revision 1.160 >diff -u -r1.160 FormatterRegressionTests.java >--- src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 16 May 2005 19:42:05 -0000 1.160 >+++ src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java 2 Jun 2005 14:04:30 -0000 >@@ -62,7 +62,7 @@ > return suite; > } > junit.framework.TestSuite suite = new Suite(FormatterRegressionTests.class.getName()); >- suite.addTest(new FormatterRegressionTests("test576")); //$NON-NLS-1$ >+ suite.addTest(new FormatterRegressionTests("test577")); //$NON-NLS-1$ > return suite; > } > >@@ -8073,4 +8073,12 @@ > JavaCore.setOptions(javaCoreOptions); > } > } >+ >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=90213 >+ public void test577() { >+ Map options = DefaultCodeFormatterConstants.getEclipseDefaultSettings(); >+ DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); >+ DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); >+ runTest(codeFormatter, "test577", "A.java", CodeFormatter.K_UNKNOWN, false);//$NON-NLS-1$ //$NON-NLS-2$ >+ } > } >Index: workspace/Formatter/test577/A_in.java >=================================================================== >RCS file: workspace/Formatter/test577/A_in.java >diff -N workspace/Formatter/test577/A_in.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test577/A_in.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,1 @@ >+public Object obj=new Object();public Object obj2=new Object();void foo() {} >Index: workspace/Formatter/test577/A_out.java >=================================================================== >RCS file: workspace/Formatter/test577/A_out.java >diff -N workspace/Formatter/test577/A_out.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ workspace/Formatter/test577/A_out.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,6 @@ >+public Object obj = new Object(); >+ >+public Object obj2 = new Object(); >+ >+void foo() { >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 98037
:
22228
| 22230