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 33266 Details for
Bug 123522
@SuppressWarnings("unused") does not suppress "unused import" warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for Annotation
123522.txt (text/plain), 1.29 KB, created by
Philipe Mulet
on 2006-01-19 07:55:41 EST
(
hide
)
Description:
Patch for Annotation
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2006-01-19 07:55:41 EST
Size:
1.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java,v >retrieving revision 1.48 >diff -u -r1.48 Annotation.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java 10 Jan 2006 21:01:06 -0000 1.48 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java 19 Jan 2006 12:54:50 -0000 >@@ -319,7 +319,13 @@ > sourceType.tagBits |= tagBits; > if ((tagBits & TagBits.AnnotationSuppressWarnings) != 0) { > TypeDeclaration typeDeclaration = sourceType.scope.referenceContext; >- recordSuppressWarnings(scope, typeDeclaration.declarationSourceStart, typeDeclaration.declarationSourceEnd, scope.compilerOptions().suppressWarnings); >+ int start; >+ if (scope.referenceCompilationUnit().types[0] == typeDeclaration) { >+ start = 0; >+ } else { >+ start = typeDeclaration.declarationSourceStart; >+ } >+ recordSuppressWarnings(scope, start, typeDeclaration.declarationSourceEnd, scope.compilerOptions().suppressWarnings); > } > break; > case Binding.METHOD :
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 123522
: 33266 |
33308