diff options
author | Jay Arthanareeswaran | 2020-06-26 08:43:19 +0000 |
---|---|---|
committer | Jay Arthanareeswaran | 2020-06-26 08:43:19 +0000 |
commit | 9b134d251d42c5818f00fd9897d556eca972ef1e (patch) | |
tree | 5d12518074b904f0fde8e03ef9169ae9ad961483 | |
parent | 34395cecb6b673f811ef9556ccfc09d17c96f9fc (diff) | |
download | eclipse.jdt.core-9b134d251d42c5818f00fd9897d556eca972ef1e.tar.gz eclipse.jdt.core-9b134d251d42c5818f00fd9897d556eca972ef1e.tar.xz eclipse.jdt.core-9b134d251d42c5818f00fd9897d556eca972ef1e.zip |
Fix warnings due to unused suppress warnings and such
Change-Id: I0daa773e85bd0ae7653427adf6ce83150a3c067b
Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
3 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java index 88aa24d971..41978bdaa4 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java @@ -1986,11 +1986,9 @@ public void test0042() { " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + "Syntax error on tokens, delete these tokens\n" + "----------\n"; - @SuppressWarnings("unused") String expected14ProblemLog = expected13ProblemLog; - @SuppressWarnings("unused") String expected15ProblemLog = "----------\n" + "1. ERROR in X.java (at line 1)\n" + diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java index 657b0ef602..3f74389a57 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java @@ -345,7 +345,6 @@ public final class AST { */ static final int JLS14_INTERNAL = JLS14; - @SuppressWarnings("unused") /* Used for Java doc only*/ private static final int JLS_Latest = JLS14; diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SearchableEnvironmentRequestor.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SearchableEnvironmentRequestor.java index 58e39ac6d9..989d03fa68 100644 --- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SearchableEnvironmentRequestor.java +++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SearchableEnvironmentRequestor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2020 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -98,6 +98,7 @@ public void acceptModule(IModuleDescription module) { /** * @see IJavaElementRequestor */ +@SuppressWarnings("unlikely-arg-type") @Override public void acceptType(IType type) { try { |