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 1828 Details for
Bug 22336
formatter doesn't indent correctly static block
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Proposal to correct this bug. Including some previous/next lines
CodeFormatter.proposal22336.java (text/plain), 1.14 KB, created by
jean-louis willems
on 2002-08-11 13:31:43 EDT
(
hide
)
Description:
Proposal to correct this bug. Including some previous/next lines
Filename:
MIME Type:
Creator:
jean-louis willems
Created:
2002-08-11 13:31:43 EDT
Size:
1.14 KB
patch
obsolete
> // see PR 1G5G82G > if (token == TokenNameLBRACE && inClassOrInterfaceHeader) { > inClassOrInterfaceHeader = false; > if (options.newLineBeforeOpeningBraceMode) { > newLine(1); > currentLineIndentationLevel = indentationLevel; > pendingNewLines = 0; > pendingSpace = false; > } > } >// START OF BUG CORRECTION PROPSOL > if ((token == TokenNameLBRACE) > && (previousCompilableToken == TokenNamestatic)) { > if (options.newLineBeforeOpeningBraceMode) { > newLine(1); > currentLineIndentationLevel = indentationLevel; > pendingNewLines = 0; > pendingSpace = false; > } > } >// END OF BUG CORRECTION PROPSOL > // Add pending new lines to the formatted source string. > // Note: pending new lines are not added if the current token > // is a single line comment or whitespace. > // if the comment is between parenthesis, there is no blank line preservation > // (if it's a one-line comment, a blank line is added after it). > if (((pendingNewLines > 0 && (!isComment(token))) > || (newLinesInWhitespace > 0 > && (openParenthesisCount <= 1 && isComment(token)))
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 Raw
Actions:
View
Attachments on
bug 22336
: 1828