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 200302 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 additional fix
patch.txt (text/plain), 1.57 KB, created by
Markus Keller
on 2011-07-25 15:01:21 EDT
(
hide
)
Description:
Proposed additional fix
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2011-07-25 15:01:21 EDT
Size:
1.57 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 19:00:23 -0000 >@@ -16,9 +16,11 @@ > > import java.util.ArrayList; > import java.util.Collection; >+import java.util.HashMap; > import java.util.Map; > > import org.eclipse.core.runtime.Assert; >+import org.eclipse.jdt.core.JavaCore; > import org.eclipse.jdt.core.ToolFactory; > import org.eclipse.jdt.core.dom.ASTNode; > import org.eclipse.jdt.core.dom.Annotation; >@@ -132,12 +134,11 @@ > this.placeholders= placeholders; > this.eventStore= eventStore; > >- this.options= options; >- if (options != null) { >- this.options.put( >+ this.options= options == null ? JavaCore.getOptions() : (Map) new HashMap(options); >+ this.options.put( > DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_RESOURCES_IN_TRY, > DefaultCodeFormatterConstants.createAlignmentValue(true, DefaultCodeFormatterConstants.WRAP_NEXT_PER_LINE, DefaultCodeFormatterConstants.INDENT_DEFAULT)); >- } >+ > this.lineDelimiter= lineDelimiter; > > this.tabWidth= IndentManipulation.getTabWidth(options);
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