Suppress Eclipse warnings that arise in JLex, which we don't control
This commit is contained in:
parent
15a30c1436
commit
65672f98ba
|
@ -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.unlikelyCollectionMethodArgumentTypeStrict=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
|
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=error
|
||||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
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.unqualifiedFieldAccess=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
* IBM Corporation - initial API and implementation
|
* IBM Corporation - initial API and implementation
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
public class CastFromNull {
|
public class CastFromNull {
|
||||||
@SuppressWarnings({ "cast" })
|
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
new CastFromNull();
|
new CastFromNull();
|
||||||
Object x = (Object) null;
|
Object x = (Object) null;
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
package foo.bar.hello.world;
|
package foo.bar.hello.world;
|
||||||
|
|
||||||
public class LoopsAndLabels {
|
public class LoopsAndLabels {
|
||||||
@SuppressWarnings({ "cast", "unused" })
|
@SuppressWarnings("unused")
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
|
|
||||||
aaa: do {
|
aaa: do {
|
||||||
|
|
|
@ -39,7 +39,6 @@ package foo.bar.hello.world;
|
||||||
|
|
||||||
public class Misc {
|
public class Misc {
|
||||||
|
|
||||||
@SuppressWarnings("cast")
|
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
if ( "hello" instanceof Object ) {
|
if ( "hello" instanceof Object ) {
|
||||||
System.out.println("strings are objects in java");
|
System.out.println("strings are objects in java");
|
||||||
|
|
Loading…
Reference in New Issue