diff options
author | Philipe Mulet | 2003-07-10 16:07:11 +0000 |
---|---|---|
committer | Philipe Mulet | 2003-07-10 16:07:11 +0000 |
commit | 62bf74e3a22d7d72fbb43f1b6abe1ccddf3b2c91 (patch) | |
tree | d89e21b4b90423cfece5c511b0838b2c54784db7 | |
parent | f3a6f459efd2ac1aed8a2fbc164dee41b4c19dd6 (diff) | |
download | eclipse.jdt.core-62bf74e3a22d7d72fbb43f1b6abe1ccddf3b2c91.tar.gz eclipse.jdt.core-62bf74e3a22d7d72fbb43f1b6abe1ccddf3b2c91.tar.xz eclipse.jdt.core-62bf74e3a22d7d72fbb43f1b6abe1ccddf3b2c91.zip |
*** empty log message ***
-rw-r--r-- | org.eclipse.jdt.core/buildnotes_jdt-core.html | 14 | ||||
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java | 5 |
2 files changed, 16 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core/buildnotes_jdt-core.html b/org.eclipse.jdt.core/buildnotes_jdt-core.html index a2a5312356..e898e25dc4 100644 --- a/org.eclipse.jdt.core/buildnotes_jdt-core.html +++ b/org.eclipse.jdt.core/buildnotes_jdt-core.html @@ -42,12 +42,24 @@ Eclipse SDK 3.0 Build - ?th July 2003 <h2> What's new in this drop</h2> <ul> +<li> Added optional diagnosis for unnecessary cast or instanceof operations. +<pre> +* COMPILER / Reporting Unnecessary Type Check +* When enabled, the compiler will issue an error or a warning when a cast or an instanceof operation +* is unnecessary. +* - option id: "org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck" +* - possible values: { "error", "warning", "ignore" } +* - default: "ignore" +</pre> +</li> <li> Changed Java element delta processing to be thread-safe. </li> </ul> <h3>Problem Reports Fixed</h3> -<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=39841">39841</a> +<a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=35442">35442</a> +flag unnecessary casts +<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=39841">39841</a> Give better explanation of why abstract class can't be instantiated <br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=39467">39467</a> Classes not implementing abstract methods compile without error diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java index df9ceda29c..d80e26ad76 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java @@ -39,8 +39,9 @@ * IndirectAccessToStaticMethod * IndirectAccessToStaticType * BooleanMethodThrowingException - * UnnecessaryWideningCast - * UnnecessaryNarrowingCast + * UnnecessaryCast + * UnnecessaryArgumentCast + * UnnecessaryInstanceof ****************************************************************************/ package org.eclipse.jdt.core.compiler; |