Suppress Eclipse warnings that arise in JLex, which we don't control

This commit is contained in:
Ben Liblit 2017-08-30 16:45:46 -05:00 committed by Manu Sridharan
parent 15a30c1436
commit 65672f98ba
4 changed files with 2 additions and 4 deletions

View File

@ -100,7 +100,7 @@ org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=error
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled

View File

@ -9,7 +9,6 @@
* IBM Corporation - initial API and implementation
*****************************************************************************/
public class CastFromNull {
@SuppressWarnings({ "cast" })
public static void main(String args[]) {
new CastFromNull();
Object x = (Object) null;

View File

@ -38,7 +38,7 @@
package foo.bar.hello.world;
public class LoopsAndLabels {
@SuppressWarnings({ "cast", "unused" })
@SuppressWarnings("unused")
public static void main(String args[]) {
aaa: do {

View File

@ -39,7 +39,6 @@ package foo.bar.hello.world;
public class Misc {
@SuppressWarnings("cast")
public static void main(String args[]) {
if ( "hello" instanceof Object ) {
System.out.println("strings are objects in java");