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 200297 Details for
Bug 351170
[1.7] ASTRewrite issues in Try with resources
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_351170_2.txt (text/plain), 1.31 KB, created by
Olivier Thomann
on 2011-07-25 13:55:36 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2011-07-25 13:55:36 EDT
Size:
1.31 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFormatter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFormatter.java,v >retrieving revision 1.28.4.1 >diff -u -r1.28.4.1 ASTRewriteFormatter.java >--- dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFormatter.java 7 Jul 2011 17:31:50 -0000 1.28.4.1 >+++ dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteFormatter.java 25 Jul 2011 17:54:59 -0000 >@@ -16,6 +16,7 @@ > > import java.util.ArrayList; > import java.util.Collection; >+import java.util.HashMap; > import java.util.Map; > > import org.eclipse.core.runtime.Assert; >@@ -132,11 +133,13 @@ > this.placeholders= placeholders; > this.eventStore= eventStore; > >- this.options= options; > if (options != null) { >+ this.options= new HashMap(options); > this.options.put( > DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_RESOURCES_IN_TRY, > DefaultCodeFormatterConstants.createAlignmentValue(true, DefaultCodeFormatterConstants.WRAP_NEXT_PER_LINE, DefaultCodeFormatterConstants.INDENT_DEFAULT)); >+ } else { >+ this.options = null; > } > this.lineDelimiter= lineDelimiter; >
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 351170
:
199130
|
199198
|
199200
|
199278
|
200297
|
200302