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 23729 Details for
Bug 101247
[formatter] Fails to format some labelled statements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_101230.txt (text/plain), 1.04 KB, created by
Olivier Thomann
on 2005-06-22 10:11:20 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-22 10:11:20 EDT
Size:
1.04 KB
patch
obsolete
>Index: formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java,v >retrieving revision 1.162 >diff -u -r1.162 CodeFormatterVisitor.java >--- formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java 15 Jun 2005 14:54:31 -0000 1.162 >+++ formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java 22 Jun 2005 14:10:48 -0000 >@@ -3813,7 +3813,12 @@ > if (this.preferences.insert_space_after_colon_in_labeled_statement) { > this.scribe.space(); > } >- labeledStatement.statement.traverse(this, scope); >+ final Statement statement = labeledStatement.statement; >+ statement.traverse(this, scope); >+ if (statement instanceof Expression) { >+ this.scribe.printNextToken(TerminalTokens.TokenNameSEMICOLON, this.preferences.insert_space_before_semicolon); >+ this.scribe.printTrailingComment(); >+ } > return false; > } >
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 101247
: 23729 |
23730