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 23727 Details for
Bug 101208
[compiler] instanceof check cannot be unnecessary on null values
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for InstanceOfExpression
101208.txt (text/plain), 929 bytes, created by
Philipe Mulet
on 2005-06-22 09:40:25 EDT
(
hide
)
Description:
Patch for InstanceOfExpression
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2005-06-22 09:40:25 EDT
Size:
929 bytes
patch
obsolete
>Index: InstanceOfExpression.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/InstanceOfExpression.java,v >retrieving revision 1.39 >diff -u -r1.39 InstanceOfExpression.java >--- InstanceOfExpression.java 23 Feb 2005 02:47:28 -0000 1.39 >+++ InstanceOfExpression.java 22 Jun 2005 13:39:41 -0000 >@@ -95,7 +95,9 @@ > * @see org.eclipse.jdt.internal.compiler.ast.Expression#tagAsUnnecessaryCast(Scope,TypeBinding) > */ > public void tagAsUnnecessaryCast(Scope scope, TypeBinding castType) { >- scope.problemReporter().unnecessaryInstanceof(this, castType); >+ // null is not instanceof Type, recognize direct scenario >+ if (expression.resolvedType != NullBinding) >+ scope.problemReporter().unnecessaryInstanceof(this, castType); > } > public void traverse(ASTVisitor visitor, BlockScope scope) { >
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 101208
: 23727 |
23728