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 152493 Details for
Bug 235253
[organize imports] Organize imports removes needed import statement.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_235253.txt (text/plain), 1.10 KB, created by
Olivier Thomann
on 2009-11-18 12:51:54 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2009-11-18 12:51:54 EST
Size:
1.10 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java,v >retrieving revision 1.17 >diff -u -r1.17 ImportRewriteAnalyzer.java >--- dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java 16 Nov 2009 15:07:33 -0000 1.17 >+++ dom/org/eclipse/jdt/internal/core/dom/rewrite/ImportRewriteAnalyzer.java 18 Nov 2009 17:51:31 -0000 >@@ -390,14 +390,7 @@ > return true; > } > String packageName= cu.getParent().getElementName(); >- if (qualifier.equals(packageName)) { >- return true; >- } >- String mainTypeName= JavaCore.removeJavaLikeExtension(cu.getElementName()); >- if (packageName.length() == 0) { >- return qualifier.equals(mainTypeName); >- } >- return qualifier.equals(packageName +'.' + mainTypeName); >+ return qualifier.equals(packageName); > } > > public void addImport(String fullTypeName, boolean isStatic) {
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 235253
:
151581
|
152493
|
157791
|
158758
|
158804