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 155321 Details for
Bug 298844
[formatter] New lines in empty method body wrong behavior
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
The patch for the formatter
patch_bug 298844.txt (text/plain), 1.50 KB, created by
Nanda Firdausi
on 2010-01-05 08:21:19 EST
(
hide
)
Description:
The patch for the formatter
Filename:
MIME Type:
Creator:
Nanda Firdausi
Created:
2010-01-05 08:21:19 EST
Size:
1.50 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java,v >retrieving revision 1.214.2.1 >diff -u -r1.214.2.1 CodeFormatterVisitor.java >--- formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java 18 Jun 2009 09:34:30 -0000 1.214.2.1 >+++ formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java 5 Jan 2010 13:23:50 -0000 >@@ -3333,8 +3333,10 @@ > if (this.preferences.indent_statements_compare_to_body) { > this.scribe.unIndent(); > } >- } else if (this.preferences.insert_new_line_in_empty_method_body) { >- this.scribe.printNewLine(); >+ } else { >+ if (this.preferences.insert_new_line_in_empty_method_body) { >+ this.scribe.printNewLine(); >+ } > if (this.preferences.indent_statements_compare_to_body) { > this.scribe.indent(); > } >@@ -4232,8 +4234,10 @@ > if (this.preferences.indent_statements_compare_to_body) { > this.scribe.unIndent(); > } >- } else if (this.preferences.insert_new_line_in_empty_method_body) { >- this.scribe.printNewLine(); >+ } else { >+ if (this.preferences.insert_new_line_in_empty_method_body) { >+ this.scribe.printNewLine(); >+ } > if (this.preferences.indent_statements_compare_to_body) { > this.scribe.indent(); > }
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
Flags:
frederic_fusier
:
iplog+
frederic_fusier
:
review+
Actions:
View
|
Diff
Attachments on
bug 298844
: 155321 |
167320