diff --git a/.github/.settings/org.eclipse.core.resources.prefs b/.github/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000000..99f26c0203
--- /dev/null
+++ b/.github/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/=UTF-8
diff --git a/.github/workflows/updateRelease.yml b/.github/workflows/updateRelease.yml
new file mode 100644
index 0000000000..cfd7cc786b
--- /dev/null
+++ b/.github/workflows/updateRelease.yml
@@ -0,0 +1,15 @@
+name: Update to next release
+on:
+ milestone:
+ types: [created]
+
+permissions:
+ contents: read
+
+jobs:
+ update:
+ if: contains(github.event.milestone.description, 'Release')
+ permissions:
+ pull-requests: write
+ contents: write
+ uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/updateRelease.yml@master
diff --git a/.gitignore b/.gitignore
index 6e021b7b44..b84935a6bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,6 @@ Snap.*
# maven
/*/target/
/target/
+
+# pomless
+.polyglot.*
\ No newline at end of file
diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
new file mode 100644
index 0000000000..0b513360e9
--- /dev/null
+++ b/.mvn/extensions.xml
@@ -0,0 +1,8 @@
+
+
+
+ org.eclipse.tycho
+ tycho-build
+ 4.0.4
+
+
\ No newline at end of file
diff --git a/org.eclipse.jdt.debug.jdi.tests/JDI Test Suite.launch b/org.eclipse.jdt.debug.jdi.tests/JDI Test Suite.launch
index 5bdc36a047..a8e27885e4 100644
--- a/org.eclipse.jdt.debug.jdi.tests/JDI Test Suite.launch
+++ b/org.eclipse.jdt.debug.jdi.tests/JDI Test Suite.launch
@@ -13,6 +13,7 @@
+
@@ -43,13 +44,10 @@
-
-
-
@@ -57,96 +55,464 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/org.eclipse.jdt.debug.jdi.tests/java19/TryVirtualThread.java b/org.eclipse.jdt.debug.jdi.tests/java19/TryVirtualThread.java
index 99745f88a3..6434b55575 100644
--- a/org.eclipse.jdt.debug.jdi.tests/java19/TryVirtualThread.java
+++ b/org.eclipse.jdt.debug.jdi.tests/java19/TryVirtualThread.java
@@ -50,7 +50,6 @@ public class TryVirtualThread implements Runnable {
/**
* Runs the test program
- * @param args
*/
public static void main(java.lang.String[] args) {
// Ensure at least one carrier thread is created.
diff --git a/org.eclipse.jdt.debug.jdi.tests/pom.xml b/org.eclipse.jdt.debug.jdi.tests/pom.xml
index 319b2964ca..88289c7c7c 100644
--- a/org.eclipse.jdt.debug.jdi.tests/pom.xml
+++ b/org.eclipse.jdt.debug.jdi.tests/pom.xml
@@ -14,7 +14,7 @@
eclipse.jdt.debugeclipse.jdt.debug
- 4.30.0-SNAPSHOT
+ 4.31.0-SNAPSHOTorg.eclipse.jdtorg.eclipse.jdt.debug.jdi.tests
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java
index 4b10a751cf..99dd62de96 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractJDITest.java
@@ -109,7 +109,24 @@ public abstract class AbstractJDITest extends TestCase {
* Constructs a test case with a default name.
*/
public AbstractJDITest() {
- super("JDI Test");
+ this("JDI Test");
+ }
+
+ public AbstractJDITest(String name) {
+ super(name);
+ }
+
+ static {
+ fTargetAddress = System.getProperty("java.home");
+ fVMLauncherName = "DefaultVMLauncher";
+ fClassPath = new File("./bin").getAbsolutePath();
+ fBootPath = "";
+ fVMType = "?";
+ }
+
+ @Override
+ public final String getName() {
+ return super.getName();
}
/**
* Returns the names of the tests that are known to not work
@@ -160,7 +177,6 @@ protected Vector getAllMatchingTests(String match) {
* @return true if a 1.6 or higher VM
* @since 3.8
*/
- @SuppressWarnings("restriction")
protected boolean is16OrGreater() {
return ((VirtualMachineImpl) fVM).isJdwpVersionGreaterOrEqual(1, 6);
}
@@ -688,7 +704,6 @@ private void launchCommandLineTarget() {
* Parse the command {@link String} to make sure we use
* {@link Runtime#exec(String[])}.
*
- * @param command
* @return the array of items from the command {@link String}
* @since 4.3
*/
@@ -843,7 +858,6 @@ private void injectVMArgs(Vector commandLine) {
* Flattens the variable size command line and calls Runtime.exec().
* @param commandLine A vector of command line argument strings.
* @return The Process created by Runtime.exec()
- * @throws IOException
*/
private Process exec(Vector commandLine) throws IOException {
String[] vmString = new String[commandLine.size()];
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractReader.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractReader.java
index c1620bc59b..911aceb0f3 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractReader.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AbstractReader.java
@@ -23,7 +23,6 @@ abstract public class AbstractReader {
/**
* Constructor
- * @param name
*/
public AbstractReader(String name) {
fName = name;
@@ -35,7 +34,6 @@ public AbstractReader(String name) {
abstract protected void readerLoop();
/**
* Start the thread that reads events.
- *
*/
public void start() {
fReaderThread = new Thread(new Runnable() {
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AccessibleTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AccessibleTest.java
index 172851989b..f754d099e2 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AccessibleTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AccessibleTest.java
@@ -28,6 +28,10 @@ public class AccessibleTest extends AbstractJDITest {
public AccessibleTest() {
super();
}
+
+ public AccessibleTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -46,19 +50,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new AccessibleTest().runSuite(args);
}
- /**
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Accessible";
- }
/**
* Test JDI isPackagePrivate().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayReferenceTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayReferenceTest.java
index 34b33e7175..b9b48f1534 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayReferenceTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayReferenceTest.java
@@ -39,6 +39,10 @@ public class ArrayReferenceTest extends AbstractJDITest {
public ArrayReferenceTest() {
super();
}
+
+ public ArrayReferenceTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -50,19 +54,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ArrayReferenceTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ArrayReference";
- }
+
/**
* Test JDI getValue(int), getValues(), getValues(int,int)
* setValue(Value,int), setValues(List) and setValues(int,List,int,int),
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayTypeTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayTypeTest.java
index 21219b517d..edf6bb6282 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayTypeTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ArrayTypeTest.java
@@ -34,6 +34,10 @@ public class ArrayTypeTest extends AbstractJDITest {
public ArrayTypeTest() {
super();
}
+
+ public ArrayTypeTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -44,19 +48,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ArrayTypeTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ArrayType";
- }
+
/**
* Test JDI componentSignature().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AutomatedSuite.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AutomatedSuite.java
index 76c6fef4c7..2039e99855 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AutomatedSuite.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/AutomatedSuite.java
@@ -16,8 +16,6 @@
import junit.framework.TestSuite;
-/**
- */
public class AutomatedSuite extends TestSuite {
/**
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BooleanValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BooleanValueTest.java
index 0aff492b4a..115c09df10 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BooleanValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BooleanValueTest.java
@@ -30,6 +30,10 @@ public class BooleanValueTest extends AbstractJDITest {
public BooleanValueTest() {
super();
}
+
+ public BooleanValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -40,19 +44,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new BooleanValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.BooleanValue";
- }
+
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BreakpointRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BreakpointRequestTest.java
index 362538c910..6d79342f96 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BreakpointRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/BreakpointRequestTest.java
@@ -28,6 +28,10 @@ public class BreakpointRequestTest extends AbstractJDITest {
public BreakpointRequestTest() {
super();
}
+
+ public BreakpointRequestTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -46,19 +50,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new BreakpointRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.request.BreakpointRequest";
- }
/**
* Test JDI location().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ByteValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ByteValueTest.java
index e0ceace515..39b93fde5c 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ByteValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ByteValueTest.java
@@ -30,6 +30,10 @@ public class ByteValueTest extends AbstractJDITest {
public ByteValueTest() {
super();
}
+
+ public ByteValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -40,19 +44,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ByteValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ByteValue";
- }
+
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/CharValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/CharValueTest.java
index d8662e7e75..85e41c02b0 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/CharValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/CharValueTest.java
@@ -30,6 +30,10 @@ public class CharValueTest extends AbstractJDITest {
public CharValueTest() {
super();
}
+
+ public CharValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -40,19 +44,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new CharValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.CharValue";
- }
+
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassLoaderReferenceTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassLoaderReferenceTest.java
index 85694178e8..a83e91f39c 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassLoaderReferenceTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassLoaderReferenceTest.java
@@ -32,6 +32,10 @@ public class ClassLoaderReferenceTest extends AbstractJDITest {
public ClassLoaderReferenceTest() {
super();
}
+
+ public ClassLoaderReferenceTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -42,29 +46,21 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ClassLoaderReferenceTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ClassLoaderReference";
- }
/**
* Test JDI definedClasses().
*/
public void testJDIDefinedClasses() {
Iterator> defined = fClassLoader.definedClasses().iterator();
int i = 0;
- while (defined.hasNext())
+ while (defined.hasNext()) {
assertTrue(
Integer.toString(i++),
defined.next() instanceof ReferenceType);
+ }
}
/**
* Test JDI visibleClasses().
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventTest.java
index eaacd1d29a..2bebc78884 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventTest.java
@@ -29,6 +29,10 @@ public class ClassPrepareEventTest extends AbstractJDITest {
public ClassPrepareEventTest() {
super();
}
+
+ public ClassPrepareEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -54,19 +58,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ClassPrepareEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.ClassPrepareEvent";
- }
/**
* Test JDI referenceType().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventWaiter.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventWaiter.java
index eaa7bef6dd..12c6211d0c 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventWaiter.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareEventWaiter.java
@@ -24,9 +24,6 @@ public class ClassPrepareEventWaiter extends EventWaiter {
/**
* Constructor
- * @param request
- * @param shouldGo
- * @param className
*/
public ClassPrepareEventWaiter(EventRequest request, boolean shouldGo, String className) {
super(request, shouldGo);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareRequestTest.java
index 4f69ad9e31..ae32c3398e 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassPrepareRequestTest.java
@@ -28,6 +28,10 @@ public class ClassPrepareRequestTest extends AbstractJDITest {
public ClassPrepareRequestTest() {
super();
}
+
+ public ClassPrepareRequestTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -36,19 +40,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(String[] args) {
new ClassPrepareRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.request.ClassPrepareRequest";
- }
/**
* Test JDI addClassFilter(String).
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassTypeTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassTypeTest.java
index 1e853597fa..2d3486dc53 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassTypeTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassTypeTest.java
@@ -47,6 +47,10 @@ public class ClassTypeTest extends AbstractJDITest {
public ClassTypeTest() {
super();
}
+
+ public ClassTypeTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -57,19 +61,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ClassTypeTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ClassType";
- }
/**
* Test JDI allFields().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassesByNameTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassesByNameTest.java
index 5c6f980e80..a99558c63c 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassesByNameTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ClassesByNameTest.java
@@ -29,6 +29,10 @@ public class ClassesByNameTest extends AbstractJDITest {
public ClassesByNameTest() {
super();
}
+
+ public ClassesByNameTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -38,19 +42,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ClassesByNameTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.VirtualMachine.classesByName";
- }
/**
* Test that there is a class object for 'int[]'
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/DoubleValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/DoubleValueTest.java
index 248e214912..d151cb3b27 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/DoubleValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/DoubleValueTest.java
@@ -30,6 +30,10 @@ public class DoubleValueTest extends AbstractJDITest {
public DoubleValueTest() {
super();
}
+
+ public DoubleValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -40,19 +44,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new DoubleValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.DoubleValue";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventListener.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventListener.java
index 85176e2c15..fb700906b5 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventListener.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventListener.java
@@ -36,89 +36,76 @@ public interface EventListener {
/**
* Handles an access watchpoint event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean accessWatchpoint(AccessWatchpointEvent event);
/**
* Handles a breakpoint event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean breakpoint(BreakpointEvent event);
/**
* Handles a class prepare event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean classPrepare(ClassPrepareEvent event);
/**
* Handles a class unload event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean classUnload(ClassUnloadEvent event);
/**
* Handles an exception event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean exception(ExceptionEvent event);
/**
* Handles a method entry event
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean methodEntry(MethodEntryEvent event);
/**
* Handles a method exit event
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean methodExit(MethodExitEvent event);
/**
* Handles a modification watchpoint event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean modificationWatchpoint(ModificationWatchpointEvent event);
/**
* Handles a step event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean step(StepEvent event);
/**
* Handles a thread death event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean threadDeath(ThreadDeathEvent event);
/**
* Handles a thread start event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean threadStart(ThreadStartEvent event);
/**
* Handles a vm death event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean vmDeath(VMDeathEvent event);
/**
* Handles a vm disconnect event.
* Returns whether the VM should be resumed if it was interrupted.
- * @param event
* @return whether the VM should be resumed if it was interrupted.
*/
public boolean vmDisconnect(VMDisconnectEvent event);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventReader.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventReader.java
index 7c6dae2f36..0f738b973e 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventReader.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventReader.java
@@ -47,8 +47,6 @@ public class EventReader extends AbstractReader {
/**
* Constructor
- * @param name
- * @param queue
*/
public EventReader(String name, EventQueue queue) {
super(name);
@@ -56,7 +54,6 @@ public EventReader(String name, EventQueue queue) {
}
/**
* Registers the given event listener.
- * @param listener
*/
public synchronized void addEventListener(EventListener listener) {
fEventListeners.addElement(listener);
@@ -141,7 +138,6 @@ protected void readerLoop() {
}
/**
* De-registers the given event listener.
- * @param listener
*/
public synchronized void removeEventListener(EventListener listener) {
fEventListeners.removeElement(listener);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestManagerTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestManagerTest.java
index 110fa4ba96..bc0231500a 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestManagerTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestManagerTest.java
@@ -42,6 +42,10 @@ public class EventRequestManagerTest extends AbstractJDITest {
public EventRequestManagerTest() {
super();
}
+
+ public EventRequestManagerTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -52,26 +56,18 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new EventRequestManagerTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.request.EventRequestManager";
- }
/**
* Test JDI createAccessWatchpointRequest(Field), accessWatchpointRequests()
* and deleteEventRequest(EventRequest)
*/
public void testJDIAccessWatchpointRequest() {
- if (!fVM.canWatchFieldAccess())
+ if (!fVM.canWatchFieldAccess()) {
return;
+ }
// Create an access watchpoint request
Field field = getField();
@@ -182,8 +178,9 @@ public void testJDIExceptionRequest() {
* accessWatchpointRequests() and deleteEventRequest(EventRequest)
*/
public void testJDIModificationWatchpointRequest() {
- if (!fVM.canWatchFieldAccess())
+ if (!fVM.canWatchFieldAccess()) {
return;
+ }
// Create a modification watchpoint
Field field = getField();
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestTest.java
index 959be35611..de30ac55b9 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventRequestTest.java
@@ -32,6 +32,10 @@ public class EventRequestTest extends AbstractJDITest {
public EventRequestTest() {
super();
}
+
+ public EventRequestTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -66,19 +70,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new EventRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.request.EventRequest";
- }
/**
* Test JDI disable(), enable(), isEnable() and setEnable(boolean).
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventTest.java
index 31fae24165..1950568740 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventTest.java
@@ -32,6 +32,10 @@ public class EventTest extends AbstractJDITest {
public EventTest() {
super();
}
+
+ public EventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -55,9 +59,6 @@ public void localSetUp() {
request,
triggerAndWait(request, "BreakpointEvent", true));
- // TODO ClassPrepareEvent
- // TODO ClassUnloadEvent
- // TODO ExceptionEvent
// ModificationWatchpointEvent
if (fVM.canWatchFieldModification()) {
@@ -67,10 +68,6 @@ public void localSetUp() {
triggerAndWait(request, "ModificationWatchpointEvent", true));
}
- // TODO StepEvent
- // TODO ThreadEndEvent
- // TODO ThreadStartEvent
- // TODO VMDeathEvent
}
/**
@@ -91,19 +88,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new EventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.Event";
- }
/**
* Test JDI request().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventWaiter.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventWaiter.java
index 1670da6f86..9cf28d386e 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventWaiter.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/EventWaiter.java
@@ -40,8 +40,6 @@ public class EventWaiter implements EventListener {
/**
* Creates a new EventWaiter for the given request. Sets whether it
* should let the VM go after it got the event.
- * @param request
- * @param shouldGo
*/
public EventWaiter(EventRequest request, boolean shouldGo) {
fRequest = request;
@@ -159,7 +157,6 @@ public boolean vmDisconnect(VMDisconnectEvent event) {
/**
* Waits for the first event corresponding to this waiter's request.
* @return if the vm should be restarted
- * @throws InterruptedException
*/
synchronized public Event waitEvent() throws InterruptedException {
if (fEvent == null) {
@@ -172,9 +169,7 @@ synchronized public Event waitEvent() throws InterruptedException {
/**
* Waits for the first event corresponding to this waiter's request
* for the given time (in ms). If it times out, return null.
- * @param time
* @return if the vm should be restarted or not
- * @throws InterruptedException
*/
synchronized public Event waitEvent(long time)
throws InterruptedException {
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionEventTest.java
index b3fbb24eea..359f043161 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionEventTest.java
@@ -29,6 +29,10 @@ public class ExceptionEventTest extends AbstractJDITest {
public ExceptionEventTest() {
super();
}
+
+ public ExceptionEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -53,19 +57,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ExceptionEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.ExceptionEvent";
- }
/**
* Test JDI catchLocation().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionRequestTest.java
index bfdbe9c3eb..437c959df9 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ExceptionRequestTest.java
@@ -28,6 +28,10 @@ public class ExceptionRequestTest extends AbstractJDITest {
public ExceptionRequestTest() {
super();
}
+
+ public ExceptionRequestTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -46,19 +50,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ExceptionRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.request.ExceptionRequest";
- }
/**
* Test JDI exception().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FieldTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FieldTest.java
index e1da9ea416..13a55adbdd 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FieldTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FieldTest.java
@@ -29,6 +29,10 @@ public class FieldTest extends AbstractJDITest {
public FieldTest() {
super();
}
+
+ public FieldTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -39,19 +43,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new FieldTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Field";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FileConsoleReader.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FileConsoleReader.java
index c19a0acb4a..fea2c24398 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FileConsoleReader.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FileConsoleReader.java
@@ -29,9 +29,6 @@ public class FileConsoleReader extends AbstractReader {
private FileOutputStream fFileOutputStream;
/**
* Creates a new console reader that will read from the given input stream.
- * @param name
- * @param fileName
- * @param input
*/
public FileConsoleReader(String name, String fileName, InputStream input) {
super(name);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FloatValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FloatValueTest.java
index 1e40fd9da0..02f86f3282 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FloatValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/FloatValueTest.java
@@ -30,6 +30,10 @@ public class FloatValueTest extends AbstractJDITest {
public FloatValueTest() {
super();
}
+
+ public FloatValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -40,19 +44,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new FloatValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.FloatType";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ForceEarlyReturnTests.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ForceEarlyReturnTests.java
index fd737187c0..e8ea84b55a 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ForceEarlyReturnTests.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ForceEarlyReturnTests.java
@@ -70,7 +70,7 @@ public void testForceEarlyReturnIntType() {
if(tref.isSuspended()) {
if(tref.isAtBreakpoint()) {
method = getMethod("printNumber", "(Ljava/io/OutputStream;I)I");
- br = getBreakpointRequest(method.locationsOfLine(207).get(0));
+ br = getBreakpointRequest(method.locationsOfLine(196).get(0));
br.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
br.enable();
waiter = new EventWaiter(br, true);
@@ -85,7 +85,6 @@ public void testForceEarlyReturnIntType() {
System.out.println(val);
assertTrue("value should be a StringReference", val instanceof StringReference);
fEventReader.removeEventListener(waiter);
- //TODO make sure this works with the newest versions of the 1.6VM
assertEquals("values should be 'foobar'", "foobar", ((StringReference) val).value());
}
}
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/HotCodeReplacementTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/HotCodeReplacementTest.java
index 19a30b1d3f..baec8ca862 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/HotCodeReplacementTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/HotCodeReplacementTest.java
@@ -38,6 +38,10 @@ public class HotCodeReplacementTest extends AbstractJDITest {
public HotCodeReplacementTest() {
super();
}
+
+ public HotCodeReplacementTest(String name) {
+ super(name);
+ }
private void dropTopFrame(
ThreadReference thread,
org.eclipse.jdi.hcr.ThreadReference hcrThread) {
@@ -92,19 +96,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(String[] args) {
new HotCodeReplacementTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "Hot code replacement extension to JDI (org.eclipse.jdi.hcr) tests";
- }
private void reenterOnExit(ThreadReference thread) {
// Get top frame's location
Location location = null;
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/IntegerValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/IntegerValueTest.java
index 214f3dc2ef..4963d81602 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/IntegerValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/IntegerValueTest.java
@@ -30,6 +30,10 @@ public class IntegerValueTest extends AbstractJDITest {
public IntegerValueTest() {
super();
}
+
+ public IntegerValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -40,19 +44,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new IntegerValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.IntegerValue";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/InterfaceTypeTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/InterfaceTypeTest.java
index 750bdf8dd3..feeaf2d796 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/InterfaceTypeTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/InterfaceTypeTest.java
@@ -34,6 +34,10 @@ public class InterfaceTypeTest extends AbstractJDITest {
public InterfaceTypeTest() {
super();
}
+
+ public InterfaceTypeTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -44,19 +48,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new InterfaceTypeTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.InterfaceType";
- }
/**
* Test JDI allFields().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestCase.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestCase.java
index 627fdfa881..6ca52f4553 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestCase.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestCase.java
@@ -26,8 +26,6 @@ public class JDITestCase extends TestCase {
private final AbstractJDITest fTest;
/**
* Creates a new test for the given JDI test.
- * @param test
- * @param name
*/
public JDITestCase(AbstractJDITest test, String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestSuite.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestSuite.java
index 2eabba68f2..bf507762d0 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestSuite.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/JDITestSuite.java
@@ -26,7 +26,6 @@ public class JDITestSuite extends TestSuite {
private final AbstractJDITest fTest;
/**
* Creates a new test suite for the given JDI test.
- * @param test
*/
public JDITestSuite(AbstractJDITest test) {
super();
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocalVariableTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocalVariableTest.java
index 6837c0ca40..0b78f434db 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocalVariableTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocalVariableTest.java
@@ -32,6 +32,10 @@ public class LocalVariableTest extends AbstractJDITest {
public LocalVariableTest() {
super();
}
+
+ public LocalVariableTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -45,19 +49,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new LocalVariableTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.LocalVariable";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocatableTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocatableTest.java
index 2a0958ec00..5517cba1dc 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocatableTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocatableTest.java
@@ -40,6 +40,10 @@ public class LocatableTest extends AbstractJDITest {
public LocatableTest() {
super();
}
+
+ public LocatableTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -100,19 +104,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new LocatableTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Locatable";
- }
/**
* Test JDI location()
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocationTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocationTest.java
index ae351ba360..cd1fb1a5a1 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocationTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LocationTest.java
@@ -32,6 +32,10 @@ public class LocationTest extends AbstractJDITest {
public LocationTest() {
super();
}
+
+ public LocationTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -47,19 +51,11 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new LocationTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Location";
- }
+
/**
* Test JDI codeIndex().
*/
@@ -90,7 +86,7 @@ public void testJDIEquality() {
* Test JDI lineNumber().
*/
public void testJDILineNumber() {
- assertEquals("1", 191, fLocation.lineNumber());
+ assertEquals("1", 180, fLocation.lineNumber());
}
/**
* Test JDI method().
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LongValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LongValueTest.java
index ae048a71d2..b338bdd544 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LongValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/LongValueTest.java
@@ -29,6 +29,10 @@ public class LongValueTest extends AbstractJDITest {
public LongValueTest() {
super();
}
+
+ public LongValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -39,19 +43,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new LongValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.LongValue";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodEntryRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodEntryRequestTest.java
index 38dd0ed33d..9039ae215f 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodEntryRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodEntryRequestTest.java
@@ -25,7 +25,11 @@
* Tests a method entry request
*/
public class MethodEntryRequestTest extends AbstractJDITest {
-
+ public MethodEntryRequestTest() {
+ }
+ public MethodEntryRequestTest(String name) {
+ super(name);
+ }
/**
* @see org.eclipse.debug.jdi.tests.AbstractJDITest#localSetUp()
*/
@@ -44,20 +48,10 @@ public void localTearDown() {
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new MethodEntryRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.MethodEntryRequest";
- }
-
/**
* Creates and returns a new MethodEntryRequest
* @return a new MethodEntryRequest
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodExitRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodExitRequestTest.java
index e12d54e2a0..9802c383f1 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodExitRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodExitRequestTest.java
@@ -26,6 +26,11 @@
*/
public class MethodExitRequestTest extends AbstractJDITest {
+ public MethodExitRequestTest() {
+ }
+ public MethodExitRequestTest(String name) {
+ super(name);
+ }
/**
* @see org.eclipse.debug.jdi.tests.AbstractJDITest#localSetUp()
*/
@@ -43,20 +48,10 @@ public void localTearDown() {
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new MethodExitRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.MethodExitRequest";
- }
-
/**
* Creates and returns a new MethodExitRequest
* @return a new MethodExitRequest
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodTest.java
index dd4a7fb6dd..11214f25a7 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MethodTest.java
@@ -38,6 +38,10 @@ public class MethodTest extends AbstractJDITest {
public MethodTest() {
super();
}
+
+ public MethodTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -51,19 +55,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new MethodTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Method";
- }
/**
* Test JDI arguments() and JDWP 'Method - Get variable table'.
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MirrorTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MirrorTest.java
index b6f770d004..04883c341d 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MirrorTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/MirrorTest.java
@@ -33,6 +33,10 @@ public class MirrorTest extends AbstractJDITest {
public MirrorTest() {
super();
}
+
+ public MirrorTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -46,8 +50,10 @@ public void localSetUp() {
fMirrors = new LinkedList<>();
if (fVM.canWatchFieldAccess())
+ {
fMirrors.add(getAccessWatchpointRequest());
// AccessWatchpointRequest
+ }
fMirrors.add(getObjectArrayReference()); // ArrayReference
fMirrors.add(getArrayType()); // ArrayType
@@ -70,8 +76,10 @@ public void localSetUp() {
fMirrors.add(getMethod()); // Method
if (fVM.canWatchFieldModification())
+ {
fMirrors.add(getModificationWatchpointRequest());
// ModificationWatchpointRequest
+ }
fMirrors.add(getObjectReference()); // ObjectReference
fMirrors.add(fVM.mirrorOf((short) 12345)); // ShortValue
@@ -91,36 +99,30 @@ public void localTearDown() {
Object mirror = iterator.next();
// Delete the access watchpoint request we created in this test
- if (mirror instanceof AccessWatchpointRequest)
+ if (mirror instanceof AccessWatchpointRequest) {
fVM.eventRequestManager().deleteEventRequest(
(AccessWatchpointRequest) mirror);
+ }
// Delete the breakpoint request we created in this test
- if (mirror instanceof BreakpointRequest)
+ if (mirror instanceof BreakpointRequest) {
fVM.eventRequestManager().deleteEventRequest(
(BreakpointRequest) mirror);
+ }
// Delete the modification watchpoint request we created in this test
- if (mirror instanceof ModificationWatchpointRequest)
+ if (mirror instanceof ModificationWatchpointRequest) {
fVM.eventRequestManager().deleteEventRequest(
(ModificationWatchpointRequest) mirror);
+ }
}
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new MirrorTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Mirror";
- }
/**
* Test JDI toString().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ModificationWatchpointEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ModificationWatchpointEventTest.java
index 2d1456d9aa..b83343425f 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ModificationWatchpointEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ModificationWatchpointEventTest.java
@@ -30,6 +30,10 @@ public class ModificationWatchpointEventTest extends AbstractJDITest {
public ModificationWatchpointEventTest() {
super();
}
+
+ public ModificationWatchpointEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -60,19 +64,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ModificationWatchpointEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.ModificationWatchpointEvent";
- }
/**
* Test JDI valueToBe().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/NullConsoleReader.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/NullConsoleReader.java
index 9753007754..bd384663ba 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/NullConsoleReader.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/NullConsoleReader.java
@@ -27,8 +27,6 @@ public class NullConsoleReader extends AbstractReader {
private final InputStream fInput;
/**
* Constructor
- * @param name
- * @param input
*/
public NullConsoleReader(String name, InputStream input) {
super(name);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ObjectReferenceTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ObjectReferenceTest.java
index a6ca2101a7..155c5e1fc6 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ObjectReferenceTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ObjectReferenceTest.java
@@ -54,6 +54,10 @@ public class ObjectReferenceTest extends AbstractJDITest {
public ObjectReferenceTest() {
super();
}
+
+ public ObjectReferenceTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -76,19 +80,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ObjectReferenceTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ObjectReference";
- }
/**
* Returns all tests
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/PrimitiveValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/PrimitiveValueTest.java
index b121cccc6a..c6398ccea4 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/PrimitiveValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/PrimitiveValueTest.java
@@ -35,6 +35,10 @@ public class PrimitiveValueTest extends AbstractJDITest {
public PrimitiveValueTest() {
super();
}
+
+ public PrimitiveValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -52,19 +56,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new PrimitiveValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.PrimitiveValue";
- }
/**
* Test JDI booleanValue().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ReferenceTypeTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ReferenceTypeTest.java
index 7829c26e5a..b78a517d5a 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ReferenceTypeTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ReferenceTypeTest.java
@@ -56,6 +56,10 @@ public class ReferenceTypeTest extends AbstractJDITest {
public ReferenceTypeTest() {
super();
}
+
+ public ReferenceTypeTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -69,19 +73,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ReferenceTypeTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ReferenceType";
- }
/**
* Test JDI allFields().
*/
@@ -141,7 +136,9 @@ public void testJDIEquality() {
ReferenceType type = iterator.next();
assertTrue("1." + type.name() + ".1", type.equals(type));
assertFalse("1." + type.name() + ".2", type.equals(other));
- assertFalse("1." + type.name() + ".3", type.equals(fVM));
+ @SuppressWarnings("unlikely-arg-type")
+ boolean wrongClass = type.equals(fVM);
+ assertFalse("1." + type.name() + ".3", wrongClass);
assertFalse("1." + type.name() + ".4", type.equals(new Object()));
assertFalse("1." + type.name() + ".5", type.equals(null));
assertNotEquals("1." + type.name() + ".6", type.hashCode(), other.hashCode());
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ShortValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ShortValueTest.java
index 78f93df85f..1c5bb87bff 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ShortValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ShortValueTest.java
@@ -29,6 +29,10 @@ public class ShortValueTest extends AbstractJDITest {
public ShortValueTest() {
super();
}
+
+ public ShortValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -39,19 +43,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ShortValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ShortValue";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/SourceNameFilterTests.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/SourceNameFilterTests.java
index 2dc49d29d6..b1137f9736 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/SourceNameFilterTests.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/SourceNameFilterTests.java
@@ -32,11 +32,10 @@ public void localSetUp() {}
/**
* test to see if we can use source name filters from a 1.6 VM, and
* that we cannot from a pre 1.6 VM
- *
*/
public void testCanUseSourceNameFilters() {
if(fVM.version().indexOf("1.6") > -1) {
- //TODO currently, as of 1.6 beta 2 this capability is disabled in 1.6 VMs, so lets make this test pass in that event
+ // as of 1.6 beta 2 this capability is disabled in 1.6 VMs, so lets make this test pass in that event
assertTrue("Should have source name filter capabilities", (fVM.canUseSourceNameFilters() ? true : true));
}
else {
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StackFrameTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StackFrameTest.java
index b99e3672b2..c206cc0066 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StackFrameTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StackFrameTest.java
@@ -38,6 +38,10 @@ public class StackFrameTest extends AbstractJDITest {
public StackFrameTest() {
super();
}
+
+ public StackFrameTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -49,19 +53,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new StackFrameTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.StackFrame";
- }
/**
* Test JDI equals() and hashCode().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StepEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StepEventTest.java
index e66c5dc228..c77b09e7ca 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StepEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StepEventTest.java
@@ -31,6 +31,10 @@ public class StepEventTest extends AbstractJDITest {
public StepEventTest() {
super();
}
+
+ public StepEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -49,19 +53,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new StepEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.StepEvent";
- }
/**
* Test JDI thread().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StringReferenceTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StringReferenceTest.java
index 8d2faba930..c1e5d1f7a1 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StringReferenceTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/StringReferenceTest.java
@@ -28,6 +28,10 @@ public class StringReferenceTest extends AbstractJDITest {
public StringReferenceTest() {
super();
}
+
+ public StringReferenceTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -38,19 +42,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new StringReferenceTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.StringReference";
- }
/**
* Test JDI value() and JDWP 'String - Get value'.
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TestAll.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TestAll.java
index afcba9e8a8..16697d03ad 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TestAll.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TestAll.java
@@ -99,8 +99,6 @@ protected static Vector> getAllTestCases(VMInformation info) {
/**
* Run all tests with the given arguments.
* @see AbstractJDITest for details on the arguments.
- * @param arguments
- * @throws Throwable
*/
public static void main(String[] arguments) throws Throwable {
// Create test result
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadDeathEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadDeathEventTest.java
index 363d17b420..20f416d452 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadDeathEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadDeathEventTest.java
@@ -28,6 +28,10 @@ public class ThreadDeathEventTest extends AbstractJDITest {
public ThreadDeathEventTest() {
super();
}
+
+ public ThreadDeathEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -56,19 +60,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ThreadDeathEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.ThreadDeathEvent";
- }
/**
* Test JDI thread().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadGroupReferenceTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadGroupReferenceTest.java
index 98969beea4..141a77c80b 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadGroupReferenceTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadGroupReferenceTest.java
@@ -32,6 +32,10 @@ public class ThreadGroupReferenceTest extends AbstractJDITest {
public ThreadGroupReferenceTest() {
super();
}
+
+ public ThreadGroupReferenceTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -53,19 +57,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ThreadGroupReferenceTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ThreadGroupReference";
- }
/**
* Test JDI name() and JDWP 'ThreadGroup - Get name'.
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadReferenceTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadReferenceTest.java
index 1148455d22..bb2feba459 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadReferenceTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadReferenceTest.java
@@ -44,6 +44,10 @@ public class ThreadReferenceTest extends AbstractJDITest {
public ThreadReferenceTest() {
super();
}
+
+ public ThreadReferenceTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -54,19 +58,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ThreadReferenceTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.ThreadReference";
- }
/**
* Test JDI currentContendedMonitor().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadStartEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadStartEventTest.java
index 6c2149ec13..4da8903755 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadStartEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ThreadStartEventTest.java
@@ -27,6 +27,10 @@ public class ThreadStartEventTest extends AbstractJDITest {
public ThreadStartEventTest() {
super();
}
+
+ public ThreadStartEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -55,19 +59,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ThreadStartEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.ThreadStartEvent";
- }
/**
* Test JDI thread().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeComponentTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeComponentTest.java
index 00a7f25896..c2075e03dc 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeComponentTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeComponentTest.java
@@ -28,6 +28,10 @@ public class TypeComponentTest extends AbstractJDITest {
public TypeComponentTest() {
super();
}
+
+ public TypeComponentTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -41,19 +45,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new TypeComponentTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.TypeComponent";
- }
/**
* Test JDI declaringType().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeTest.java
index 34357bbaf9..4165fda78e 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/TypeTest.java
@@ -57,6 +57,10 @@ public class TypeTest extends AbstractJDITest {
public TypeTest() {
super();
}
+
+ public TypeTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -97,19 +101,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new TypeTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Type";
- }
/**
* Test JDI signature().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventTest.java
index 321c62e3e5..f667e22535 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventTest.java
@@ -30,6 +30,10 @@ public class VMDisconnectEventTest extends AbstractJDITest {
public VMDisconnectEventTest() {
super();
}
+
+ public VMDisconnectEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -63,19 +67,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new VMDisconnectEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.VMDeathEvent";
- }
/**
* Test that we received the event.
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventWaiter.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventWaiter.java
index 8104e3fe93..9d83730cc9 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventWaiter.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisconnectEventWaiter.java
@@ -21,8 +21,6 @@ public class VMDisconnectEventWaiter extends EventWaiter {
/**
* Constructor
- * @param request
- * @param shouldGo
*/
public VMDisconnectEventWaiter(com.sun.jdi.request.EventRequest request, boolean shouldGo) {
super(request, shouldGo);
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisposeTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisposeTest.java
index e436449e76..9901714383 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisposeTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VMDisposeTest.java
@@ -25,6 +25,10 @@ public class VMDisposeTest extends AbstractJDITest {
public VMDisposeTest() {
super();
}
+
+ public VMDisposeTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -33,19 +37,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new VMDisposeTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.VirtualMachine.dispose";
- }
/**
* Test that we received the event.
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ValueTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ValueTest.java
index e7f51e25b7..31530a56d0 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ValueTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/ValueTest.java
@@ -35,6 +35,10 @@ public class ValueTest extends AbstractJDITest {
public ValueTest() {
super();
}
+
+ public ValueTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -56,19 +60,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new ValueTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.Value";
- }
/**
* Test JDI type().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineExitTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineExitTest.java
index 5aa37b1fa5..ba51170b76 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineExitTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineExitTest.java
@@ -25,6 +25,10 @@ public class VirtualMachineExitTest extends AbstractJDITest {
public VirtualMachineExitTest() {
super();
}
+
+ public VirtualMachineExitTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -44,19 +48,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(String[] args) {
new VirtualMachineExitTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.VirtualMachine.exit(int)";
- }
/**
* Test JDI exit().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineTest.java
index 84f769d6c1..cfd201b4f6 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualMachineTest.java
@@ -48,6 +48,10 @@ public class VirtualMachineTest extends AbstractJDITest {
public VirtualMachineTest() {
super();
}
+
+ public VirtualMachineTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -56,19 +60,10 @@ public void localSetUp() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new VirtualMachineTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.VirtualMachine";
- }
/**
* Don't start the program yet, so that the testNotStarted* tests can run before.
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualThreadTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualThreadTest.java
index b648e6c748..65b54c3f1f 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualThreadTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/VirtualThreadTest.java
@@ -62,9 +62,6 @@ public VirtualThreadTest() {
/**
* Init the fields that are used by this test only.
- *
- * @throws SecurityException
- * @throws NoSuchFieldException
*/
@Override
public void localSetUp() {
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointEventTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointEventTest.java
index df732f6d38..f81d303232 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointEventTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointEventTest.java
@@ -37,6 +37,10 @@ public class WatchpointEventTest extends AbstractJDITest {
public WatchpointEventTest() {
super();
}
+
+ public WatchpointEventTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -88,19 +92,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new WatchpointEventTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.event.WatchpointEvent";
- }
/**
* Test JDI field().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointRequestTest.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointRequestTest.java
index ab773cca40..1f1f6cf531 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointRequestTest.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/WatchpointRequestTest.java
@@ -28,6 +28,10 @@ public class WatchpointRequestTest extends AbstractJDITest {
public WatchpointRequestTest() {
super();
}
+
+ public WatchpointRequestTest(String name) {
+ super(name);
+ }
/**
* Init the fields that are used by this test only.
*/
@@ -51,19 +55,10 @@ public void localTearDown() {
}
/**
* Run all tests and output to standard output.
- * @param args
*/
public static void main(java.lang.String[] args) {
new WatchpointRequestTest().runSuite(args);
}
- /**
- * Gets the name of the test case.
- * @see junit.framework.TestCase#getName()
- */
- @Override
- public String getName() {
- return "com.sun.jdi.request.WatchpointRequest";
- }
/**
* Test JDI field().
*/
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/MainClass.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/MainClass.java
index c0203aaba2..e04b8291f7 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/MainClass.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/MainClass.java
@@ -79,8 +79,6 @@ public class MainClass extends Date implements Runnable, Printable {
*/
public static Thread fMainThread;
- /**
- */
public static String[] fArray = new String[] { "foo", "bar", "hop" };
/**
@@ -113,9 +111,6 @@ public MainClass() {}
* Constructor
* Used to test ClassType.newInstance
* @see ClassTypeTest
- * @param i
- * @param o1
- * @param o2
*/
public MainClass(int i, Object o1, Object o2) {
}
@@ -123,7 +118,6 @@ public MainClass(int i, Object o1, Object o2) {
/**
* For invocation tests
* @param x the integer
- * @param o
* @return a string object representing the specified interger value
*/
private static String invoke1(int x, Object o) {
@@ -142,8 +136,6 @@ private static void invoke2() {
/**
* For invocation tests
- * @param str
- * @param o
* @return an the integer value of the specified string
*/
private int invoke3(String str, Object o) {
@@ -152,20 +144,17 @@ private int invoke3(String str, Object o) {
/**
* For invocation tests
* @return nothing, only throws an exception
- * @throws java.io.EOFException
*/
private long invoke4() throws java.io.EOFException {
throw new java.io.EOFException();
}
/**
* For variables test
- * @param l
*/
private void variablesTest(long l) {}
/**
* Runs the test program
- * @param args
*/
public static void main(java.lang.String[] args) {
// Start the test program
diff --git a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/Printable.java b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/Printable.java
index 54b32cfac6..0ca53bcd66 100644
--- a/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/Printable.java
+++ b/org.eclipse.jdt.debug.jdi.tests/tests/org/eclipse/debug/jdi/tests/program/Printable.java
@@ -25,9 +25,6 @@
import java.io.OutputStream;
-/**
- *
- */
public interface Printable extends Cloneable {
/**
* the number 1
@@ -35,7 +32,6 @@ public interface Printable extends Cloneable {
int CONSTANT = 1;
/**
* Prints to the specified output stream
- * @param out
*/
public void print(OutputStream out);
}
diff --git a/org.eclipse.jdt.debug.tests/.settings/org.eclipse.pde.prefs b/org.eclipse.jdt.debug.tests/.settings/org.eclipse.pde.prefs
index d8cb33851c..9ca1a6569c 100644
--- a/org.eclipse.jdt.debug.tests/.settings/org.eclipse.pde.prefs
+++ b/org.eclipse.jdt.debug.tests/.settings/org.eclipse.pde.prefs
@@ -11,7 +11,8 @@ compilers.p.build.output.library=1
compilers.p.build.source.library=1
compilers.p.build.src.includes=1
compilers.p.deprecated=2
-compilers.p.discouraged-class=1
+compilers.p.discouraged-class=2
+compilers.p.exec-env-too-low=1
compilers.p.illegal-att-value=0
compilers.p.internal=1
compilers.p.matching-pom-version=0
@@ -20,7 +21,9 @@ compilers.p.missing-version-export-package=2
compilers.p.missing-version-import-package=2
compilers.p.missing-version-require-bundle=2
compilers.p.no-required-att=1
+compilers.p.no.automatic.module=1
compilers.p.not-externalized-att=0
+compilers.p.service.component.without.lazyactivation=1
compilers.p.unknown-attribute=0
compilers.p.unknown-class=1
compilers.p.unknown-element=2
diff --git a/org.eclipse.jdt.debug.tests/META-INF/MANIFEST.MF b/org.eclipse.jdt.debug.tests/META-INF/MANIFEST.MF
index 6949995f27..e84465577a 100644
--- a/org.eclipse.jdt.debug.tests/META-INF/MANIFEST.MF
+++ b/org.eclipse.jdt.debug.tests/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jdt.debug.tests; singleton:=true
-Bundle-Version: 3.12.200.qualifier
+Bundle-Version: 3.12.300.qualifier
Bundle-ClassPath: javadebugtests.jar
Bundle-Activator: org.eclipse.jdt.debug.testplugin.JavaTestPlugin
Bundle-Vendor: %providerName
diff --git a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/AbstractJavaStackTraceConsoleTest.java b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/AbstractJavaStackTraceConsoleTest.java
index cebe2bb232..525a64a4b7 100644
--- a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/AbstractJavaStackTraceConsoleTest.java
+++ b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/AbstractJavaStackTraceConsoleTest.java
@@ -221,7 +221,6 @@ protected int getLineIndentation(String line) {
* @param text
* new console text
* @return the consoles document
- * @throws Exception
*/
protected IDocument consoleDocumentFormatted(String text) throws Exception {
IDocument document = sync(() -> {
diff --git a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/ConsoleTerminateAllActionTests.java b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/ConsoleTerminateAllActionTests.java
index b8498d71a0..9e21ba5cc7 100644
--- a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/ConsoleTerminateAllActionTests.java
+++ b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/ConsoleTerminateAllActionTests.java
@@ -31,7 +31,6 @@
/**
* Test the Terminate All action in Console view
- *
*/
public class ConsoleTerminateAllActionTests extends AbstractDebugTest {
diff --git a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleEchoActionDelegate.java b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleEchoActionDelegate.java
index 0be3632599..1276c4e993 100644
--- a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleEchoActionDelegate.java
+++ b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleEchoActionDelegate.java
@@ -76,7 +76,6 @@ public void run() {
/**
* Actually runs the test
- * @param console
*/
public void runTest(IOConsole console) {
final Display display = Display.getDefault();
diff --git a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleTests.java b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleTests.java
index 5978bc9c44..73b8dad578 100644
--- a/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleTests.java
+++ b/org.eclipse.jdt.debug.tests/console tests/org/eclipse/jdt/debug/tests/console/IOConsoleTests.java
@@ -33,7 +33,6 @@ public class IOConsoleTests extends AbstractDebugTest implements IPatternMatchLi
/**
* Constructor
- * @param name
*/
public IOConsoleTests(String name) {
super(name);
@@ -41,7 +40,6 @@ public IOConsoleTests(String name) {
/**
* Tests that the pattern matcher will find a specific pattern
- * @throws Exception
*/
public void testPatternMatchListener() throws Exception {
MessageConsole console = new MessageConsole("Test console", null);
diff --git a/org.eclipse.jdt.debug.tests/pom.xml b/org.eclipse.jdt.debug.tests/pom.xml
index cb78548726..b0c20f04be 100644
--- a/org.eclipse.jdt.debug.tests/pom.xml
+++ b/org.eclipse.jdt.debug.tests/pom.xml
@@ -14,11 +14,11 @@
eclipse.jdt.debugeclipse.jdt.debug
- 4.30.0-SNAPSHOT
+ 4.31.0-SNAPSHOTorg.eclipse.jdtorg.eclipse.jdt.debug.tests
- 3.12.200-SNAPSHOT
+ 3.12.300-SNAPSHOTeclipse-test-plugin${tests.ignoredWarnings}
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ConsoleLineTracker.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ConsoleLineTracker.java
index c923b0c49c..4be99096d6 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ConsoleLineTracker.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ConsoleLineTracker.java
@@ -31,8 +31,6 @@ public class ConsoleLineTracker implements IConsoleLineTrackerExtension {
/**
* Sets the delegate, possibly null
- *
- * @param tracker
*/
public static void setDelegate(IConsoleLineTrackerExtension tracker) {
fDelegate = tracker;
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementEventWaiter.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementEventWaiter.java
index ca1fde72b6..782a2e8261 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementEventWaiter.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementEventWaiter.java
@@ -24,8 +24,6 @@ public class DebugElementEventWaiter extends DebugEventWaiter {
/**
* Constructor
- * @param kind
- * @param element
*/
public DebugElementEventWaiter(int kind, Object element) {
super(kind);
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventDetailWaiter.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventDetailWaiter.java
index 293a7526df..83338f79d2 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventDetailWaiter.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventDetailWaiter.java
@@ -24,9 +24,6 @@ public class DebugElementKindEventDetailWaiter extends DebugElementKindEventWait
/**
* Constructor
- * @param eventKind
- * @param elementClass
- * @param detail
*/
public DebugElementKindEventDetailWaiter(int eventKind, Class> elementClass, int detail) {
super(eventKind, elementClass);
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventWaiter.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventWaiter.java
index f9031b0801..5034e44434 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventWaiter.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugElementKindEventWaiter.java
@@ -26,8 +26,6 @@ public class DebugElementKindEventWaiter extends DebugEventWaiter {
/**
* Constructor
- * @param eventKind
- * @param elementClass
*/
public DebugElementKindEventWaiter(int eventKind, Class> elementClass) {
super(eventKind);
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugEventWaiter.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugEventWaiter.java
index 6560cafd1f..9324f1f102 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugEventWaiter.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/DebugEventWaiter.java
@@ -71,7 +71,6 @@ public class DebugEventWaiter implements IDebugEventSetListener {
* Creates a new DebugEventWaiter which
* waits for events of a kind eventType.
* The wait method will wait the default timeout value.
- * @param eventType
*/
public DebugEventWaiter(int eventType) {
fDebugPlugin= DebugPlugin.getDefault();
@@ -83,7 +82,6 @@ public DebugEventWaiter(int eventType) {
/**
* Answers true if the DebugEvent is acceptable.
- * @param event
* @return if the event is accepted or not
*/
public boolean accept(DebugEvent event) {
@@ -136,7 +134,6 @@ protected void printReceived(DebugEvent[] events) {
/**
* Sets the number of milliseconds to wait for this callback
- * @param milliseconds
*/
public void setTimeout(long milliseconds) {
fTimeout= milliseconds;
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ExpressionWaiter.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ExpressionWaiter.java
index 4e7d4142f8..317974dea5 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ExpressionWaiter.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/ExpressionWaiter.java
@@ -24,8 +24,6 @@ public class ExpressionWaiter extends DebugElementEventWaiter {
/**
* Constructor
- * @param kind
- * @param element
*/
public ExpressionWaiter(int kind, Object element) {
super(kind, element);
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaAlernateModeTab.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaAlernateModeTab.java
index dd3c97186a..479ac5b83b 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaAlernateModeTab.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaAlernateModeTab.java
@@ -150,7 +150,6 @@ public void run() {
* handles setting the checked state of the widget
* must check if we are in the UI thread before calling this method, as the launch ocnfiguration
* notification can come from the non-UI tread.
- * @param configuration
*/
private void setWidget(ILaunchConfiguration configuration) {
try {
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaProjectHelper.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaProjectHelper.java
index 6b8b65f8c0..53a95ab1d0 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaProjectHelper.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaProjectHelper.java
@@ -216,7 +216,6 @@ static boolean isCompatible(int ver) {
*
* @param pname the desired name for the project
* @return the new {@link IProject} handle
- * @throws CoreException
*/
public static IProject createProject(String pname) throws CoreException {
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
@@ -234,10 +233,7 @@ public static IProject createProject(String pname) throws CoreException {
/**
* creates a java project with the specified name and output folder
- * @param projectName
- * @param binFolderName
* @return a new java project
- * @throws CoreException
*/
public static IJavaProject createJavaProject(String projectName, String binFolderName) throws CoreException {
IProject project = createProject(projectName);
@@ -262,9 +258,7 @@ public static IJavaProject createJavaProject(String projectName, String binFolde
/**
* Creates a new Java project with the specified name
- * @param projectName
* @return a new java project with the specified name
- * @throws CoreException
*/
public static IJavaProject createJavaProject(String projectName) throws CoreException {
IProject project = createProject(projectName);
@@ -278,8 +272,6 @@ public static IJavaProject createJavaProject(String projectName) throws CoreExce
/**
* deletes a java project
- * @param jproject
- * @throws CoreException
*/
public static void delete(IJavaProject jproject) throws CoreException {
jproject.setRawClasspath(new ClasspathEntry[0], jproject.getProject().getFullPath(), null);
@@ -288,10 +280,7 @@ public static void delete(IJavaProject jproject) throws CoreException {
/**
* Adds a new source container specified by the container name to the source path of the specified project
- * @param jproject
- * @param containerName
* @return the package fragment root of the container name
- * @throws CoreException
*/
public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, String containerName) throws CoreException {
IProject project= jproject.getProject();
@@ -314,11 +303,7 @@ public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, Str
/**
* Adds a source container to a IJavaProject.
- * @param jproject
- * @param containerName
- * @param outputName
* @return the package fragment root of the new source container
- * @throws CoreException
*/
public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, String containerName, String outputName) throws CoreException {
IProject project= jproject.getProject();
@@ -351,12 +336,7 @@ public static IPackageFragmentRoot addSourceContainer(IJavaProject jproject, Str
/**
* Adds a source container to a IJavaProject and imports all files contained
* in the given Zip file.
- * @param jproject
- * @param containerName
- * @param zipFile
* @return the package fragment root of the new source container
- * @throws InvocationTargetException
- * @throws CoreException
*/
public static IPackageFragmentRoot addSourceContainerWithImport(IJavaProject jproject, String containerName, ZipFile zipFile) throws InvocationTargetException, CoreException {
IPackageFragmentRoot root= addSourceContainer(jproject, containerName);
@@ -366,9 +346,6 @@ public static IPackageFragmentRoot addSourceContainerWithImport(IJavaProject jpr
/**
* Removes a source folder from a IJavaProject.
- * @param jproject
- * @param containerName
- * @throws CoreException
*/
public static void removeSourceContainer(IJavaProject jproject, String containerName) throws CoreException {
IFolder folder= jproject.getProject().getFolder(containerName);
@@ -378,10 +355,7 @@ public static void removeSourceContainer(IJavaProject jproject, String container
/**
* Adds a library entry to a IJavaProject.
- * @param jproject
- * @param path
* @return the package fragment root of the new library
- * @throws JavaModelException
*/
public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path) throws JavaModelException {
return addLibrary(jproject, path, null, null);
@@ -389,12 +363,7 @@ public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path)
/**
* Adds a library entry with source attchment to a IJavaProject.
- * @param jproject
- * @param path
- * @param sourceAttachPath
- * @param sourceAttachRoot
* @return the package fragment root of the new library
- * @throws JavaModelException
*/
public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path, IPath sourceAttachPath, IPath sourceAttachRoot) throws JavaModelException {
IClasspathEntry cpe= JavaCore.newLibraryEntry(path, sourceAttachPath, sourceAttachRoot);
@@ -404,13 +373,7 @@ public static IPackageFragmentRoot addLibrary(IJavaProject jproject, IPath path,
/**
* Copies the library into the project and adds it as library entry.
- * @param jproject
- * @param jarPath
- * @param sourceAttachPath
- * @param sourceAttachRoot
* @return the package fragment root of the new library
- * @throws IOException
- * @throws CoreException
*/
public static IPackageFragmentRoot addLibraryWithImport(IJavaProject jproject, IPath jarPath, IPath sourceAttachPath, IPath sourceAttachRoot) throws IOException, CoreException {
IProject project= jproject.getProject();
@@ -425,12 +388,7 @@ public static IPackageFragmentRoot addLibraryWithImport(IJavaProject jproject, I
/**
* Adds a variable entry with source attachment to a IJavaProject.
* Can return null if variable can not be resolved.
- * @param jproject
- * @param path
- * @param sourceAttachPath
- * @param sourceAttachRoot
* @return the package fragment root of the new variable entry
- * @throws JavaModelException
*/
public static IPackageFragmentRoot addVariableEntry(IJavaProject jproject, IPath path, IPath sourceAttachPath, IPath sourceAttachRoot) throws JavaModelException {
IClasspathEntry cpe= JavaCore.newVariableEntry(path, sourceAttachPath, sourceAttachRoot);
@@ -444,9 +402,6 @@ public static IPackageFragmentRoot addVariableEntry(IJavaProject jproject, IPath
/**
* Adds a container entry to the specified java project
- * @param project
- * @param container
- * @throws JavaModelException
*/
public static void addContainerEntry(IJavaProject project, IPath container) throws JavaModelException {
IClasspathEntry cpe = JavaCore.newContainerEntry(container, false);
@@ -458,9 +413,6 @@ public static void addContainerEntry(IJavaProject project, IPath container) thro
*
* See {@link JavaCore#VERSION_1_4}, {@link JavaCore#VERSION_1_5}, {@link JavaCore#VERSION_1_6},
* {@link JavaCore#VERSION_1_7} and {@link JavaCore#VERSION_1_8} for more information on accepted compliances
- *
- * @param project
- * @param compliance
*/
public static void setCompliance(IJavaProject project, String compliance) {
Map map = JavaCore.getOptions();
@@ -473,8 +425,6 @@ public static void setCompliance(IJavaProject project, String compliance) {
/**
* Updates the compiler compliance project setting for the given project to match the given EE.
* I.e. J2SE-1.5 will set a 1.5 compliance for the compiler and the source level.
- * @param project
- * @param ee
*/
public static void updateCompliance(IJavaProject project, String ee) {
/*
@@ -490,9 +440,6 @@ else if(JAVA_SE_1_8_EE_NAME.equals(ee)) {
/**
* Adds a required project entry.
- * @param jproject
- * @param required
- * @throws JavaModelException
*/
public static void addRequiredProject(IJavaProject jproject, IJavaProject required) throws JavaModelException {
IClasspathEntry cpe= JavaCore.newProjectEntry(required.getProject().getFullPath());
@@ -501,9 +448,6 @@ public static void addRequiredProject(IJavaProject jproject, IJavaProject requir
/**
* Removes a specified path form the specified java project
- * @param jproject
- * @param path
- * @throws JavaModelException
*/
public static void removeFromClasspath(IJavaProject jproject, IPath path) throws JavaModelException {
IClasspathEntry[] oldEntries= jproject.getRawClasspath();
@@ -521,9 +465,6 @@ public static void removeFromClasspath(IJavaProject jproject, IPath path) throws
/**
* Adds the specified classpath entry to the specified java project
- * @param jproject
- * @param cpe
- * @throws JavaModelException
*/
public static void addToClasspath(IJavaProject jproject, IClasspathEntry cpe) throws JavaModelException {
IClasspathEntry[] oldEntries= jproject.getRawClasspath();
@@ -545,10 +486,6 @@ public static void addToClasspath(IJavaProject jproject, IClasspathEntry cpe) th
/**
* Adds the specified nature to the specified project
- * @param proj
- * @param natureId
- * @param monitor
- * @throws CoreException
*/
private static void addNatureToProject(IProject proj, String natureId, IProgressMonitor monitor) throws CoreException {
IProjectDescription description = proj.getDescription();
@@ -562,10 +499,6 @@ private static void addNatureToProject(IProject proj, String natureId, IProgress
/**
* Imports files from the specified zip to the specified destination
- * @param srcZipFile
- * @param destPath
- * @param monitor
- * @throws InvocationTargetException
*/
private static void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException {
ZipFileStructureProvider structureProvider= new ZipFileStructureProvider(srcZipFile);
@@ -579,11 +512,6 @@ private static void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProg
/**
* Imports files from the specified root dir into the specified path
- * @param rootDir
- * @param destPath
- * @param monitor
- * @throws InvocationTargetException
- * @throws IOException
*/
public static void importFilesFromDirectory(File rootDir, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException, IOException {
IImportStructureProvider structureProvider = FileSystemStructureProvider.INSTANCE;
@@ -605,10 +533,6 @@ public static void importFilesFromDirectory(File rootDir, IPath destPath, IProgr
/**
* Imports the specified file into the specified path
- * @param file
- * @param destPath
- * @param monitor
- * @throws InvocationTargetException
*/
public static void importFile(File file, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException {
IImportStructureProvider structureProvider = FileSystemStructureProvider.INSTANCE;
@@ -625,9 +549,6 @@ public static void importFile(File file, IPath destPath, IProgressMonitor monito
/**
* Recursively adds files from the specified dir to the provided list
- * @param dir
- * @param collection
- * @throws IOException
*/
private static void addJavaFiles(File dir, List collection) throws IOException {
File[] files = dir.listFiles();
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaTestPlugin.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaTestPlugin.java
index e2630daad3..5a3055ca31 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaTestPlugin.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaTestPlugin.java
@@ -23,6 +23,8 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.Bundle;
@@ -60,8 +62,6 @@ public static IWorkspace getWorkspace() {
/**
* Sets autobuild to the specified boolean value
- * @param enable
- * @throws CoreException
*/
public static void enableAutobuild(boolean enable) throws CoreException {
// disable auto build
@@ -69,11 +69,20 @@ public static void enableAutobuild(boolean enable) throws CoreException {
IWorkspaceDescription desc= workspace.getDescription();
desc.setAutoBuilding(enable);
workspace.setDescription(desc);
+ waitForAutoBuild();
+ }
+
+ private static void waitForAutoBuild() {
+ Job.getJobManager().wakeUp(ResourcesPlugin.FAMILY_AUTO_BUILD);
+ try {
+ Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, new NullProgressMonitor());
+ } catch (InterruptedException e) {
+ throw new RuntimeException(e);
+ }
}
/**
* Returns the file corresponding to the specified path from within this bundle
- * @param path
* @return the file corresponding to the specified path from within this bundle, or
* null if not found
*/
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/SpecificDebugElementEventWaiter.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/SpecificDebugElementEventWaiter.java
index b90021c28f..4d8a1c8ed6 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/SpecificDebugElementEventWaiter.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/SpecificDebugElementEventWaiter.java
@@ -27,8 +27,6 @@ public class SpecificDebugElementEventWaiter extends DebugEventWaiter {
/**
* Constructor
- * @param eventKind
- * @param element
*/
public SpecificDebugElementEventWaiter(int eventKind, IDebugElement element) {
super(eventKind);
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java
index 7c3b1b32c7..2672b13711 100644
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/detailpane/SimpleDetailPane.java
@@ -36,7 +36,6 @@
* @see DetailPaneManagerTests
* @see TestDetailPaneFactory
* @see IDetailPane
- *
*/
public class SimpleDetailPane implements IDetailPane {
diff --git a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/launching/TestModeLaunchDelegate.java b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/launching/TestModeLaunchDelegate.java
index 34ac732701..f5e72cdd6f 100755
--- a/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/launching/TestModeLaunchDelegate.java
+++ b/org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/launching/TestModeLaunchDelegate.java
@@ -43,9 +43,6 @@ public void launch(ILaunchConfiguration configuration, String mode, ILaunch laun
fgTestCase.launch(configuration, mode);
}
- /**
- * @param testCase
- */
public static void setTestCase(LaunchModeTests testCase) {
fgTestCase = testCase;
}
diff --git a/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest.java b/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest.java
index 0f2c8ff086..7ba31a385d 100644
--- a/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest.java
+++ b/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest.java
@@ -13,9 +13,6 @@
*******************************************************************************/
public class LaunchHistoryTest {
- /**
- * @param args
- */
public static void main(String[] args) {
}
diff --git a/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest2.java b/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest2.java
index 8f2b205004..02f2328fb0 100644
--- a/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest2.java
+++ b/org.eclipse.jdt.debug.tests/testprograms/LaunchHistoryTest2.java
@@ -13,9 +13,6 @@
*******************************************************************************/
public class LaunchHistoryTest2 {
- /**
- * @param args
- */
public static void main(String[] args) {
}
diff --git a/org.eclipse.jdt.debug.tests/testprograms/TestException.java b/org.eclipse.jdt.debug.tests/testprograms/TestException.java
index 937da92038..0040a61b93 100644
--- a/org.eclipse.jdt.debug.tests/testprograms/TestException.java
+++ b/org.eclipse.jdt.debug.tests/testprograms/TestException.java
@@ -20,9 +20,6 @@
*/
public class TestException extends Error {
- /**
- *
- */
private static final long serialVersionUID = 1L;
}
diff --git a/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass3.java b/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass3.java
index 7a3b9669d2..20d6188c89 100644
--- a/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass3.java
+++ b/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass3.java
@@ -50,9 +50,6 @@ public void run() {
aclass.run();
}
- /**
- * @param args
- */
public static void main(String[] args) {
HcrClass3 clazz = new HcrClass3();
clazz.run();
diff --git a/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass4.java b/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass4.java
index 2106111a16..dd17a0ac66 100644
--- a/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass4.java
+++ b/org.eclipse.jdt.debug.tests/testprograms/org/eclipse/debug/tests/targets/HcrClass4.java
@@ -24,9 +24,6 @@ public void run() {
String s = new String("HcrClass4#run()");
}
- /**
- * @param args
- */
public static void main(String[] args) {
HcrClass4 clazz = new HcrClass4();
}
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/ForceReturnTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/ForceReturnTests.java
index 589468a6d5..2ef56a6cca 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/ForceReturnTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/ForceReturnTests.java
@@ -44,8 +44,6 @@ public ForceReturnTests(String name) {
/**
* Tests forcing the return of an integer from top stack frame
- *
- * @throws Exception
*/
public void testForceIntReturnTopFrame() throws Exception {
String typeName = "ForceReturnTests";
@@ -83,8 +81,6 @@ public void testForceIntReturnTopFrame() throws Exception {
/**
* Tests forcing the return of an integer from non-top stack frame
- *
- * @throws Exception
*/
public void testForceIntReturn() throws Exception {
String typeName = "ForceReturnTestsTwo";
@@ -124,8 +120,6 @@ public void testForceIntReturn() throws Exception {
/**
* Tests forcing the return of a string from top frame
- *
- * @throws Exception
*/
public void testForceStringReturnTopFrame() throws Exception {
String typeName = "ForceReturnTests";
@@ -164,8 +158,6 @@ public void testForceStringReturnTopFrame() throws Exception {
/**
* Tests forcing the return of a string from a non top frame
- *
- * @throws Exception
*/
public void testForceStringReturn() throws Exception {
String typeName = "ForceReturnTestsTwo";
@@ -205,8 +197,6 @@ public void testForceStringReturn() throws Exception {
/**
* Tests forcing the return of an object from top frame.
- *
- * @throws Exception
*/
public void testForceObjectReturnTopFrame() throws Exception {
String typeName = "ForceReturnTests";
@@ -245,8 +235,6 @@ public void testForceObjectReturnTopFrame() throws Exception {
/**
* Tests forcing the return of an object from non-top frame.
- *
- * @throws Exception
*/
public void testForceObjectReturn() throws Exception {
String typeName = "ForceReturnTestsTwo";
@@ -286,8 +274,6 @@ public void testForceObjectReturn() throws Exception {
/**
* Tests that an incompatible type causes an exception in top frame
- *
- * @throws Exception
*/
public void testIncompatibleReturnTypeTopFrame() throws Exception {
String typeName = "ForceReturnTests";
@@ -317,8 +303,6 @@ public void testIncompatibleReturnTypeTopFrame() throws Exception {
/**
* Tests that an incompatible type causes an exception in non top frame
- *
- * @throws Exception
*/
public void testIncompatibleReturnType() throws Exception {
String typeName = "ForceReturnTestsTwo";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepFilterTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepFilterTests.java
index 5e0bf3c080..b932a31e06 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepFilterTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepFilterTests.java
@@ -18,7 +18,6 @@
import org.eclipse.jdt.debug.core.IJavaStackFrame;
import org.eclipse.jdt.debug.core.IJavaThread;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.internal.debug.ui.IJDIPreferencesConstants;
import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
import org.eclipse.jface.preference.IPreferenceStore;
@@ -34,7 +33,6 @@ public class StepFilterTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public StepFilterTests(String name) {
super(name);
@@ -44,7 +42,6 @@ public StepFilterTests(String name) {
/**
* Tests a simple step filter
- * @throws Exception
*/
public void testSimpleStepFilter() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_ACTIVE_FILTERS_LIST, fOriginalActiveFilters + ",StepFilterTwo," + fOriginalInactiveFilters);
@@ -59,10 +56,7 @@ public void testSimpleStepFilter() throws Exception {
thread = stepIntoWithFilters(stackFrame);
stackFrame = (IJavaStackFrame) thread.getTopStackFrame();
String recTypeName = stackFrame.getReceivingTypeName();
- if (!"StepFilterOne".equals(recTypeName)) {
- throw new TestAgainException("Retest - "+recTypeName+" is does not match StepFilterOne"); // @see bug 297071
- }
- assertEquals("Wrong receiving type", "StepFilterOne", recTypeName);
+ tryAgain(() -> assertEquals("Wrong receiving type", "StepFilterOne", recTypeName));
int lineNumber = stackFrame.getLineNumber();
assertEquals("Wrong line number", 27, lineNumber);
} finally {
@@ -74,7 +68,6 @@ public void testSimpleStepFilter() throws Exception {
/**
* Tests a simple step filter
- * @throws Exception
*/
public void testDontStepThruStepFilters() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_ACTIVE_FILTERS_LIST, fOriginalActiveFilters + ",StepFilterTwo," + fOriginalInactiveFilters);
@@ -89,10 +82,7 @@ public void testDontStepThruStepFilters() throws Exception {
thread = stepIntoWithFilters(stackFrame, false);
stackFrame = (IJavaStackFrame) thread.getTopStackFrame();
String recTypeName = stackFrame.getReceivingTypeName();
- if (!"StepFilterOne".equals(recTypeName)) {
- throw new TestAgainException("Retest - "+recTypeName+" is does not match StepFilterOne"); // @see bug 297071
- }
- assertEquals("Wrong receiving type", "StepFilterOne", recTypeName);
+ tryAgain(() -> assertEquals("Wrong receiving type", "StepFilterOne", recTypeName));
int lineNumber = stackFrame.getLineNumber();
assertEquals("Wrong line number", 28, lineNumber);
} finally {
@@ -104,7 +94,6 @@ public void testDontStepThruStepFilters() throws Exception {
/**
* Tests a step filter that is not active
- * @throws Exception
*/
public void testInactiveStepFilter() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_INACTIVE_FILTERS_LIST, fOriginalActiveFilters + ",StepFilterTwo");
@@ -119,10 +108,7 @@ public void testInactiveStepFilter() throws Exception {
thread = stepIntoWithFilters(stackFrame);
stackFrame = (IJavaStackFrame) thread.getTopStackFrame();
String recTypeName = stackFrame.getReceivingTypeName();
- if (!"StepFilterTwo".equals(recTypeName)) {
- throw new TestAgainException("Retest - "+recTypeName+" is does not match StepFilterTwo"); // @see bug 297071
- }
- assertEquals("Wrong receiving type", "StepFilterTwo", recTypeName);
+ tryAgain(() -> assertEquals("Wrong receiving type", "StepFilterTwo", recTypeName));
int lineNumber = stackFrame.getLineNumber();
assertEquals("Wrong line number", 28, lineNumber);
} finally {
@@ -135,7 +121,6 @@ public void testInactiveStepFilter() throws Exception {
/**
* Tests a deep step filter, i.e. a step filter that is more than one stack frame deep on the current
* suspended thread
- * @throws Exception
*/
public void testDeepStepFilter() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_ACTIVE_FILTERS_LIST, fOriginalActiveFilters + ",StepFilterTwo," + fOriginalInactiveFilters);
@@ -150,10 +135,7 @@ public void testDeepStepFilter() throws Exception {
thread = stepIntoWithFilters(stackFrame);
stackFrame = (IJavaStackFrame) thread.getTopStackFrame();
String recTypeName = stackFrame.getReceivingTypeName();
- if (!"StepFilterThree".equals(recTypeName)) {
- throw new TestAgainException("Retest - "+recTypeName+" is does not match StepFilterThree");
- }
- assertEquals("Wrong receiving type", "StepFilterThree", recTypeName);
+ tryAgain(() -> assertEquals("Wrong receiving type", "StepFilterThree", recTypeName));
int lineNumber = stackFrame.getLineNumber();
assertEquals("Wrong line number", 22, lineNumber);
} finally {
@@ -165,7 +147,6 @@ public void testDeepStepFilter() throws Exception {
/**
* Tests a simple step return filter
- * @throws Exception
*/
public void testStepReturnFilter() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_ACTIVE_FILTERS_LIST, fOriginalActiveFilters + ",StepFilterTwo," + fOriginalInactiveFilters);
@@ -180,10 +161,7 @@ public void testStepReturnFilter() throws Exception {
thread = stepReturnWithFilters(stackFrame);
stackFrame = (IJavaStackFrame) thread.getTopStackFrame();
String recTypeName = stackFrame.getReceivingTypeName();
- if (!"StepFilterOne".equals(recTypeName)) {
- throw new TestAgainException("Retest - "+recTypeName+" is does not match StepFilterOne");
- }
- assertEquals("Wrong receiving type", "StepFilterOne", recTypeName);
+ tryAgain(() -> assertEquals("Wrong receiving type", "StepFilterOne", recTypeName));
int lineNumber = stackFrame.getLineNumber();
assertEquals("Wrong line number", 26, lineNumber);
} finally {
@@ -195,7 +173,6 @@ public void testStepReturnFilter() throws Exception {
/**
* Tests a simple step over filter
- * @throws Exception
*/
public void testStepOverFilter() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_ACTIVE_FILTERS_LIST, fOriginalActiveFilters + ",StepFilterTwo,StepFilterThree," + fOriginalInactiveFilters);
@@ -210,10 +187,7 @@ public void testStepOverFilter() throws Exception {
thread = stepOverWithFilters(stackFrame);
stackFrame = (IJavaStackFrame) thread.getTopStackFrame();
String recTypeName = stackFrame.getReceivingTypeName();
- if (!"StepFilterOne".equals(recTypeName)) {
- throw new TestAgainException("Retest - "+recTypeName+" is does not match StepFilterOne");
- }
- assertEquals("Wrong receiving type", "StepFilterOne", recTypeName);
+ tryAgain(() -> assertEquals("Wrong receiving type", "StepFilterOne", recTypeName));
int lineNumber = stackFrame.getLineNumber();
assertEquals("Wrong line number", 26, lineNumber);
} finally {
@@ -225,7 +199,6 @@ public void testStepOverFilter() throws Exception {
/**
* Tests filtering of getter methods
- * @throws Exception
*/
public void testGetterFilters() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_FILTER_GETTERS, true);
@@ -260,7 +233,6 @@ public void testGetterFilters() throws Exception {
/**
* Tests filtering of setter methods
- * @throws Exception
*/
public void testSetterFilters() throws Exception {
getPrefStore().setValue(IJDIPreferencesConstants.PREF_FILTER_GETTERS, false);
@@ -296,7 +268,6 @@ public void testSetterFilters() throws Exception {
/**
* Tests filtering from a contributed filter
*
- * @throws Exception
* @since 3.8.300
*/
public void testContributedFilter1() throws Exception {
@@ -334,7 +305,6 @@ protected void resetStepFilters() {
/**
* Returns the JDIDebugUIPlugin preference store
- * @return
*/
protected IPreferenceStore getPrefStore() {
return JDIDebugUIPlugin.getDefault().getPreferenceStore();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionTests.java
index 2c3b9c32a0..4b4b030fe1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionTests.java
@@ -39,8 +39,6 @@ public StepIntoSelectionTests(String name) {
/**
* Step into 'new StepIntoSelectionClass()'
- *
- * @throws Exception
*/
public void testStepIntoSourceConstructor() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.StepIntoSelectionClass";
@@ -75,8 +73,6 @@ public void testStepIntoSourceConstructor() throws Exception {
/**
* Step into 'step()'
- *
- * @throws Exception
*/
public void testStepIntoSourceMethod() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.StepIntoSelectionClass";
@@ -111,8 +107,6 @@ public void testStepIntoSourceMethod() throws Exception {
/**
* Step into 'method1(int[], String[])'
- *
- * @throws Exception
*/
public void testStepIntoSourceMethodWithParameters() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.StepIntoSelectionClass";
@@ -147,8 +141,6 @@ public void testStepIntoSourceMethodWithParameters() throws Exception {
/**
* Step into 'Vector.addElement(Object)'
- *
- * @throws Exception
*/
public void testStepIntoBinaryMethod() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.StepIntoSelectionClass";
@@ -186,8 +178,6 @@ public void testStepIntoBinaryMethod() throws Exception {
/**
* Step into 'Integer.valueOf(i)'
- *
- * @throws Exception
*/
public void testStepIntoBinaryConstructor() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.StepIntoSelectionClass";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionWithGenerics.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionWithGenerics.java
index f67225542b..ca8385a164 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionWithGenerics.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepIntoSelectionWithGenerics.java
@@ -53,7 +53,6 @@ protected IJavaProject getProjectContext() {
/**
* Tests stepping into a method of a top-level class that is generified
- * @throws Exception
*/
public void testStepIntoSelection1() throws Exception {
createLineBreakpoint(33, qtypename);
@@ -90,8 +89,6 @@ public void testStepIntoSelection1() throws Exception {
/**
* Tests stepping into a method of an inner class that is generified
- *
- * @throws Exception
*/
public void testStepIntoSelection2() throws Exception {
createLineBreakpoint(34, qtypename);
@@ -130,8 +127,6 @@ public void testStepIntoSelection2() throws Exception {
/**
* Tests stepping into a method of an inner-inner class that is generified
- *
- * @throws Exception
*/
public void testStepIntoSelection3() throws Exception {
createLineBreakpoint(35, qtypename);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepResultTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepResultTests.java
index 7f0af9fa6a..4c161d89fc 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepResultTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/StepResultTests.java
@@ -96,8 +96,6 @@ public void testReturnValueAfterStepReturn() throws Exception {
/**
* test that if the step return is aborted by some other break point, no return value of a recursive invocation is shown
- *
- * @throws Exception
*/
public void testNoReturnValueAfterAbortedStepReturn() throws Exception {
String typeName = "StepResult1";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/TestContributedStepFilter.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/TestContributedStepFilter.java
index f94e03a0d0..cb883f2cbf 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/TestContributedStepFilter.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/test/stepping/TestContributedStepFilter.java
@@ -22,9 +22,6 @@
*/
public class TestContributedStepFilter implements IStepFilter {
- /**
- *
- */
public TestContributedStepFilter() {
}
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugPerformanceTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugPerformanceTest.java
index 5d75d1029a..694c56b496 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugPerformanceTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugPerformanceTest.java
@@ -36,7 +36,6 @@ public AbstractDebugPerformanceTest(String name) {
/**
* Overridden to create a default performance meter for this test case.
- * @throws Exception
*/
@Override
protected void setUp() throws Exception {
@@ -47,7 +46,6 @@ protected void setUp() throws Exception {
/**
* Overridden to dispose of the performance meter.
- * @throws Exception
*/
@Override
protected void tearDown() throws Exception {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java
index f6ff436803..d10fb38dad 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java
@@ -242,7 +242,6 @@ public abstract class AbstractDebugTest extends TestCase implements IEvaluation
/**
* Constructor
- * @param name
*/
public AbstractDebugTest(String name) {
super(name);
@@ -580,7 +579,7 @@ synchronized void assert16_Project() {
handleProjectCreationException(e, ONESIX_PROJECT_NAME, jp);
}
}
-
+
/**
* Creates the Java 21 compliant project
*/
@@ -709,7 +708,6 @@ synchronized void assertMultioutputProject() {
/**
* Ensure the welcome screen is closed because in 4.x the debug perspective opens a giant fast-view causing issues
*
- * @throws Exception
* @since 3.8
*/
protected final void assertWelcomeScreenClosed() throws Exception {
@@ -764,9 +762,7 @@ void handleProjectCreationException(Exception e, String pname, IJavaProject jp)
/**
* Sets the contents of the given {@link ICompilationUnit} to be the new contents provided
- * @param unit
* @param contents the new {@link String} contents, cannot be null
- * @throws JavaModelException
*/
protected void setFileContents(ICompilationUnit unit, String contents) throws JavaModelException {
assertNotNull("You cannot set the new contents of an ICompilationUnit to null", contents);
@@ -853,7 +849,6 @@ protected IJavaProject get14Project() {
/**
* Returns the {@link IBreakpointOrganizer} with the given id or null
* if no such organizer exists
- * @param id
* @return the {@link IBreakpointOrganizer} or null
* @since 3.8.100
*/
@@ -900,7 +895,7 @@ protected IJavaProject get9Project() {
assert9Project();
return getJavaProject(NINE_PROJECT_NAME);
}
-
+
/**
* Returns the 'Two_One' project, used for Java 21 tests.
*
@@ -964,7 +959,6 @@ protected IJavaProject getJavaProject(String name) {
* @param ee the level of execution environment to use
* @param if an existing project should be deleted
* @return the new Java project
- * @throws Exception
*/
protected IJavaProject createProject(String name, String contentpath, String ee, boolean delete) throws Exception {
IProject pro = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
@@ -1011,7 +1005,6 @@ protected IJavaProject createProject(String name, String contentpath, String ee,
* @param ee the level of execution environment to use
* @param if an existing project should be deleted
* @return the new Java project
- * @throws Exception
*/
protected IJavaProject createJavaProjectClone(String name, String contentpath, String ee, boolean delete) throws Exception {
IProject pro = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
@@ -1063,7 +1056,6 @@ protected IJavaProject createJavaProjectClone(String name, String contentpath, S
* @param contentpath the path within the jdt.debug test bundle to initialize the source from
* @param if an existing project should be deleted
* @return the new project
- * @throws Exception
*/
protected IProject createProjectClone(String name, String contentpath, boolean delete) throws Exception {
IProject pro = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
@@ -1087,7 +1079,6 @@ protected IProject createProjectClone(String name, String contentpath, boolean d
/**
* Returns the launch shortcut with the given id
- * @param id
* @return the LaunchShortcutExtension with the given id,
* or null if none
*
@@ -1110,8 +1101,6 @@ protected LaunchShortcutExtension getLaunchShortcutExtension(String id) {
* As such, for tests that launch specific configurations, must be check to ensure that there is a preferred
* launch delegate available for the launch in the event there are duplicates. Otherwise the tests
* will hang waiting for a user to select a resolution action.
- * @param configuration
- * @param modes
* @throws CoreException
*
* @since 3.3
@@ -1144,7 +1133,6 @@ protected ILaunchDelegate getDelegateById(String typeId, String delegateId) {
/**
* Returns the source folder with the given name in the given project.
*
- * @param project
* @param name source folder name
* @return package fragment root
*/
@@ -1156,8 +1144,6 @@ protected IPackageFragmentRoot getPackageFragmentRoot(IJavaProject project, Stri
/**
* Returns the IHyperLink at the given offset in the specified document
* or null if the offset does not point to an IHyperLink
- * @param offset
- * @param doc
* @return the IHyperLink at the given offset or null
*/
protected IHyperlink getHyperlink(int offset, IDocument doc) {
@@ -1677,7 +1663,6 @@ protected ILaunchConfiguration getLaunchConfiguration(IJavaProject project, Stri
* @param typeName the name of the IJavaElement to get the resource for
* @return the corresponding IResource from the IJavaElement with the
* specified name
- * @throws Exception
*/
protected IResource getBreakpointResource(String typeName) throws Exception {
IJavaElement element = getProjectContext().findElement(new Path(typeName + JAVA_EXTENSION));
@@ -1691,9 +1676,6 @@ protected IResource getBreakpointResource(String typeName) throws Exception {
/**
* Returns the resource from the specified type or the project from the testing java project in the
* event there is no resource from the specified type
- * @param type
- * @return
- * @throws Exception
*/
protected IResource getBreakpointResource(IType type) throws Exception {
if (type == null) {
@@ -1721,11 +1703,6 @@ protected IJavaLineBreakpoint createLineBreakpoint(int lineNumber, String typeNa
/**
* Creates am new java line breakpoint
- * @param lineNumber
- * @param root
- * @param packageName
- * @param cuName
- * @param fullTargetName
* @return a new line breakpoint
*/
protected IJavaLineBreakpoint createLineBreakpoint(int lineNumber, String root, String packageName, String cuName,
@@ -1749,7 +1726,6 @@ protected IJavaLineBreakpoint createLineBreakpoint(int lineNumber, String root,
* @param cuName simple name of compilation unit containing the type, example "Something.java"
* @param typeName $ qualified type name, example "Something" or "NonPublic" or "Something$Inner"
* @return line breakpoint
- * @throws Exception
*/
protected IJavaLineBreakpoint createLineBreakpoint(int lineNumber, String packageName, String cuName, String typeName) throws Exception {
IType type = getType(packageName, cuName, typeName);
@@ -1763,7 +1739,6 @@ protected IJavaLineBreakpoint createLineBreakpoint(int lineNumber, String packag
* @param type type in which to install the breakpoint
* @param lineNumber line number to install the breakpoint at
* @return line breakpoint
- * @throws Exception
*/
protected IJavaLineBreakpoint createLineBreakpoint(IType type, int lineNumber) throws Exception {
assertNotNull("You cannot create a line breakpoint for a null IType", type);
@@ -1797,8 +1772,6 @@ protected IJavaLineBreakpoint createLineBreakpoint(IType type, int lineNumber) t
/**
* Forces marker deltas to be sent based on breakpoint creation.
- *
- * @param breakpoint
*/
private void forceDeltas(IBreakpoint breakpoint) throws CoreException {
IProject project = breakpoint.getMarker().getResource().getProject();
@@ -1815,7 +1788,6 @@ private void forceDeltas(IBreakpoint breakpoint) throws CoreException {
* @param cuName simple compilation unit name within the package, example "Something.java"
* @param typeName simple dot qualified type name, example "Something" or "NonPublic" or "Something.Inner"
* @return associated type or null if none
- * @throws Exception
*/
protected IType getType(String packageName, String cuName, String typeName) throws Exception {
IPackageFragment[] packageFragments = getProjectContext().getPackageFragments();
@@ -1842,7 +1814,6 @@ protected IType getType(String packageName, String cuName, String typeName) thro
*
* @param element java element the breakpoint is associated with
* @return map of breakpoint attributes or null
- * @throws Exception
*/
protected Map getExtraBreakpointAttributes(IMember element) throws Exception {
if (element != null && element.exists()) {
@@ -1964,7 +1935,6 @@ protected IJavaMethodBreakpoint createMethodBreakpoint(IJavaProject project, Str
* @param entry whether to break on entry
* @param exit whether to break on exit
* @return method breakpoint
- * @throws Exception
*/
protected IJavaMethodBreakpoint createMethodBreakpoint(String packageName, String cuName, String typeName, String methodName, String methodSignature, boolean entry, boolean exit) throws Exception {
IType type = getType(packageName, cuName, typeName);
@@ -2046,7 +2016,6 @@ protected IResource getResource(String name) {
*
* @param typeName type on which to create the breakpoint
* @return breakpoint
- * @throws Exception
*/
protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(String typeName) throws Exception {
return createClassPrepareBreakpoint(getType(typeName));
@@ -2057,7 +2026,6 @@ protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(String typeNa
*
* @param typeName type on which to create the breakpoint
* @return breakpoint
- * @throws Exception
*/
protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(String root,
String packageName, String cuName, String fullTargetName) throws Exception {
@@ -2084,7 +2052,6 @@ protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(String packag
*
* @param type type
* @return class prepare breakpoint
- * @throws Exception
*/
protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(IType type) throws Exception {
assertNotNull("type not specified for class prepare breakpoint", type); //$NON-NLS-1$
@@ -2102,9 +2069,7 @@ protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(IType type) t
* Returns the Java model type from the test project with the given name or null
* if none.
*
- * @param typeName
* @return type or null
- * @throws Exception
*/
protected IType getType(String typeName) throws Exception {
return getProjectContext().findType(typeName);
@@ -2156,14 +2121,12 @@ protected IJavaExceptionBreakpoint createExceptionBreakpoint(String exName, bool
* Creates a WatchPoint on the field specified at the given path.
* Will create watchpoints on fields within anonymous types, inner types,
* local (non-public) types, and public types.
- * @param root
* @param packageName package name containing type to install breakpoint in, example "a.b.c"
* @param cuName simple compilation unit name within package, example "Something.java"
* @param fullTargetName - see below
* @param access whether to suspend on access
* @param modification whether to suspend on modification
* @return a watchpoint
- * @throws Exception
* @throws CoreException
*
*
@@ -2222,7 +2185,6 @@ protected IJavaWatchpoint createWatchpoint(String packageName, String cuName, St
* @param access whether to suspend on access
* @param modification whether to suspend on modification
* @return watchpoint
- * @throws Exception
*/
protected IJavaWatchpoint createWatchpoint(IType type, String fieldName, boolean access, boolean modification) throws Exception, CoreException {
assertNotNull("type not specified for watchpoint", type); //$NON-NLS-1$
@@ -2331,10 +2293,7 @@ protected IEvaluationResult evaluate(String snippet, IJavaStackFrame frame) thro
Object suspendee= waiter.waitForEvent();
setEventSet(waiter.getEventSet());
- if(suspendee == null) {
- throw new TestAgainException("Program did not suspend evaluating: \n\n"+snippet);
- }
- assertNotNull("Program did not suspend.", suspendee); //$NON-NLS-1$
+ tryAgain(() -> assertNotNull("Program did not suspend evaluating: \n\n" + snippet, suspendee)); //$NON-NLS-1$
return fEvaluationResult;
}
finally {
@@ -2347,7 +2306,6 @@ protected IEvaluationResult evaluate(String snippet, IJavaStackFrame frame) thro
* @param snippet the snippet to evaluate
* @param thread the suspended thread to run the evaluation on
* @return the {@link IEvaluationResult}
- * @throws Exception
* @since 3.1.200
*/
protected IEvaluationResult evaluate(String snippet, IJavaThread thread) throws Exception {
@@ -2596,11 +2554,8 @@ public static void waitForBuild() {
/**
* Finds the specified variable within the context of the specified stackframe. Returns null if a variable with
* the given name does not exist
- * @param frame
- * @param name
* @return the IJavaVariable with the given name or null if it
* does not exist
- * @throws DebugException
*/
protected IJavaVariable findVariable(IJavaStackFrame frame, String name) throws DebugException {
IJavaVariable variable = frame.findVariable(name);
@@ -2708,8 +2663,32 @@ private void setEnvironment(ILaunchConfigurationWorkingCopy workingCopy) {
workingCopy.setAttribute(ILaunchManager.ATTR_ENVIRONMENT_VARIABLES, env);
}
+ /**
+ * Exception to indicate a test should be run again when it fails.
+ */
+ protected static class TestAgainException extends RuntimeException {
+ private static final long serialVersionUID = 1848804390493463729L;
+
+ public TestAgainException(String string) {
+ super(string);
+ }
+
+ public TestAgainException(Throwable cause) {
+ super("Try test again because of random fail.", cause);
+ }
+ }
+
+ protected void tryAgain(Runnable run) {
+ try {
+ run.run();
+ } catch (AssertionError e) {
+ throw new TestAgainException(e);
+ }
+ }
+
/**
* When a test throws the 'try again' exception, try it again.
+ *
* @see junit.framework.TestCase#runBare()
*/
@Override
@@ -2776,15 +2755,13 @@ protected String getClassFileVersion() {
* See bug 297071.
*
* @param e Debug Exception
- * @throws TestAgainException
- * @throws DebugException
*/
protected void tryTestAgain(DebugException e) throws Exception {
Throwable cause = e.getCause();
if (cause instanceof InternalException) {
int code = ((InternalException)cause).errorCode();
if (code == 13) {
- throw new TestAgainException("Retest - exception during test: "+getName()+": "+e.getMessage());
+ throw new TestAgainException(e);
}
}
throw e;
@@ -2792,9 +2769,7 @@ protected void tryTestAgain(DebugException e) throws Exception {
/**
* Perform the actual evaluation (inspect)
- * @param thread
* @return the result of the evaluation
- * @throws Exception
*/
protected IValue doEval(IJavaThread thread, String snippet) throws Exception{
return this.doEval(thread, () -> (IJavaStackFrame) thread.getTopStackFrame(), snippet);
@@ -2803,11 +2778,9 @@ protected IValue doEval(IJavaThread thread, String snippet) throws Exception{
/**
* Perform the actual evaluation (inspect)
*
- * @param thread
* @param frameSupplier
* The frame supplier which provides the frame for the evaluation
* @return the result of the evaluation
- * @throws Exception
*/
protected IValue doEval(IJavaThread thread, StackFrameSupplier frameSupplier, String snippet) throws Exception {
class Listener implements IEvaluationListener {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ProjectCreationDecorator.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ProjectCreationDecorator.java
index 3ed31f5e12..6e3b380c08 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ProjectCreationDecorator.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ProjectCreationDecorator.java
@@ -52,9 +52,6 @@ protected IJavaProject getProjectContext() {
return get14Project();
}
- /**
- *
- */
public void testPerspectiveSwtich() {
DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
@Override
@@ -75,7 +72,6 @@ public void run() {
/**
* test if builds completed successfully and output directory contains class
* files.
- * @throws Exception
*/
public void testOutputFolderNotEmpty() throws Exception {
waitForBuild();
@@ -91,9 +87,6 @@ public void testOutputFolderNotEmpty() throws Exception {
assertTrue("output folder is empty", children.length > 0);
}
- /**
- * @throws Exception
- */
public void testForUnexpectedErrorsInProject() throws Exception {
waitForBuild();
IProject project = get14Project().getProject();
@@ -110,9 +103,6 @@ public void testForUnexpectedErrorsInProject() throws Exception {
assertEquals("Unexpected compile errors in project. Expected 0 found " + markers.length, 0, errors);
}
- /**
- * @throws Exception
- */
public void testClassFilesGenerated() throws Exception {
waitForBuild();
IPath outputLocation = get14Project().getOutputLocation();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestAgainException.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestAgainException.java
deleted file mode 100644
index 2e7791214c..0000000000
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestAgainException.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2011 IBM Corporation and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jdt.debug.tests;
-
-/**
- * Exception to indicate a test should be run again when it fails.
- *
- * @since 3.3
- */
-public class TestAgainException extends RuntimeException {
-
- /**
- * Constructor
- * @param string
- */
- public TestAgainException(String string) {
- super(string);
- }
-
- /**
- * Generated serial version id
- */
- private static final long serialVersionUID = 1848804390493463729L;
-
-}
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/VerticalRulerInfoStub.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/VerticalRulerInfoStub.java
index c22f371793..7f6b672b14 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/VerticalRulerInfoStub.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/VerticalRulerInfoStub.java
@@ -16,9 +16,6 @@
import org.eclipse.jface.text.source.IVerticalRulerInfo;
import org.eclipse.swt.widgets.Control;
-/**
- *
- */
public class VerticalRulerInfoStub implements IVerticalRulerInfo {
private int fLineNumber = -1;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/AbstractBreakpointWorkingSetTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/AbstractBreakpointWorkingSetTest.java
index 8c19953885..79b6da44a4 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/AbstractBreakpointWorkingSetTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/AbstractBreakpointWorkingSetTest.java
@@ -29,7 +29,6 @@ public abstract class AbstractBreakpointWorkingSetTest extends AbstractDebugUiTe
/**
* Constructor
- * @param name
*/
public AbstractBreakpointWorkingSetTest(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointListenerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointListenerTests.java
index f39e681211..9b0911d4f3 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointListenerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointListenerTests.java
@@ -59,7 +59,6 @@ public class BreakpointListenerTests extends AbstractDebugTest implements IBreak
/**
* Constructor
- * @param name
*/
public BreakpointListenerTests(String name) {
super(name);
@@ -127,7 +126,6 @@ protected List createBreakpoints(String typeName) throws Ex
/**
* Tests a single breakpoint listener
- * @throws Exception
*/
public void testSingleListener() throws Exception {
List bps = createBreakpoints("Breakpoints");
@@ -158,7 +156,6 @@ public void testSingleListener() throws Exception {
/**
* Tests more than one simultaneous breakpoint listener
- * @throws Exception
*/
public void testMultiListener() throws Exception {
List bps = createBreakpoints("Breakpoints");
@@ -189,7 +186,6 @@ public void testMultiListener() throws Exception {
/**
* Test multiple breakpoint listeners over a project open and close
- * @throws Exception
*/
public void testMultiListenerProjectCloseOpen() throws Exception {
List bps = createBreakpoints("Breakpoints");
@@ -230,7 +226,6 @@ public void testMultiListenerProjectCloseOpen() throws Exception {
/**
* Tests multiple breakpoint listeners over a compilation move operation
- * @throws Exception
*/
public void testMultiListenerMoveCompilationUnit() throws Exception {
IJavaProject project = get14Project();
@@ -275,7 +270,6 @@ public void testMultiListenerMoveCompilationUnit() throws Exception {
/**
* Tests a single breakpoint listener over the move of a compilation unit
- * @throws Exception
*/
public void testSingleListenerMoveCompilationUnit() throws Exception {
IJavaProject project = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointLocationVerificationTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointLocationVerificationTests.java
index 6a4a22d9d2..3dec10afe5 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointLocationVerificationTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointLocationVerificationTests.java
@@ -31,7 +31,6 @@ public class BreakpointLocationVerificationTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public BreakpointLocationVerificationTests(String name) {
super(name);
@@ -40,11 +39,10 @@ public BreakpointLocationVerificationTests(String name) {
/**
* Parses the specified ICompilationUnit into its respective
* CompilationUnit
- * @param unit
* @return the parsed CompilationUnit
*/
private CompilationUnit parseCompilationUnit(ICompilationUnit unit) {
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.getJLSLatest());
parser.setSource(unit);
parser.setUnitName(unit.getElementName());
parser.setResolveBindings(true);
@@ -53,10 +51,6 @@ private CompilationUnit parseCompilationUnit(ICompilationUnit unit) {
/**
* Tests that the predefined location is locatable in the specified type
- * @param lineToTry
- * @param expectedLineNumber
- * @param expectedTypeName
- * @throws JavaModelException
*/
private void testLocation(int lineToTry, int expectedLineNumber, String expectedTypeName) throws JavaModelException {
testLocation(lineToTry, expectedLineNumber, expectedTypeName, expectedTypeName, false);
@@ -64,12 +58,6 @@ private void testLocation(int lineToTry, int expectedLineNumber, String expected
/**
* Tests that the predefined location is locatable in the specified type
- * @param lineToTry
- * @param expectedLineNumber
- * @param baseTypeName
- * @param expectedTypeName
- * @param bestmatch
- * @throws JavaModelException
*/
private void testLocation(int lineToTry, int expectedLineNumber, String baseTypeName, String expectedTypeName, boolean bestmatch) throws JavaModelException {
IType type= get14Project().findType(baseTypeName);
@@ -94,8 +82,6 @@ private void testLocation(int lineToTry, int expectedLineNumber, String baseType
* Tests setting a line breakpoint on a final field that is initialized
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl() throws Exception {
testLocation(17, 17, "FinalBreakpointLocations");
@@ -105,8 +91,6 @@ public void testFinalFieldWithTypeDecl() throws Exception {
* Tests setting a line breakpoint on a final field that is initialized looking for best match
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecla() throws Exception {
testLocation(17, 17, "FinalBreakpointLocations", "FinalBreakpointLocations", true);
@@ -116,8 +100,6 @@ public void testFinalFieldWithTypeDecla() throws Exception {
* Tests setting a line breakpoint on an inner type member for the initializer of
* a final local field variable
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl3() throws Exception {
testLocation(17, 17, "FinalBreakpointLocations");
@@ -128,8 +110,6 @@ public void testFinalFieldWithTypeDecl3() throws Exception {
* for best match
* a final local field variable
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl3a() throws Exception {
testLocation(17, 17, "FinalBreakpointLocations", "FinalBreakpointLocations", true);
@@ -139,8 +119,6 @@ public void testFinalFieldWithTypeDecl3a() throws Exception {
* Tests setting a line breakpoint on an inner-inner type member for the initializer of
* a final local field variable
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl4() throws Exception {
testLocation(20, 20, "FinalBreakpointLocations");
@@ -150,8 +128,6 @@ public void testFinalFieldWithTypeDecl4() throws Exception {
* Tests setting a line breakpoint on an inner-inner type member for the initializer of
* a final local field variable looking for best match
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl4a() throws Exception {
testLocation(20, 20, "FinalBreakpointLocations", "FinalBreakpointLocations", true);
@@ -160,8 +136,6 @@ public void testFinalFieldWithTypeDecl4a() throws Exception {
/**
* Tests setting a line breakpoint on a final field that has not been initialized
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl5() throws Exception {
testLocation(30, 33, "FinalBreakpointLocations");
@@ -171,8 +145,6 @@ public void testFinalFieldWithTypeDecl5() throws Exception {
* Tests setting a line breakpoint on a final field that has not been initialized looking
* for best match
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376354
- *
- * @throws Exception
*/
public void testFinalFieldWithTypeDecl5a() throws Exception {
testLocation(30, 33, "FinalBreakpointLocations", "FinalBreakpointLocations", true);
@@ -180,8 +152,6 @@ public void testFinalFieldWithTypeDecl5a() throws Exception {
/**
* Test line before type declaration
- *
- * @throws Exception
*/
public void testLineBeforeTypeDeclaration() throws Exception {
testLocation(12, 21, "BreakpointsLocation");
@@ -189,7 +159,6 @@ public void testLineBeforeTypeDeclaration() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineMethodSignature() throws Exception {
testLocation(32, 33, "BreakpointsLocation");
@@ -197,7 +166,6 @@ public void testLineMethodSignature() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineInInnerType() throws Exception {
testLocation(28, 28, "BreakpointsLocation.InnerClass");
@@ -205,7 +173,6 @@ public void testLineInInnerType() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineInAnnonymousType() throws Exception {
testLocation(42, 42, "BreakpointsLocation");
@@ -213,7 +180,6 @@ public void testLineInAnnonymousType() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineAfterAllCode() throws Exception {
// ********* this test need to be updated every time BreakpointsLocation.java is modified *************
@@ -223,7 +189,6 @@ public void testLineAfterAllCode() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineVariableDeclarationWithAssigment() throws Exception {
testLocation(46, 49, "BreakpointsLocation");
@@ -231,7 +196,6 @@ public void testLineVariableDeclarationWithAssigment() throws Exception {
/**
* Tests that a breakpoint is not set on a final field
- * @throws Exception
*/
public void testFieldLocationOnFinalField() throws Exception {
testLocation(16, 16, "org.eclipse.debug.tests.targets.BreakpointsLocationBug344984");
@@ -240,7 +204,6 @@ public void testFieldLocationOnFinalField() throws Exception {
/**
* Tests that a breakpoint is not set on a final field looking
* for best match
- * @throws Exception
*/
public void testFieldLocationOnFinalFielda() throws Exception {
testLocation(16, 16, "org.eclipse.debug.tests.targets.BreakpointsLocationBug344984", "org.eclipse.debug.tests.targets.BreakpointsLocationBug344984", true);
@@ -248,7 +211,6 @@ public void testFieldLocationOnFinalFielda() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testEmptyLabel() throws Exception {
testLocation(18, 19, "LabelTest");
@@ -256,7 +218,6 @@ public void testEmptyLabel() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testNestedEmptyLabels() throws Exception {
testLocation(22, 24, "LabelTest");
@@ -264,7 +225,6 @@ public void testNestedEmptyLabels() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLabelWithCode() throws Exception {
testLocation(24, 24, "LabelTest");
@@ -272,7 +232,6 @@ public void testLabelWithCode() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineFieldDeclarationWithAssigment() throws Exception {
testLocation(54, 58, "BreakpointsLocation");
@@ -280,7 +239,6 @@ public void testLineFieldDeclarationWithAssigment() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineExpressionReplacedByConstant1() throws Exception {
testLocation(65, 65, "BreakpointsLocation");
@@ -288,7 +246,6 @@ public void testLineExpressionReplacedByConstant1() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineExpressionReplacedByConstant2() throws Exception {
testLocation(67, 65, "BreakpointsLocation");
@@ -296,7 +253,6 @@ public void testLineExpressionReplacedByConstant2() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineExpressionNotReplacedByConstant1() throws Exception {
testLocation(73, 73, "BreakpointsLocation");
@@ -304,7 +260,6 @@ public void testLineExpressionNotReplacedByConstant1() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineExpressionNotReplacedByConstant2() throws Exception {
testLocation(75, 75, "BreakpointsLocation");
@@ -312,7 +267,6 @@ public void testLineExpressionNotReplacedByConstant2() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineLitteral1() throws Exception {
testLocation(49, 49, "BreakpointsLocation");
@@ -320,7 +274,6 @@ public void testLineLitteral1() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testLineLitteral2() throws Exception {
testLocation(58, 58, "BreakpointsLocation");
@@ -328,7 +281,6 @@ public void testLineLitteral2() throws Exception {
/**
* Tests a specific breakpoint location
- * @throws Exception
*/
public void testInnerStaticClass() throws Exception {
String version = get14Project().getOption(JavaCore.COMPILER_COMPLIANCE, false);
@@ -342,11 +294,6 @@ public void testInnerStaticClass() throws Exception {
/**
* Tests that an specific field is locatable in a specific type at a given offset and line
- * @param line
- * @param offsetInLine
- * @param expectedFieldName
- * @param expectedTypeName
- * @throws Exception
*/
public void testField(int line, int offsetInLine, String expectedFieldName, String expectedTypeName) throws Exception {
IType type= get14Project().findType("BreakpointsLocation");
@@ -364,7 +311,6 @@ public void testField(int line, int offsetInLine, String expectedFieldName, Stri
/**
* Tests that a specific filed is at the correct location
- * @throws Exception
*/
public void testFieldLocationOnField() throws Exception {
testField(30, 20, "fList", "BreakpointsLocation");
@@ -372,7 +318,6 @@ public void testFieldLocationOnField() throws Exception {
/**
* Tests that a specific filed is at the correct location
- * @throws Exception
*/
public void testFieldLocationNotOnField() throws Exception {
testField(36, 21, null, null);
@@ -380,12 +325,6 @@ public void testFieldLocationNotOnField() throws Exception {
/**
* Tests that a specific method is locatable in the specified type at the given offset and line
- * @param line
- * @param offsetInLine
- * @param expectedMethodName
- * @param expectedTypeName
- * @param expectedMethodSignature
- * @throws Exception
*/
public void testMethod(int line, int offsetInLine, String expectedMethodName, String expectedTypeName, String expectedMethodSignature) throws Exception {
IType type= get14Project().findType("BreakpointsLocation");
@@ -405,7 +344,6 @@ public void testMethod(int line, int offsetInLine, String expectedMethodName, St
/**
* Tests that a specific method is locatable in a specific location
- * @throws Exception
*/
public void testMethodOnSignature() throws Exception {
testMethod(20, 23, "test1", "BreakpointsLocation", "()V");
@@ -413,7 +351,6 @@ public void testMethodOnSignature() throws Exception {
/**
* Tests that a specific method is locatable in a specific location
- * @throws Exception
*/
public void testMethodOnCode() throws Exception {
testMethod(19, 17, "test1", "BreakpointsLocation", "()V");
@@ -421,7 +358,6 @@ public void testMethodOnCode() throws Exception {
/**
* Tests that a specific method is locatable in a specific location
- * @throws Exception
*/
public void testMethodNotOnMethod() throws Exception {
testMethod(30, 1, null, null, null);
@@ -429,7 +365,6 @@ public void testMethodNotOnMethod() throws Exception {
/**
* Tests that a specific method is locatable in a specific location
- * @throws Exception
*/
public void testMethodOnMethodSignatureNotAvailable() throws Exception {
testMethod(35, 4, "test2", "BreakpointsLocation", null);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointWorkingSetTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointWorkingSetTests.java
index 3e9488c3a5..311890c47d 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointWorkingSetTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/BreakpointWorkingSetTests.java
@@ -30,7 +30,6 @@ public class BreakpointWorkingSetTests extends AbstractBreakpointWorkingSetTest
/**
* Constructor
- * @param name
*/
public BreakpointWorkingSetTests(String name) {
super(name);
@@ -38,7 +37,6 @@ public BreakpointWorkingSetTests(String name) {
/**
* Tests adding a breakpoint to the default working set
- * @throws Exception
*/
public void testAddToDefaultWorkingSet() throws Exception {
String name = "TEST DEFAULT";
@@ -57,7 +55,6 @@ public void testAddToDefaultWorkingSet() throws Exception {
/**
* Tests adding a breakpoint with no default working set
- * @throws Exception
*/
public void testNoDefaultWorkingSet() throws Exception {
String name = "TEST DEFAULT";
@@ -80,7 +77,6 @@ public void testNoDefaultWorkingSet() throws Exception {
* In this test we have to open / show the view to cause the insert update to occur
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=380614
- * @throws Exception
* @since 3.8.100
*/
public void testInsertIntoDefaultSet() throws Exception {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsTests.java
index 1fa9e6b792..367cb06750 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsTests.java
@@ -31,7 +31,6 @@ public class ConditionalBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public ConditionalBreakpointsTests(String name) {
super(name);
@@ -39,7 +38,6 @@ public ConditionalBreakpointsTests(String name) {
/**
* Tests a breakpoint with a simple condition
- * @throws Exception
*/
public void testSimpleConditionalBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -67,7 +65,6 @@ public void testSimpleConditionalBreakpoint() throws Exception {
/**
* Tests a static method call that has a conditional breakpoint on it
- * @throws Exception
*/
public void testStaticMethodCallConditionalBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -95,7 +92,6 @@ public void testStaticMethodCallConditionalBreakpoint() throws Exception {
/**
* Tests a simple conditional breakpoint that gets hit when a change is made
- * @throws Exception
*/
public void testSimpleConditionalBreakpointSuspendOnChange() throws Exception {
String typeName = "HitCountLooper";
@@ -134,7 +130,6 @@ public void testSimpleConditionalBreakpointSuspendOnChange() throws Exception {
/**
* Tests a conditional step return
- * @throws Exception
*/
public void testConditionalStepReturn() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -157,8 +152,6 @@ public void testConditionalStepReturn() throws Exception {
/**
* Tests a breakpoint condition *is* evaluated when it coincides with a step end.
* See bug 265714.
- *
- * @throws Exception
*/
public void testEvalConditionOnStep() throws Exception {
String typeName = "HitCountLooper";
@@ -194,8 +187,6 @@ public void testEvalConditionOnStep() throws Exception {
/**
* Tests that a thread can be suspended when executing a long-running condition.
- *
- * @throws Exception
*/
public void testSuspendLongRunningCondition() throws Exception {
String typeName = "MethodCall";
@@ -233,8 +224,6 @@ public void testSuspendLongRunningCondition() throws Exception {
/**
* Tests that a conditional breakpoint with an expression that will hit a breakpoint
* will complete the conditional expression evaluation (bug 269231).
- *
- * @throws Exception
*/
public void testConditionalExpressionIgnoresBreakpoint() throws Exception {
String typeName = "BreakpointListenerTest";
@@ -255,7 +244,6 @@ public void testConditionalExpressionIgnoresBreakpoint() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix1() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -273,7 +261,6 @@ public void testConditionalMultiInfix1() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix2() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -291,7 +278,6 @@ public void testConditionalMultiInfix2() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix3() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -309,7 +295,6 @@ public void testConditionalMultiInfix3() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix4() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -327,7 +312,6 @@ public void testConditionalMultiInfix4() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix5() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -345,7 +329,6 @@ public void testConditionalMultiInfix5() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix6() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -363,7 +346,6 @@ public void testConditionalMultiInfix6() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix7() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -381,7 +363,6 @@ public void testConditionalMultiInfix7() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix8() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -399,7 +380,6 @@ public void testConditionalMultiInfix8() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix9() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -417,7 +397,6 @@ public void testConditionalMultiInfix9() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix10() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -435,7 +414,6 @@ public void testConditionalMultiInfix10() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix11() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -453,7 +431,6 @@ public void testConditionalMultiInfix11() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix12() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -471,7 +448,6 @@ public void testConditionalMultiInfix12() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testConditionalMultiInfix13() throws Exception {
String typeName = "ConditionalStepReturn";
@@ -489,8 +465,6 @@ public void testConditionalMultiInfix13() throws Exception {
/**
* Tests a breakpoint with a simple systrace Launch should don't suspend for simple systrace
- *
- * @throws Exception
*/
public void testSystracelBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -511,8 +485,6 @@ public void testSystracelBreakpoint() throws Exception {
/**
* Tests a breakpoint with a simple code which returns Integer Object, Launch should don't suspend for non true boolean returns
- *
- * @throws Exception
*/
public void testConditionBreakpointReturnNonBooleanObject() throws Exception {
String typeName = "HitCountLooper";
@@ -532,8 +504,6 @@ public void testConditionBreakpointReturnNonBooleanObject() throws Exception {
/**
* Tests a breakpoint with a simple code which returns Boolean Object with true, Launch should suspend for true Boolean returns
- *
- * @throws Exception
*/
public void testConditionBreakpointReturnBooleanObjectTrue() throws Exception {
String typeName = "HitCountLooper";
@@ -553,8 +523,6 @@ public void testConditionBreakpointReturnBooleanObjectTrue() throws Exception {
/**
* Tests a breakpoint with a simple code which returns Boolean Object with false, Launch should not suspend for false Boolean returns
- *
- * @throws Exception
*/
public void testConditionBreakpointReturnBooleanObjectFalse() throws Exception {
String typeName = "HitCountLooper";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java
index 0ce0e084c7..3dedc1e731 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java
@@ -27,7 +27,6 @@ public class ConditionalBreakpointsWithGenerics extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public ConditionalBreakpointsWithGenerics(String name) {
super(name);
@@ -46,7 +45,6 @@ protected IJavaProject getProjectContext() {
* multiple use of the same generic type 'T'
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testDuplicateGenericTypes() throws Exception {
String typeName = "a.b.c.ConditionalsNearGenerics";
@@ -69,7 +67,6 @@ public void testDuplicateGenericTypes() throws Exception {
* with many inner types with generics
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testNestedTypes1() throws Exception {
String type = "a.b.c.StepIntoSelectionWithGenerics";
@@ -90,7 +87,6 @@ public void testNestedTypes1() throws Exception {
* with many inner types with generics
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testNestedTypes2() throws Exception {
String type = "a.b.c.StepIntoSelectionWithGenerics";
@@ -111,7 +107,6 @@ public void testNestedTypes2() throws Exception {
* with many inner types with generics
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testNestedTypes3() throws Exception {
String type = "a.b.c.StepIntoSelectionWithGenerics";
@@ -132,7 +127,6 @@ public void testNestedTypes3() throws Exception {
* with multiple generic types 'T', 'E', 'K'
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testMultipleGenericTypes1() throws Exception {
String type = "a.b.c.MethodBreakpoints";
@@ -153,7 +147,6 @@ public void testMultipleGenericTypes1() throws Exception {
* with multiple generic types 'T', 'E', 'K'
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testMultipleGenericTypes2() throws Exception {
String type = "a.b.c.MethodBreakpoints";
@@ -173,7 +166,6 @@ public void testMultipleGenericTypes2() throws Exception {
* Tests a breakpoint with a condition that includes generics
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testBreakpointWithGenericsCondition1() throws Exception {
String type = "a.b.c.MethodBreakpoints";
@@ -197,7 +189,6 @@ public void testBreakpointWithGenericsCondition1() throws Exception {
* duplicate generic declarations
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testBreakpointWithGenericCondition2() throws Exception {
String type = "a.b.c.ConditionalsNearGenerics";
@@ -219,7 +210,6 @@ public void testBreakpointWithGenericCondition2() throws Exception {
* Tests a breakpoint with a condition that includes generics from nested classes
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341232
- * @throws Exception
*/
public void testBreakpointWithGenericCondition3() throws Exception {
String type = "a.b.c.StepIntoSelectionWithGenerics";
@@ -244,7 +234,6 @@ public void testBreakpointWithGenericCondition3() throws Exception {
* Tests a breakpoint with a condition that includes generics from nested classes
*
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=403028
- * @throws Exception
*/
public void testBreakpointWithGenericCondition4() throws Exception {
String type = "a.b.c.bug403028";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/DeferredBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/DeferredBreakpointTests.java
index 6e7c0cd53a..fbc49c336e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/DeferredBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/DeferredBreakpointTests.java
@@ -34,7 +34,6 @@ public class DeferredBreakpointTests extends AbstractDebugUiTests {
/**
* Constructor
- * @param name
*/
public DeferredBreakpointTests(String name) {
super(name);
@@ -42,7 +41,6 @@ public DeferredBreakpointTests(String name) {
/**
* Tests deferring several breakpoints
- * @throws Exception
*/
public void testDeferredBreakpoints() throws Exception {
String typeName = "Breakpoints";
@@ -111,7 +109,6 @@ private void createBreakpoints(String typeName, List breakpoints, i
/**
* Tests disabling several breakpoints
- * @throws Exception
*/
public void testDisabledBreakpoint() throws Exception {
String typeName = "Breakpoints";
@@ -129,7 +126,6 @@ public void testDisabledBreakpoint() throws Exception {
/**
* Tests a cycle of enable/disable breakpoints
- * @throws Exception
*/
public void testEnableDisableBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -149,7 +145,6 @@ public void testEnableDisableBreakpoint() throws Exception {
/**
* Tests skipping a single line breakpoint
- * @throws Exception
*/
public void testSkipLineBreakpoint() throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ExceptionBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ExceptionBreakpointTests.java
index 64ba0e765b..0c8476ce5b 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ExceptionBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ExceptionBreakpointTests.java
@@ -37,7 +37,6 @@ public ExceptionBreakpointTests(String name) {
/**
* tests that breakpoint suspends on caught exceptions
- * @throws Exception
*/
public void testCaughtException() throws Exception {
String typeName = "ThrowsException";
@@ -60,7 +59,6 @@ public void testCaughtException() throws Exception {
/**
* tests that breakpoint suspends on uncaught exceptions
- * @throws Exception
*/
public void testUncaughtException() throws Exception {
String typeName = "HitCountException";
@@ -83,10 +81,6 @@ public void testUncaughtException() throws Exception {
}
}
- /**
- *
- * @throws Exception
- */
public void testDisabledCaughtException() throws Exception {
String typeName = "ThrowsNPE";
IJavaExceptionBreakpoint ex = createExceptionBreakpoint("java.lang.NullPointerException", true, false);
@@ -104,7 +98,6 @@ public void testDisabledCaughtException() throws Exception {
/**
* tests that the breakpoint does not suspend for disabled breakpoint set for uncaught exceptions
- * @throws Exception
*/
public void testDisabledUncaughtNPE() throws Exception {
String typeName = "MultiThreadedException";
@@ -123,7 +116,6 @@ public void testDisabledUncaughtNPE() throws Exception {
/**
* tests that the breakpoint will only suspend on a breakpoint in the inclusion filters
- * @throws Exception
*/
public void testInclusiveScopedException() throws Exception {
String typeName = "ThrowsException";
@@ -147,7 +139,6 @@ public void testInclusiveScopedException() throws Exception {
/**
* test that the breakpoint will not suspend as the class that throws the exception has been added to the exclusion filters
- * @throws Exception
*/
public void testExclusiveScopedException() throws Exception {
String typeName = "ThrowsException";
@@ -166,7 +157,6 @@ public void testExclusiveScopedException() throws Exception {
/**
* tests the hit count of an exception breakpoint
- * @throws Exception
*/
public void testHitCountException() throws Exception {
String typeName = "HitCountException";
@@ -189,7 +179,6 @@ public void testHitCountException() throws Exception {
/**
* tests that the breakpoint will suspend at an NPE with more than one exclusion filter, just not suspend in either
* of the classes for the exclusion filter
- * @throws Exception
*/
public void testMultiExclusiveScopedExceptionHit() throws Exception {
String typeName = "ThrowsNPE";
@@ -210,7 +199,6 @@ public void testMultiExclusiveScopedExceptionHit() throws Exception {
/**
* tests that the breakpoint does not suspend for multiple exclusion filters
- * @throws Exception
*/
public void testMultiExclusiveScopedExceptionMissed() throws Exception {
String typeName = "ThrowsException";
@@ -229,7 +217,6 @@ public void testMultiExclusiveScopedExceptionMissed() throws Exception {
/**
* tests that a breakpoint is hit with multiple inclusion filters set
- * @throws Exception
*/
public void testMultiInclusiveScopedExceptionHit() throws Exception {
String typeName = "ThrowsNPE";
@@ -250,7 +237,6 @@ public void testMultiInclusiveScopedExceptionHit() throws Exception {
/**
* tests that the breakpoint does not suspend with multiple inclusion filters
- * @throws Exception
*/
public void testMultiInclusiveScopedExceptionMissed() throws Exception {
String typeName = "ThrowsNPE";
@@ -269,7 +255,6 @@ public void testMultiInclusiveScopedExceptionMissed() throws Exception {
/**
* test that breakpoint suspends with multi inclusion and exclusion filters
- * @throws Exception
*/
public void testMultiInclusiveExclusiveScopedExceptionHit() throws Exception {
String typeName = "ThrowsNPE";
@@ -291,7 +276,6 @@ public void testMultiInclusiveExclusiveScopedExceptionHit() throws Exception {
/**
* tests that breakpoint does not suspend with multi inclusion and exclusion filters
- * @throws Exception
*/
public void testMultiInclusiveExclusiveScopedExceptionMissed() throws Exception {
String typeName = "ThrowsNPE";
@@ -311,7 +295,6 @@ public void testMultiInclusiveExclusiveScopedExceptionMissed() throws Exception
/**
* tests that breakpoint is skipped when told to do so
- * @throws Exception
*/
public void testSkipExceptionBreakpoint() throws Exception {
String typeName = "ThrowsNPE";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/HitCountBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/HitCountBreakpointsTests.java
index 4ef0936f6f..7758f339ab 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/HitCountBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/HitCountBreakpointsTests.java
@@ -27,7 +27,6 @@ public class HitCountBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public HitCountBreakpointsTests(String name) {
super(name);
@@ -35,7 +34,6 @@ public HitCountBreakpointsTests(String name) {
/**
* Tests resetting the hit count of a line breakpoint
- * @throws Exception
*/
public void testResetHitCountBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -78,7 +76,6 @@ public void testResetHitCountBreakpoint() throws Exception {
/**
* Tests an expired hit count breakpoint, i.e. expired meaning that the count is no longer
* effectual
- * @throws Exception
*/
public void testExpiredHitCountBreakpoint() throws Exception {
String typeName = "HitCountLooper";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaBreakpointListenerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaBreakpointListenerTests.java
index caaf4a3e2b..b3ed1ca135 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaBreakpointListenerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaBreakpointListenerTests.java
@@ -79,8 +79,6 @@ static class SuspendVoter implements IJavaBreakpointListener {
/**
* Constructor
- * @param suspendVote
- * @param breakpoint
*/
public SuspendVoter(int suspendVote, IJavaBreakpoint breakpoint) {
fVote = suspendVote;
@@ -150,8 +148,6 @@ class InstallVoter extends SuspendVoter {
/**
* Constructor
- * @param installVote
- * @param breakpoint
*/
public InstallVoter(int installVote, IJavaBreakpoint breakpoint) {
super(installVote, breakpoint);
@@ -215,7 +211,6 @@ public int installingBreakpoint(IJavaDebugTarget target, IJavaBreakpoint breakpo
/**
* Constructor
- * @param name
*/
public JavaBreakpointListenerTests(String name) {
super(name);
@@ -234,7 +229,6 @@ protected void resetCallbacks() {
/**
* Tests the functionality of a single line breakpoint
- * @throws Exception
*/
public void testLineBreakpoint() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -288,7 +282,6 @@ public void testLineBreakpoint() throws Exception {
/**
* Tests the functionality of an exception breakpoint
- * @throws Exception
*/
public void testExceptionBreakpoint() throws Exception {
IJavaExceptionBreakpoint breakpoint = createExceptionBreakpoint("java.lang.NullPointerException", true, true);
@@ -353,7 +346,6 @@ public void testExceptionBreakpoint() throws Exception {
/**
* Tests the functionality of a method breakpoint
- * @throws Exception
*/
public void testMethodBreakpoint() throws Exception {
IJavaMethodBreakpoint breakpoint = createMethodBreakpoint("DropTests", "method4", "()V", true, false);
@@ -417,7 +409,6 @@ public void testMethodBreakpoint() throws Exception {
/**
* Vote: Install 3, Don't Care 0, Don't Install 0 == INSTALL
- * @throws Exception
*/
public void testUnanimousInstallVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -443,7 +434,6 @@ public void testUnanimousInstallVote() throws Exception {
/**
* Vote: Install 0, Don't Care 3, Don't Install 0 == INSTALL
- * @throws Exception
*/
public void testDontCareInstallVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -469,7 +459,6 @@ public void testDontCareInstallVote() throws Exception {
/**
* Vote: Install 1, Don't Care 2, Don't Install 0 == INSTALL
- * @throws Exception
*/
public void testInstallDontCareVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -495,7 +484,6 @@ public void testInstallDontCareVote() throws Exception {
/**
* Vote: Install 1, Don't Care 0, Don't Install 2 == INSTALL
- * @throws Exception
*/
public void testInstallDontVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -521,7 +509,6 @@ public void testInstallDontVote() throws Exception {
/**
* Vote: Install 0, Don't Care 1, Don't Install 2 = RESUME
- * @throws Exception
*/
public void testDontInstallVote() throws Exception {
IJavaLineBreakpoint breakpoint1 = createLineBreakpoint(57, "Breakpoints");
@@ -548,7 +535,6 @@ public void testDontInstallVote() throws Exception {
/**
* Vote: Suspend 3, Don't Care 0, Don't Suspend 0 == SUSPEND
- * @throws Exception
*/
public void testUnanimousSuspendVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -574,7 +560,6 @@ public void testUnanimousSuspendVote() throws Exception {
/**
* Vote: Suspend 0, Don't Care 3, Don't Suspend 0 == SUSPEND
- * @throws Exception
*/
public void testDontCareSuspendVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -600,7 +585,6 @@ public void testDontCareSuspendVote() throws Exception {
/**
* Vote: Suspend 1, Don't Care 2, Don't Suspend 0 == SUSPEND
- * @throws Exception
*/
public void testSuspendDontCareVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -626,7 +610,6 @@ public void testSuspendDontCareVote() throws Exception {
/**
* Vote: Suspend 1, Don't Care 0, Don't Suspend 2 == SUSPEND
- * @throws Exception
*/
public void testSuspendDontVote() throws Exception {
IJavaLineBreakpoint breakpoint = createLineBreakpoint(57, "Breakpoints");
@@ -652,7 +635,6 @@ public void testSuspendDontVote() throws Exception {
/**
* Vote: Suspend 0, Don't Care 1, Don't Suspend 2 = RESUME
- * @throws Exception
*/
public void testDontSuspendVote() throws Exception {
IJavaLineBreakpoint breakpoint1 = createLineBreakpoint(54, "Breakpoints");
@@ -679,7 +661,6 @@ public void testDontSuspendVote() throws Exception {
/**
* Vote: Suspend 0, Don't Care 1 (java debug options manager), Don't Suspend 1 = RESUME
- * @throws Exception
*/
public void testMethodBreakpointDontSuspendVote() throws Exception {
IJavaMethodBreakpoint breakpoint1 = createMethodBreakpoint("DropTests", "method2", "()V", true, false);
@@ -814,8 +795,6 @@ public void testEvalListenerExtension() throws Exception {
/**
* Tests that a step end that lands on a breakpoint listener that votes to resume
* results in the step completing and suspending.
- *
- * @throws Exception
*/
public void testStepEndResumeVote() throws Exception {
String typeName = "HitCountLooper";
@@ -839,8 +818,6 @@ public void testStepEndResumeVote() throws Exception {
/**
* Test that a step over hitting a breakpoint deeper up the stack with a listener
* can perform an evaluation and resume to complete the step.
- *
- * @throws Exception
*/
public void testStepOverHitsNestedEvaluationHandlerResume() throws Exception {
String typeName = "MethodLoop";
@@ -892,8 +869,6 @@ public void testStepOverHitsNestedEvaluationHandlerResume() throws Exception {
/**
* Test that a step over hitting a breakpoint deeper up the stack with a listener
* can perform an evaluation and suspend to abort the step.
- *
- * @throws Exception
*/
public void testStepOverHitsNestedEvaluationHandlerSuspend() throws Exception {
String typeName = "MethodLoop";
@@ -946,8 +921,6 @@ public void testStepOverHitsNestedEvaluationHandlerSuspend() throws Exception {
/**
* Suspends an evaluation. Ensures we're returned to the proper top frame.
- *
- * @throws Exception
*/
public void testSuspendEvaluation() throws Exception {
String typeName = "MethodLoop";
@@ -980,8 +953,6 @@ public void testSuspendEvaluation() throws Exception {
/**
* Test that a global listener gets notifications.
- *
- * @throws Exception
*/
public void testGlobalListener() throws Exception {
GlobalBreakpointListener.clear();
@@ -1008,8 +979,6 @@ public void testGlobalListener() throws Exception {
/**
* Tests that breakpoint listeners are only notified when condition is true.
- *
- * @throws Exception
*/
public void testListenersOnConditionalBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -1034,8 +1003,6 @@ public void testListenersOnConditionalBreakpoint() throws Exception {
/**
* Tests that breakpoint listeners are only notified when condition is true
* while stepping to a breakpoint.
- *
- * @throws Exception
*/
public void testListenersOnConditionalBreakpointStepping() throws Exception {
String typeName = "HitCountLooper";
@@ -1072,8 +1039,6 @@ public void testListenersOnConditionalBreakpointStepping() throws Exception {
/**
* Tests that breakpoint listeners are not notified of "hit" when condition has compilation
* errors. Also they should be notified of the compilation errors.
- *
- * @throws Exception
*/
public void testListenersOnCompilationError() throws Exception {
String typeName = "HitCountLooper";
@@ -1097,8 +1062,6 @@ public void testListenersOnCompilationError() throws Exception {
/**
* Tests that breakpoint listeners are not notified of "hit" when condition has compilation
* errors. Also they should be notified of the compilation errors.
- *
- * @throws Exception
*/
public void testListenersOnRuntimeError() throws Exception {
String typeName = "HitCountLooper";
@@ -1121,8 +1084,6 @@ public void testListenersOnRuntimeError() throws Exception {
/**
* Tests addition and removal of breakpoint listeners to a breakpoint.
- *
- * @throws Exception
*/
public void testAddRemoveListeners() throws Exception {
try {
@@ -1171,8 +1132,6 @@ public void testAddRemoveListeners() throws Exception {
/**
* Tests addition of duplicate breakpoint listeners to a breakpoint.
- *
- * @throws Exception
*/
public void testAddDuplicateListeners() throws Exception {
try {
@@ -1204,8 +1163,6 @@ public void testAddDuplicateListeners() throws Exception {
/**
* Tests that listeners can be retrieved after breakpoint deletion.
- *
- * @throws Exception
*/
public void testGetListenersAfterDelete() throws Exception {
try {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaThreadEventHandlerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaThreadEventHandlerTests.java
index a87dd95f05..f554850092 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaThreadEventHandlerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/JavaThreadEventHandlerTests.java
@@ -27,7 +27,6 @@
import org.eclipse.jdt.debug.eval.IEvaluationListener;
import org.eclipse.jdt.debug.eval.IEvaluationResult;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine;
import org.eclipse.jdt.internal.debug.ui.threadgroups.JavaDebugTargetProxy;
import org.eclipse.jdt.internal.debug.ui.threadgroups.JavaThreadEventHandler;
@@ -126,8 +125,6 @@ public void testComputeFrameIndexOnSecondFrameAndMonitorsOff() throws Exception
/**
* Tests that we can (or can't) compute frame index during evaluation
- *
- * @throws Exception
*/
public void testComputeFrameIndexDuringEvaluation() throws Exception {
String typeName = "DropTests";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests.java
index b99e43742e..396aaf0fdd 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests.java
@@ -42,15 +42,11 @@ public class MethodBreakpointTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public MethodBreakpointTests(String name) {
super(name);
}
- /**
- * @throws Exception
- */
public void testEntryAndExitBreakpoints() throws Exception {
String typeName = "DropTests";
List bps = new ArrayList<>();
@@ -85,7 +81,6 @@ public void testEntryAndExitBreakpoints() throws Exception {
/**
* Tests the 'stop in main' launching preference
* {@link IJavaLaunchConfigurationConstants#ATTR_STOP_IN_MAIN}
- * @throws Exception
*/
public void testStopInMain() throws Exception {
String typeName = "DropTests";
@@ -114,7 +109,6 @@ public void testStopInMain() throws Exception {
/**
* Tests disabled method entry and exit breakpoints
- * @throws Exception
*/
public void testDisabledEntryAndExitBreakpoints() throws Exception {
String typeName = "DropTests";
@@ -136,7 +130,6 @@ public void testDisabledEntryAndExitBreakpoints() throws Exception {
/**
* Tests that a method is NOT hit in an inner class
- * @throws Exception
*/
public void testInnerClassNotHit() throws Exception {
String typeNamePattern = "A";
@@ -165,7 +158,6 @@ public void testInnerClassNotHit() throws Exception {
/**
* Tests that a given method IS hit in an inner class
- * @throws Exception
*/
public void testInnerClassesHit() throws Exception {
String typeNamePattern = "A*";
@@ -207,7 +199,6 @@ public void testInnerClassesHit() throws Exception {
/**
* Tests the hit count for a method breakpoint suspends when reached
- * @throws Exception
*/
public void testHitCountEntryBreakpoint() throws Exception {
String typeName = "MethodLoop";
@@ -237,7 +228,6 @@ public void testHitCountEntryBreakpoint() throws Exception {
/**
* Tests that the a method exit breakpoint suspends when its hit count is reached
- * @throws Exception
*/
public void testHitCountExitBreakpoint() throws Exception {
String typeName = "MethodLoop";
@@ -267,7 +257,6 @@ public void testHitCountExitBreakpoint() throws Exception {
/**
* Tests an inclusive thread filter on a method breakpoint
- * @throws Exception
*/
public void testThreadFilterInclusive() throws Exception {
String typeName = "MethodLoop";
@@ -298,7 +287,6 @@ public void testThreadFilterInclusive() throws Exception {
/**
* Tests an exclusive thread filter on a method breakpoint
- * @throws Exception
*/
public void testThreadFilterExclusive() throws Exception {
String typeName = "MethodLoop";
@@ -333,7 +321,6 @@ public void testThreadFilterExclusive() throws Exception {
/**
* Test for bug 33551
* Tests that a method breakpoint is hit properly in the default package
- * @throws Exception
*/
public void testEntryDefaultPackageReturnType() throws Exception {
String typeName = "DefPkgReturnType";
@@ -357,7 +344,6 @@ public void testEntryDefaultPackageReturnType() throws Exception {
/**
* Test for bug 43611
* Tests that the debug model presentation is returning the correct signature for a specific method breakpoint
- * @throws Exception
*/
public void testLabelWithoutSignature() throws Exception {
IDebugModelPresentation modelPresentation = DebugUITools.newDebugModelPresentation();
@@ -375,7 +361,6 @@ public void testLabelWithoutSignature() throws Exception {
/**
* Test for bug 43611
* Tests that the debug model presentation handles a label with no name for a specific method breakpoint
- * @throws Exception
*/
public void testLabelWithoutMethodName() throws Exception {
IDebugModelPresentation modelPresentation = DebugUITools.newDebugModelPresentation();
@@ -394,7 +379,6 @@ public void testLabelWithoutMethodName() throws Exception {
* Test for bug 43611
* Tests that the debug model presentation handles no signature or method name for a specific
* method breakpoint
- * @throws Exception
*/
public void testLabelWithoutSigOrMethodName() throws Exception {
IDebugModelPresentation modelPresentation = DebugUITools.newDebugModelPresentation();
@@ -411,7 +395,6 @@ public void testLabelWithoutSigOrMethodName() throws Exception {
/**
* Tests that a specific method breakpoint is skipped when set to do so
- * @throws Exception
*/
public void testSkipMethodBreakpoint() throws Exception {
String typeName = "DropTests";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests15.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests15.java
index d57a2f857e..dc7300821c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests15.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MethodBreakpointTests15.java
@@ -92,9 +92,6 @@ private void runToBreakpoint(String typeName, IBreakpoint mbp) throws Exception
}
}
- /**
- * @throws Exception
- */
public void testGenericArrayEntryBreakpoints() throws Exception {
String typeName = "a.b.c.GenericMethodEntryTest";
List bps = new ArrayList<>();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MiscBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MiscBreakpointsTests.java
index 6949947ce8..fc2713a299 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MiscBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/MiscBreakpointsTests.java
@@ -34,7 +34,6 @@ public class MiscBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public MiscBreakpointsTests(String name) {
super(name);
@@ -43,7 +42,6 @@ public MiscBreakpointsTests(String name) {
/**
* This method DEPENDS on the default setting of the 'suspend on uncaught exceptions'
* preference being TRUE.
- * @throws Exception
*/
public void testSuspendOnUncaughtExceptions() throws Exception {
String typeName = "ThrowsNPE";
@@ -66,7 +64,6 @@ public void testSuspendOnUncaughtExceptions() throws Exception {
/**
* This method DEPENDS on the default setting of the 'suspend on compilation errors'
* preference being TRUE.
- * @throws Exception
*/
public void testSuspendOnCompilationErrors() throws Exception {
String typeName = "CompileError";
@@ -97,7 +94,6 @@ public void testSuspendOnCompilationErrors() throws Exception {
/**
* Tests that the program will not suspend on uncaught exceptions or errors if the corresponding
* preferences are set to false
- * @throws Exception
*/
public void testDontSuspendOnCompilationErrors() throws Exception {
String typeName = "CompileError";
@@ -121,7 +117,6 @@ public void testDontSuspendOnCompilationErrors() throws Exception {
/**
* Tests that the program will not suspend on uncaught exceptions if the corresponding
* preference is set to false
- * @throws Exception
*/
public void testDontSuspendOnUncaughtExceptions() throws Exception {
String typeName = "ThrowsNPE";
@@ -138,7 +133,6 @@ public void testDontSuspendOnUncaughtExceptions() throws Exception {
/**
* Returns the JDIDebugUIPlugin preference store
- * @return
*/
protected IPreferenceStore getPrefStore() {
return JDIDebugUIPlugin.getDefault().getPreferenceStore();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PatternBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PatternBreakpointTests.java
index 5559dabeed..ecb9825686 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PatternBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PatternBreakpointTests.java
@@ -31,7 +31,6 @@ public class PatternBreakpointTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public PatternBreakpointTests(String name) {
super(name);
@@ -39,7 +38,6 @@ public PatternBreakpointTests(String name) {
/**
* Tests several pattern breakpoints
- * @throws Exception
*/
public void testPatternBreakpoints() throws Exception {
String sourceName = "Breakpoints.java";
@@ -112,7 +110,6 @@ public void testPatternBreakpoints() throws Exception {
/**
* Bug 74108 - enable/disable a stratum breakpoint that is not yet installed
- * @throws Exception
*/
public void testToggleStratumBreakpoint() throws Exception {
IJavaStratumLineBreakpoint stratumLineBreakpoint = createStratumBreakpoint(6, "date.jsp", "JSP");
@@ -143,7 +140,6 @@ public void testToggleStratumBreakpoint() throws Exception {
/**
* Bug 74108 - enable/disable a pattern breakpoint that is not yet installed
- * @throws Exception
*/
public void testTogglePatternBreakpoint() throws Exception {
IJavaPatternBreakpoint patternBreakpoint = createPatternBreakpoint(3, "date.jsp", "date");
@@ -174,7 +170,6 @@ public void testTogglePatternBreakpoint() throws Exception {
/**
* Tests that a pattern breakpoint is skipped when set to do so
- * @throws Exception
*/
public void testSkipPatternBreakpoint() throws Exception {
String sourceName = "Breakpoints.java";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PreLaunchBreakpointTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PreLaunchBreakpointTest.java
index 7a1ca32cdd..b9d1945d16 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PreLaunchBreakpointTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/PreLaunchBreakpointTest.java
@@ -32,7 +32,6 @@ public class PreLaunchBreakpointTest extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public PreLaunchBreakpointTest(String name) {
super(name);
@@ -41,7 +40,6 @@ public PreLaunchBreakpointTest(String name) {
/**
* Tests that the perspective will switch if breakpoints are detected and the program was launched in
* 'run' mode
- * @throws Exception
*/
public void testRunModeLaunchWithBreakpoints() throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/RunToLineTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/RunToLineTests.java
index 5fa9a243e2..46fb6625f4 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/RunToLineTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/RunToLineTests.java
@@ -44,7 +44,6 @@ public class RunToLineTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public RunToLineTests(String name) {
super(name);
@@ -85,8 +84,6 @@ public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor persp
/**
* Test a run to line, with no extra breakpoints.
- *
- * @throws Exception
*/
public void testRunToLine() throws Exception {
runToLine(58, 58, true);
@@ -94,8 +91,6 @@ public void testRunToLine() throws Exception {
/**
* Test a run to line, with an extra breakpoint, and preference to skip
- *
- * @throws Exception
*/
public void testRunToLineSkipBreakpoint() throws Exception {
createLineBreakpoint(56, "Breakpoints");
@@ -104,8 +99,6 @@ public void testRunToLineSkipBreakpoint() throws Exception {
/**
* Test a run to line, with an extra breakpoint, and preference to *not* skip
- *
- * @throws Exception
*/
public void testRunToLineHitBreakpoint() throws Exception {
createLineBreakpoint(56, "Breakpoints");
@@ -120,7 +113,6 @@ public void testRunToLineHitBreakpoint() throws Exception {
* @param expectedLineNumber the line number to be on after run-to-line (may differ from
* the target line number if the option to skip breakpoints is off).
* @param skipBreakpoints preference value for "skip breakpoints during run to line"
- * @throws Exception
*/
public void runToLine(final int lineNumber, int expectedLineNumber, boolean skipBreakpoints) throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMBreakpointsTests.java
index a1fac20847..eca53d4a6e 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMBreakpointsTests.java
@@ -33,7 +33,6 @@ public class SuspendVMBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public SuspendVMBreakpointsTests(String name) {
super(name);
@@ -41,7 +40,6 @@ public SuspendVMBreakpointsTests(String name) {
/**
* Tests that the VM is suspended when the specific line breakpoint is hit
- * @throws Exception
*/
public void testSuspendVmLineBreakpoint() throws Exception {
String typeName = "MultiThreadedLoop";
@@ -63,7 +61,6 @@ public void testSuspendVmLineBreakpoint() throws Exception {
/**
* Tests that the VM is suspended when a specific exception breakpoint is hit
- * @throws Exception
*/
public void testSuspendVmExceptionBreakpoint() throws Exception {
String typeName = "ThrowsNPE";
@@ -90,7 +87,6 @@ public void testSuspendVmExceptionBreakpoint() throws Exception {
/**
* Tests that the VM is suspended when a specific access watchpoint is hit
- * @throws Exception
*/
public void testSuspendVmAccessWatchpointBreakpoint() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -120,7 +116,6 @@ public void testSuspendVmAccessWatchpointBreakpoint() throws Exception {
/**
* Tests that the VM is suspended when a specific modification watchpoint is hit
- * @throws Exception
*/
public void testSuspendVmModificationWatchpointBreakpoint() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -153,7 +148,6 @@ public void testSuspendVmModificationWatchpointBreakpoint() throws Exception {
/**
* Tests that the VM is suspended when a specific method entry breakpoint is hit
- * @throws Exception
*/
public void testSuspendVmMethodEntryBreakpoint() throws Exception {
String typeName = "DropTests";
@@ -179,7 +173,6 @@ public void testSuspendVmMethodEntryBreakpoint() throws Exception {
/**
* Tests that the VM is suspended when a specific method exit breakpoint is hit
- * @throws Exception
*/
public void testSuspendVmMethodExitBreakpoint() throws Exception {
String typeName = "DropTests";
@@ -205,7 +198,6 @@ public void testSuspendVmMethodExitBreakpoint() throws Exception {
/**
* Verifies that all of the threads of the related debug target are suspended
- * @param thread
*/
protected void verifyAllThreadsSuspended(IJavaThread thread) {
try {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMConditionalBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMConditionalBreakpointsTests.java
index fb2a4b9e6a..646d149ff3 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMConditionalBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/SuspendVMConditionalBreakpointsTests.java
@@ -32,8 +32,6 @@ public class SuspendVMConditionalBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- *
- * @param name
*/
public SuspendVMConditionalBreakpointsTests(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TargetPatternBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TargetPatternBreakpointTests.java
index c28ef53161..0fcfca0e9b 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TargetPatternBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TargetPatternBreakpointTests.java
@@ -38,7 +38,6 @@ public class TargetPatternBreakpointTests extends AbstractDebugTest implements I
/**
* Constructor
- * @param name
*/
public TargetPatternBreakpointTests(String name) {
super(name);
@@ -46,7 +45,6 @@ public TargetPatternBreakpointTests(String name) {
/**
* Tests that several pattern breakpoints are suspending properly
- * @throws Exception
*/
public void testTargetPatternBreakpoints() throws Exception {
JDIDebugPlugin.getDefault().addJavaBreakpointListener(this);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget.java
index 64ac094c9f..d3d49c9fa9 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget.java
@@ -33,8 +33,6 @@ public TestToggleBreakpointsTarget(String name) {
/**
* Tests that qualified names get created for line breakpoints in external
* files.
- *
- * @throws Exception
*/
public void testExternalLineBreakpoint() throws Exception {
Listener listener = new Listener();
@@ -58,8 +56,6 @@ public void testExternalLineBreakpoint() throws Exception {
/**
* Tests that qualified names get created for watchpoints in external
* files.
- *
- * @throws Exception
*/
public void testExternalWatchpoint() throws Exception {
Listener listener = new Listener();
@@ -83,8 +79,6 @@ public void testExternalWatchpoint() throws Exception {
/**
* Tests that qualified names get created for method breakpoints in external
* files.
- *
- * @throws Exception
*/
public void testExternalMethodBreakpoint() throws Exception {
Listener listener = new Listener();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget8.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget8.java
index 1d4bd66347..88495e1024 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget8.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TestToggleBreakpointsTarget8.java
@@ -36,8 +36,6 @@ public TestToggleBreakpointsTarget8(String name) {
/**
* Tests that qualified names get created for method breakpoints in default method of Java 8 interface
* files.
- *
- * @throws Exception
*/
public void testInterfaceDefaultMethodBreakpoint() throws Exception {
Listener listener = new Listener();
@@ -62,8 +60,6 @@ public void testInterfaceDefaultMethodBreakpoint() throws Exception {
/**
* Tests that qualified names get created for method breakpoints in Static method of Java 8 interface
* files.
- *
- * @throws Exception
*/
public void testInterfaceStaticMethodBreakpoint() throws Exception {
Listener listener = new Listener();
@@ -89,8 +85,6 @@ public void testInterfaceStaticMethodBreakpoint() throws Exception {
/**
* Tests that qualified names does get created for method breakpoints in unimplemented method of Java 8 interface
* files.
- *
- * @throws Exception
*/
public void testInterfaceUnimplementedMethodBreakpoint() throws Exception {
Listener listener = new Listener();
@@ -110,8 +104,6 @@ public void testInterfaceUnimplementedMethodBreakpoint() throws Exception {
/**
* Tests that qualified names get created for line breakpoints in Interface implemented method
* files.
- *
- * @throws Exception
*/
public void testInterfaceLineBreakpoint() throws Exception {
Listener listener = new Listener();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadFilterBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadFilterBreakpointsTests.java
index 93e7211117..d87a2d6305 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadFilterBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadFilterBreakpointsTests.java
@@ -26,7 +26,6 @@ public class ThreadFilterBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public ThreadFilterBreakpointsTests(String name) {
super(name);
@@ -34,7 +33,6 @@ public ThreadFilterBreakpointsTests(String name) {
/**
* Tests that a simple thread filter is working for a specific line breakpoint
- * @throws Exception
*/
public void testSimpleThreadFilterBreakpoint() throws Exception {
String typeName = "HitCountLooper";
@@ -56,7 +54,6 @@ public void testSimpleThreadFilterBreakpoint() throws Exception {
/**
* Tests multiple thread filters are working for a specific line breakpoint
- * @throws Exception
*/
public void testMultiThreadFilterBreakpoint() throws Exception {
String typeName = "MultiThreadedLoop";
@@ -82,8 +79,6 @@ public void testMultiThreadFilterBreakpoint() throws Exception {
/**
* Tests that a thread works for specific exception breakpoint
- *
- * @throws Exception
*/
public void testExceptionThreadFilterBreakpoint() throws Exception {
String typeName = "MultiThreadedException";
@@ -107,7 +102,6 @@ public void testExceptionThreadFilterBreakpoint() throws Exception {
/**
* Tests that a thread filter works for a specific watchpoint
- * @throws Exception
*/
public void testAccessWatchpointThreadFilterBreakpoint() throws Exception {
String typeName = "MultiThreadedList";
@@ -132,7 +126,6 @@ public void testAccessWatchpointThreadFilterBreakpoint() throws Exception {
/**
* Tests that a thread filter is working for a specific modification watchpoint
- * @throws Exception
*/
public void testModificationWatchpointThreadFilterBreakpoint() throws Exception {
String typeName = "MultiThreadedList";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadNameChangeTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadNameChangeTests.java
index 233af7f5b9..8f9cf70832 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadNameChangeTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ThreadNameChangeTests.java
@@ -45,7 +45,6 @@ public class ThreadNameChangeTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public ThreadNameChangeTests(String name) {
super(name);
@@ -53,8 +52,6 @@ public ThreadNameChangeTests(String name) {
/**
* Tests that we listen to thread name changes and send a debug event if that happens
- *
- * @throws Exception
*/
public void testListenToThreadNameChange() throws Exception {
String typeName = "ThreadNameChange";
@@ -102,8 +99,6 @@ public void handleDebugEvents(DebugEvent[] e) {
/**
* Tests that we do not listen to thread name changes if the corresponding preference is set to false
- *
- * @throws Exception
*/
public void testListenToThreadNameChangeDisabled() throws Exception {
System.setProperty(DISABLE_THREAD_NAME_CHANGE_LISTENER, String.valueOf(Boolean.TRUE));
@@ -190,7 +185,6 @@ private IThread findThread(IJavaThread thread, String name, long timeout) throws
/**
* Returns the JDIDebugUIPlugin preference store
- * @return
*/
protected IPreferenceStore getPrefStore() {
return JDIDebugUIPlugin.getDefault().getPreferenceStore();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TriggerPointBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TriggerPointBreakpointsTests.java
index 7d2dd67f76..adff135727 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TriggerPointBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TriggerPointBreakpointsTests.java
@@ -27,7 +27,6 @@ public class TriggerPointBreakpointsTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public TriggerPointBreakpointsTests(String name) {
super(name);
@@ -35,8 +34,6 @@ public TriggerPointBreakpointsTests(String name) {
/**
* Tests the trigger point
- *
- * @throws Exception
*/
public void testTriggerPointBreakpoint() throws Exception {
String typeName = "TriggerPoint_01";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TypeNameBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TypeNameBreakpointTests.java
index bbb5c0ffb4..059dbc0d49 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TypeNameBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/TypeNameBreakpointTests.java
@@ -33,7 +33,6 @@
import org.eclipse.jdt.debug.testplugin.DebugElementKindEventDetailWaiter;
import org.eclipse.jdt.debug.testplugin.DebugEventWaiter;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.internal.debug.core.JavaDebugUtils;
import org.eclipse.jdt.internal.debug.core.breakpoints.JavaBreakpoint;
import org.eclipse.jdt.internal.debug.core.breakpoints.JavaClassPrepareBreakpoint;
@@ -63,7 +62,6 @@ public String getMarkerTypeName(IJavaBreakpoint breakpoint, boolean qualified) t
/**
* Constructor
- * @param name
*/
public TypeNameBreakpointTests(String name) {
super(name);
@@ -85,8 +83,6 @@ protected IJavaThread launchToBreakpoint(ILaunchConfiguration config, boolean re
/**
* Tests the {@link JavaDebugUtils#typeNamesEqual(String, String)} method
- *
- * @throws Exception
*/
public void testTypeNamesEqual() throws Exception {
assertTrue("The type names should be equal when both null", JavaDebugUtils.typeNamesEqual(null, null));
@@ -106,9 +102,6 @@ IResource getTestResource() throws Exception {
/**
* Util to get a line breakpoint with a null type name
- *
- * @return
- * @throws Exception
*/
JavaLineBreakpoint getNullTypeLineBreakpoint() throws Exception {
JavaLineBreakpoint bp = (JavaLineBreakpoint) JDIDebugModel.createLineBreakpoint(getTestResource(), null, 16, -1, -1, 0, true, null);
@@ -118,9 +111,6 @@ JavaLineBreakpoint getNullTypeLineBreakpoint() throws Exception {
/**
* Util to get an exception breakpoint with a null type
- *
- * @return
- * @throws Exception
*/
JavaExceptionBreakpoint getNullTypeExBreakpoint() throws Exception {
JavaExceptionBreakpoint bp = (JavaExceptionBreakpoint) JDIDebugModel.createExceptionBreakpoint(getTestResource(), null, true, false, true, true, null);
@@ -130,9 +120,6 @@ JavaExceptionBreakpoint getNullTypeExBreakpoint() throws Exception {
/**
* Util to get a method entry breakpoint with a null type
- *
- * @return
- * @throws Exception
*/
JavaMethodEntryBreakpoint getNullTypeMethodEntryBreakpoint() throws Exception {
JavaMethodEntryBreakpoint bp = (JavaMethodEntryBreakpoint) JDIDebugModel.createMethodEntryBreakpoint(getTestResource(), null, null, null, 15, -1, -1, 0, true, null);
@@ -142,9 +129,6 @@ JavaMethodEntryBreakpoint getNullTypeMethodEntryBreakpoint() throws Exception {
/**
* Util to get a stratum line breakpoint with no type
- *
- * @return
- * @throws Exception
*/
JavaStratumLineBreakpoint getNullTypeStratumLineBreakpoint() throws Exception {
JavaStratumLineBreakpoint bp = (JavaStratumLineBreakpoint) JDIDebugModel.createStratumBreakpoint(getTestResource(), null, null, null, null, 15, -1, -1, 0, true, null);
@@ -154,9 +138,6 @@ JavaStratumLineBreakpoint getNullTypeStratumLineBreakpoint() throws Exception {
/**
* Util to get a class prepare breakpoint with a null type
- *
- * @return
- * @throws Exception
*/
JavaClassPrepareBreakpoint getNullTypeClassPrepareBreakpoint() throws Exception {
JavaClassPrepareBreakpoint bp = (JavaClassPrepareBreakpoint) JDIDebugModel.createClassPrepareBreakpoint(getTestResource(), null, 1, -1, -1, true, null);
@@ -166,9 +147,6 @@ JavaClassPrepareBreakpoint getNullTypeClassPrepareBreakpoint() throws Exception
/**
* Util to get a watchpoint with a null type
- *
- * @return
- * @throws Exception
*/
JavaWatchpoint getNullTypeWatchpoint() throws Exception {
JavaWatchpoint bp = (JavaWatchpoint) JDIDebugModel.createWatchpoint(getTestResource(), null, null, 15, -1, -1, 0, true, null);
@@ -180,9 +158,6 @@ JavaWatchpoint getNullTypeWatchpoint() throws Exception {
/**
* Util to get a method breakpoint with a null type
- *
- * @return
- * @throws Exception
*/
JavaMethodBreakpoint getNullTypeMethodBreakpoint() throws Exception {
JavaMethodBreakpoint bp = (JavaMethodBreakpoint) JDIDebugModel.createMethodBreakpoint(getTestResource(), null, null, null, true, true, false, 15, -1, -1, 0, true, null);
@@ -193,8 +168,6 @@ JavaMethodBreakpoint getNullTypeMethodBreakpoint() throws Exception {
/**
* Tests {@link JDIDebugModel#createLineBreakpoint(org.eclipse.core.resources.IResource, String, int, int, int, int, boolean, java.util.Map)} with
* a null type name
- *
- * @throws Exception
*/
public void testCreateLineBPNullTypeName() throws Exception {
try {
@@ -210,8 +183,6 @@ public void testCreateLineBPNullTypeName() throws Exception {
* Tests the
* {@link JDIDebugModel#createMethodBreakpoint(IResource, String, String, String, boolean, boolean, boolean, int, int, int, int, boolean, java.util.Map)}
* method with null type infos
- *
- * @throws Exception
*/
public void testCreateMethodBPNullTypeName() throws Exception {
try {
@@ -226,8 +197,6 @@ public void testCreateMethodBPNullTypeName() throws Exception {
/**
* Tests the {@link JDIDebugModel#createExceptionBreakpoint(IResource, String, boolean, boolean, boolean, boolean, java.util.Map)} method with
* null type infos
- *
- * @throws Exception
*/
public void testCreateExceptionBPNullTypeName() throws Exception {
try {
@@ -242,8 +211,6 @@ public void testCreateExceptionBPNullTypeName() throws Exception {
/**
* Tests the {@link JDIDebugModel#createClassPrepareBreakpoint(IResource, String, int, int, int, boolean, java.util.Map)} method with null type
* infos
- *
- * @throws Exception
*/
public void testCreateClassPrepareBPNullTypeName() throws Exception {
try {
@@ -258,8 +225,6 @@ public void testCreateClassPrepareBPNullTypeName() throws Exception {
/**
* Tests the {@link JDIDebugModel#createWatchpoint(IResource, String, String, int, int, int, int, boolean, java.util.Map)} method with null type
* infos
- *
- * @throws Exception
*/
public void testCreateWatchpointBPNullTypeName() throws Exception {
try {
@@ -274,8 +239,6 @@ public void testCreateWatchpointBPNullTypeName() throws Exception {
/**
* Tests the {@link JDIDebugModel#createStratumBreakpoint(IResource, String, String, String, String, int, int, int, int, boolean, java.util.Map)}
* method with null type infos
- *
- * @throws Exception
*/
public void testCreateStratumBPNullTypeName() throws Exception {
try {
@@ -290,8 +253,6 @@ public void testCreateStratumBPNullTypeName() throws Exception {
/**
* Tests the {@link JDIDebugModel#createMethodEntryBreakpoint(IResource, String, String, String, int, int, int, int, boolean, java.util.Map)}
* method with null type infos
- *
- * @throws Excpetion
*/
public void testCreateMethodEntryBPNullTypeName() throws Exception {
try {
@@ -305,8 +266,6 @@ public void testCreateMethodEntryBPNullTypeName() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getMarkerTypeName}
- *
- * @throws Exception
*/
public void testGetPresentationNullTypeName() throws Exception {
try {
@@ -321,8 +280,6 @@ public void testGetPresentationNullTypeName() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getExceptionBreakpointText} with a null type name
- *
- * @throws Exception
*/
public void testGetPresentationTypeNameNull2() throws Exception {
try {
@@ -337,8 +294,6 @@ public void testGetPresentationTypeNameNull2() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getLineBreakpointText} with a null type name
- *
- * @throws Exception
*/
public void testGetPresentationTypeNameNull3() throws Exception {
try {
@@ -353,8 +308,6 @@ public void testGetPresentationTypeNameNull3() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getClassPrepareBreakpointText} with a null type name
- *
- * @throws Exception
*/
public void testGetPresentationTypeNameNull4() throws Exception {
try {
@@ -369,8 +322,6 @@ public void testGetPresentationTypeNameNull4() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getWatchpointText} with a null type name
- *
- * @throws Exception
*/
public void testGetPresentationTypeNameNull5() throws Exception {
try {
@@ -385,8 +336,6 @@ public void testGetPresentationTypeNameNull5() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getMethodBreakpointText} with a null type name
- *
- * @throws Exception
*/
public void testGetPresentationTypeNameNull6() throws Exception {
try {
@@ -401,8 +350,6 @@ public void testGetPresentationTypeNameNull6() throws Exception {
/**
* Tests the {@link JDIModelPresentation#getStratumLineBreakpointText} with a null type name
- *
- * @throws Exception
*/
public void testGetPresentationTypeNameNull7() throws Exception {
try {
@@ -417,8 +364,6 @@ public void testGetPresentationTypeNameNull7() throws Exception {
/**
* Tests the {@link JDIDebugModel#lineBreakpointExists(String, int)} method
- *
- * @throws Exception
*/
public void testJDIDebugModelTypeName2() throws Exception {
try {
@@ -432,8 +377,6 @@ public void testJDIDebugModelTypeName2() throws Exception {
/**
* Tests the {@link JDIDebugModel#lineBreakpointExists(String, int)} method with a null type name
- *
- * @throws Exception
*/
public void testJDIModelTypeNameNull1() throws Exception {
try {
@@ -447,8 +390,6 @@ public void testJDIModelTypeNameNull1() throws Exception {
/**
* Tests that launching with a null typed breakpoint does not suspend and does not cause a failure while trying to create requests
- *
- * @throws Exception
*/
public void testLaunchNullTypeLineBreakpoint() throws Exception {
getNullTypeLineBreakpoint();
@@ -466,8 +407,6 @@ public void testLaunchNullTypeLineBreakpoint() throws Exception {
/**
* Tests launching with an exception breakpoint with a null type name
- *
- * @throws Exception
*/
public void testLaunchNullTypeExceptionBreakpoint() throws Exception {
getNullTypeExBreakpoint();
@@ -485,8 +424,6 @@ public void testLaunchNullTypeExceptionBreakpoint() throws Exception {
/**
* Tests launching with a watchpoint with a null type
- *
- * @throws Exception
*/
public void testLaunchNullTypeWatchpoint() throws Exception {
getNullTypeWatchpoint();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/WatchpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/WatchpointTests.java
index f26cb21636..661870b522 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/WatchpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/WatchpointTests.java
@@ -23,7 +23,6 @@
import org.eclipse.jdt.debug.core.IJavaThread;
import org.eclipse.jdt.debug.core.IJavaWatchpoint;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
/**
* Tests watchpoint, both modification and access watchpoints
@@ -32,7 +31,6 @@ public class WatchpointTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public WatchpointTests(String name) {
super(name);
@@ -40,7 +38,6 @@ public WatchpointTests(String name) {
/**
* Tests both access and modification breakpoints suspend
- * @throws Exception
*/
public void testAccessAndModification() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -87,7 +84,6 @@ public void testAccessAndModification() throws Exception {
/**
* Tests that a modification breakpoint suspends correctly
- * @throws Exception
*/
public void testModification() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -118,7 +114,6 @@ public void testModification() throws Exception {
/**
* Tests that a disabled modification watchpoint is NOT hit
- * @throws Exception
*/
public void testDisabledModification() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -137,7 +132,6 @@ public void testDisabledModification() throws Exception {
/**
* Tests that an access watchpoint is hit
- * @throws Exception
*/
public void testAccess() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -181,7 +175,6 @@ public void testAccess() throws Exception {
/**
* Tests that a disabled access watchpoint is not hit
- * @throws Exception
*/
public void testDisabledAccess() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -215,7 +208,6 @@ public void testDisabledAccess() throws Exception {
/**
* Tests that an access watchpoint suspends when it count is hit
- * @throws Exception
*/
public void testHitCountAccess() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -270,7 +262,6 @@ public void testHitCountAccess() throws Exception {
/**
* Tests that a watchpoint set to be skipped is indeed skipped
- * @throws Exception
*/
public void testSkipWatchpoint() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.Watchpoint";
@@ -303,8 +294,6 @@ public void testSkipWatchpoint() throws Exception {
/**
* Tests that a watchpoint set to be skipped is indeed skipped
- *
- * @throws Exception
*/
public void testFinalWatchpoint() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.BreakpointsLocationBug344984";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/connectors/MultipleConnectionsTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/connectors/MultipleConnectionsTest.java
index 7ff7e27651..31588efd9e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/connectors/MultipleConnectionsTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/connectors/MultipleConnectionsTest.java
@@ -66,8 +66,6 @@ public void testDefaultSettings() throws CoreException {
/**
* Ensure out-of-the-box settings mimics previous behaviour of accepting a
* single connection
- *
- * @throws IOException
*/
@Test
public void testDefaultBehaviour() throws CoreException, InterruptedException {
@@ -83,8 +81,6 @@ public void testDefaultBehaviour() throws CoreException, InterruptedException {
/**
* Ensure connector accepts a single connection
- *
- * @throws InterruptedException
*/
@Test
public void testSingleConnectionBehaviour() throws CoreException, InterruptedException {
@@ -102,8 +98,6 @@ public void testSingleConnectionBehaviour() throws CoreException, InterruptedExc
/**
* Ensure out-of-the-box settings mimics previous behaviour of accepting a
* single connection
- *
- * @throws InterruptedException
*/
@Test
public void testTwoConnectionsBehaviour() throws CoreException, InterruptedException {
@@ -121,8 +115,6 @@ public void testTwoConnectionsBehaviour() throws CoreException, InterruptedExcep
/**
* Ensure out-of-the-box settings mimics previous behaviour of accepting a
* single connection
- *
- * @throws InterruptedException
*/
@Test
public void testUnlimitedConnectionsBehaviour() throws CoreException, InterruptedException {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/AlternateStratumTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/AlternateStratumTests.java
index 6c97bd339d..12c3e3a499 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/AlternateStratumTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/AlternateStratumTests.java
@@ -42,8 +42,6 @@ public AlternateStratumTests(String name) {
/**
* Test available strata on a type with alternate strata
- *
- * @throws Exception
*/
public void testAvailableStrata() throws Exception {
String typeName = "HelloWorld";
@@ -67,8 +65,6 @@ public void testAvailableStrata() throws Exception {
/**
* Test default stratum on a type with alternate strata.
- *
- * @throws Exception
*/
public void testDefaultStratum() throws Exception {
String typeName = "HelloWorld";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArgumentTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArgumentTests.java
index afc23bf7c0..392e4ed128 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArgumentTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArgumentTests.java
@@ -150,7 +150,6 @@ protected ILaunchConfigurationWorkingCopy newConfiguration(IContainer container,
/**
* Test a single VM argument.
* Program output should be: foo
- * @throws CoreException
*/
public void testVMArgSingle() throws CoreException {
testWithVMArg("-Dfoo=foo", "foo");
@@ -158,7 +157,6 @@ public void testVMArgSingle() throws CoreException {
/**
* Test a VM argument with quotes in a valid location.
* Program output should be: foo
- * @throws CoreException
*/
public void testVMArgSimpleQuotes() throws CoreException {
testWithVMArg("-Dfoo=\"foo\"", "foo");
@@ -167,7 +165,6 @@ public void testVMArgSimpleQuotes() throws CoreException {
* Test a VM argument with the standard style quoting for arguments with
* spaces.
* Program output should be: foo bar
- * @throws CoreException
*/
public void testVMArgStandardQuotes() throws CoreException {
testWithVMArg("-Dfoo=\"foo bar\"", "foo bar");
@@ -175,7 +172,6 @@ public void testVMArgStandardQuotes() throws CoreException {
/**
* Test a VM argument with quotes in a standard location.
* Program output should be: "foo"
- * @throws CoreException
*/
public void testVMArgStandardEmbeddedQuotes() throws CoreException {
testWithVMArg("-Dfoo=\"\\\"foo\\\"\"", "\"foo\"");
@@ -184,7 +180,6 @@ public void testVMArgStandardEmbeddedQuotes() throws CoreException {
* Test a VM argument with the quoting style we recommended as a workaround
* to a bug (now fixed) that we suggested in the past.
* Program output should be: foo bar
- * @throws CoreException
*/
public void testVMArgWorkaroundQuotes() throws CoreException {
testWithVMArg("\"-Dfoo=foo bar\"", "foo bar");
@@ -193,7 +188,6 @@ public void testVMArgWorkaroundQuotes() throws CoreException {
* Test a VM argument with quotes placed in a creative (non-standard, but
* valid) location
* Program output should be: foo bar
- * @throws CoreException
*/
public void testVMArgCreativeQuotes() throws CoreException {
testWithVMArg("-Dfoo=fo\"o b\"ar", "foo bar");
@@ -201,7 +195,6 @@ public void testVMArgCreativeQuotes() throws CoreException {
/**
* Test a VM argument with embedded quotes.
* Program output should be: "foo bar"
- * @throws CoreException
*/
public void testVMArgEmbeddedQuotes() throws CoreException {
testWithVMArg("-Dfoo=\"\\\"foo bar\\\"\"", "\"foo bar\"");
@@ -210,7 +203,6 @@ public void testVMArgEmbeddedQuotes() throws CoreException {
* Test a VM argument with quotes placed in a creative (non-standard, but
* valid) location
* Program output should be: fo"o b"ar
- * @throws CoreException
*/
public void testVMArgEmbeddedCreativeQuotes() throws CoreException {
testWithVMArg("-Dfoo=fo\"\\\"o b\\\"\"ar", "fo\"o b\"ar");
@@ -222,7 +214,6 @@ public void testVMArgEmbeddedCreativeQuotes() throws CoreException {
/**
* Test a single program argument.
* Program output should be: foo
- * @throws CoreException
*/
public void testProgramArgSingle() throws CoreException {
testWithProgramArg("foo", "foo");
@@ -230,7 +221,6 @@ public void testProgramArgSingle() throws CoreException {
/**
* Test multiple program arguments.
* Program output should be: foo\nbar
- * @throws CoreException
*/
public void testProgramArgMultiple() throws CoreException {
testWithProgramArg("foo bar", "foobar");
@@ -238,7 +228,6 @@ public void testProgramArgMultiple() throws CoreException {
/**
* Test a program argument with quotes in a valid location.
* Program output should be: foo
- * @throws CoreException
*/
public void testProgramArgSimpleQuotes() throws CoreException {
testWithProgramArg("\"foo\"", "foo");
@@ -246,7 +235,6 @@ public void testProgramArgSimpleQuotes() throws CoreException {
/**
* Test a program argument with quotes in a standard location.
* Program output should be: foo bar
- * @throws CoreException
*/
public void testProgramArgStandardQuotes() throws CoreException {
testWithProgramArg("\"foo bar\"", "foo bar");
@@ -255,7 +243,6 @@ public void testProgramArgStandardQuotes() throws CoreException {
* Test a program argument with quotes placed in a creative (non-standard,
* but valid) location.
* Program output should be: foo bar
- * @throws CoreException
*/
public void testProgramArgCreativeQuotes() throws CoreException {
testWithProgramArg("fo\"o b\"ar", "foo bar");
@@ -263,7 +250,6 @@ public void testProgramArgCreativeQuotes() throws CoreException {
/**
* Test a program argument with embedded quotes in a standard location.
* Program output should be: "blah"
- * @throws CoreException
*/
public void testProgramArgEmbeddedQuotes() throws CoreException {
testWithProgramArg("\\\"blah\\\"", "\"blah\"");
@@ -272,7 +258,6 @@ public void testProgramArgEmbeddedQuotes() throws CoreException {
* Test a program argument with embedded quotes in a creative (non-standard,
* but valie) location.
* Program output should be: f"o"o
- * @throws CoreException
*/
public void testProgramArgCreativeEmbeddedQuotes() throws CoreException {
testWithProgramArg("f\\\"o\\\"o", "f\"o\"o");
@@ -282,7 +267,6 @@ public void testProgramArgCreativeEmbeddedQuotes() throws CoreException {
* Test a program argument with one empty string
*
* Program output should be: 1
- * @throws CoreException
*/
public void testProgramArgEmptyString() throws CoreException {
testProgramArgCount("\"\"", "1");
@@ -294,7 +278,6 @@ public void testProgramArgEmptyString() throws CoreException {
* Test a program with an empty string among other args.
*
* Program output should be: 4
- * @throws CoreException
*/
public void testProgramArgEmptyStringWithOthers() throws CoreException {
testProgramArgCount("word1 \"\" \"part1 part2\" word2", "4");
@@ -305,7 +288,6 @@ public void testProgramArgEmptyStringWithOthers() throws CoreException {
* empty string to match Java console behavior.
*
* Program output should be: 1
- * @throws CoreException
*/
public void testProgramArgOneQuote() throws CoreException {
testProgramArgCount("\"", "1");
@@ -323,9 +305,6 @@ private void testWithVMArg(String argString, String outputValue) throws CoreExce
/**
* Runs the ArgumentPrinter with the given program arguments
- * @param argString
- * @param outputValue
- * @throws CoreException
*/
private void testWithProgramArg(String argString, String outputValue) throws CoreException {
testOutput("ArgumentPrinter", null, argString, outputValue);
@@ -333,9 +312,6 @@ private void testWithProgramArg(String argString, String outputValue) throws Cor
/**
* Runs the ArgumentCounter with the given program arguments
- * @param argString
- * @param outputValue
- * @throws CoreException
*/
private void testProgramArgCount(String argString, String outputValue) throws CoreException {
testOutput("ArgumentCounter", null, argString, outputValue);
@@ -437,7 +413,6 @@ private List readArgfile(String commandLine) {
/**
* Tests the default VM args
- * @throws CoreException
*/
/*public void testDefaultVMArgs() throws CoreException {
IVMInstall install = JavaRuntime.getVMInstall(get14Project());
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArrayTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArrayTests.java
index d2012f37f5..81e1b7ee74 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArrayTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ArrayTests.java
@@ -183,7 +183,6 @@ public void testCreateArray() throws Exception {
/**
* Sets a zero-length array as the new values
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetZeroLengthArray() throws Exception {
@@ -217,7 +216,6 @@ public void testSetZeroLengthArray() throws Exception {
/**
* Tries to set a new array with a starting index of -1
*
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadLowerIndexArray() throws Exception {
@@ -256,7 +254,6 @@ public void testSetBadLowerIndexArray() throws Exception {
/**
* Tries to set an array with an index greater than the total length of the source array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadUpperIndexArray() throws Exception {
@@ -296,7 +293,6 @@ public void testSetBadUpperIndexArray() throws Exception {
/**
* Tries to set an array with an index greater than the total length of the soure array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetExactUpperIndexArray() throws Exception {
@@ -336,7 +332,6 @@ public void testSetExactUpperIndexArray() throws Exception {
/**
* Tries to set an array with a source index greater than the total length of the new values array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadLowerSrcIndexArray() throws Exception {
@@ -376,7 +371,6 @@ public void testSetBadLowerSrcIndexArray() throws Exception {
/**
* Tries to set an array with a source index greater than the total length of the new values array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadUpperSrcIndexArray() throws Exception {
@@ -416,7 +410,6 @@ public void testSetBadUpperSrcIndexArray() throws Exception {
/**
* Tries to set an array with a source index greater than the total length of the new values array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetExactSrcIndexArray() throws Exception {
@@ -456,7 +449,6 @@ public void testSetExactSrcIndexArray() throws Exception {
/**
* Tries to set an array with a length less than -1
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadLowerLengthArray() throws Exception {
@@ -496,7 +488,6 @@ public void testSetBadLowerLengthArray() throws Exception {
/**
* Tries to set an array with a length equal to -1
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetMinus1LengthArray() throws Exception {
@@ -534,7 +525,6 @@ public void testSetMinus1LengthArray() throws Exception {
/**
* Tries to set an array where the given length and index combined exceed the length of the array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadLengthPlusIndexArray() throws Exception {
@@ -574,7 +564,6 @@ public void testSetBadLengthPlusIndexArray() throws Exception {
/**
* Tries to set an array where the given length and source index combined exceed the length of the array
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetBadLengthPlusSrcIndexArray() throws Exception {
@@ -613,7 +602,6 @@ public void testSetBadLengthPlusSrcIndexArray() throws Exception {
/**
* Tries to set an array where the source array is longer than the array to set the values into
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359450
*/
public void testSetLongerSrcArray() throws Exception {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathContainerTests.java
index e32a646976..cd5a61109c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathContainerTests.java
@@ -76,25 +76,18 @@ public IPath getPath() {
return new Path(JavaRuntime.JRE_CONTAINER);
}
- /**
- * @param cpe
- */
public void setEntries(IClasspathEntry[] cpe) {
entries = cpe;
}
}
- /**
- * @param name
- */
public ClasspathContainerTests(String name) {
super(name);
}
/**
* Tests that the container will accept an update
- * @throws CoreException
*/
public void testCanUpdate() throws CoreException {
// Create a new VM install that mirrors the current install
@@ -151,8 +144,6 @@ public void testCanUpdate() throws CoreException {
/**
* Tests library comparison case sensitivity.
- *
- * @throws CoreException
*/
public void testLibraryCaseSensitivity() {
IVMInstall def = JavaRuntime.getDefaultVMInstall();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathProviderTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathProviderTests.java
index 09edc3b1a0..7916df0627 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathProviderTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathProviderTests.java
@@ -453,8 +453,6 @@ public void testStandardClassesProjectNonDefaultOutputLocationsResolution() thro
/**
* Tests that default classpath computation works for a project with mulitple
* output locations.
- *
- * @throws Exception
*/
public void testMultiOutputDefaultClasspath() throws Exception {
IJavaProject project = getMultiOutputProject();
@@ -478,8 +476,6 @@ public void testMultiOutputDefaultClasspath() throws Exception {
/**
* Tests that default classpath computation works for a project with a default
* output location.
- *
- * @throws Exception
*/
public void testSingleOutputDefaultClasspath() throws Exception {
IJavaProject project = get14Project();
@@ -499,8 +495,6 @@ public void testSingleOutputDefaultClasspath() throws Exception {
/**
* Tests that a buildpath with a relative (../..) classpath entry will resolve properly.
- *
- * @throws Exception
*/
public void testRelativeClasspathEntry() throws Exception {
// create a project with a relative classpath entry
@@ -533,8 +527,6 @@ public void testRelativeClasspathEntry() throws Exception {
/**
* Tests that a variable with a relative (../..) path will resolve properly.
- *
- * @throws Exception
*/
public void testVariableWithRelativePath() throws Exception {
// create a project with a relative classpath entry
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathVariableTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathVariableTests.java
index 65fcff34fb..90635a1c0f 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathVariableTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ClasspathVariableTests.java
@@ -41,7 +41,6 @@ public ClasspathVariableTests(String name) {
/**
* Tests that we do not fail on a null variable
- * @throws CoreException
*/
public void testNullVariableResolution() throws CoreException {
String varName = "NULL_VARIABLE";
@@ -54,7 +53,6 @@ public void testNullVariableResolution() throws CoreException {
/**
* test JRE resolution
- * @throws CoreException
*/
public void testJRELibResolution() throws CoreException {
String varName = JavaRuntime.JRELIB_VARIABLE;
@@ -70,7 +68,6 @@ public void testJRELibResolution() throws CoreException {
/**
* Test that a variable set to the location of an archive via variable
* extension resolves properly, with a null source attachment.
- * @throws Exception
*/
public void testVariableExtensionWithNullSourceAttachment() throws Exception {
IResource archive = get14Project().getProject().getFolder("src").getFile("A.jar");
@@ -91,7 +88,6 @@ public void testVariableExtensionWithNullSourceAttachment() throws Exception {
* Test that a variable set to the location of an archive via variable
* extension resolves properly, with a source attachment rooted with a null
* variable with an extension.
- * @throws Exception
*/
public void testVariableExtensionWithNullSourceAttachmentWithExtension() throws Exception {
IResource archive = get14Project().getProject().getFolder("src").getFile("A.jar");
@@ -110,8 +106,6 @@ public void testVariableExtensionWithNullSourceAttachmentWithExtension() throws
/**
* Test a class path entry with variable extensions for archive and source attachment.
- *
- * @throws Exception
*/
public void testVariableArchiveAndSourceAttachmentWithExtension() throws Exception {
IResource archive = get14Project().getProject().getFolder("src").getFile("A.jar");
@@ -130,8 +124,6 @@ public void testVariableArchiveAndSourceAttachmentWithExtension() throws Excepti
/**
* Test a class path entry with variable extensions for archive and source attachment.
- *
- * @throws Exception
*/
public void testProjectResolutionWithVariableArchiveAndSourceAttachmentWithExtension() throws Exception {
IJavaProject project = JavaProjectHelper.createJavaProject("VariableSource");
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleInputTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleInputTests.java
index 37377bc2e5..de9e24d89c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleInputTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleInputTests.java
@@ -158,11 +158,7 @@ private void verifyOutput(String[] expected, String[] actual) {
* of lines to be written to the console. Returns the lines written to
* the console.
*
- * @param console
- * @param text
- * @param linesExpected
* @return lines written to the console without line delimiters
- * @throws Exception
*/
private String[] appendAndGet(IConsole console, final String text, int linesExpected) throws Exception {
fLinesRead.clear();
@@ -197,10 +193,6 @@ public void run() {
/**
* Appends the given text to the given console. Text should not have new lines.
- *
- * @param console
- * @param text
- * @throws Exception
*/
private void append(IConsole console, final String text) throws Exception {
final IDocument document = console.getDocument();
@@ -219,9 +211,6 @@ public void run() {
/**
* Deletes all text in the given console.
- *
- * @param console
- * @throws Exception
*/
private void deleteAll(IConsole console) throws Exception {
final IDocument document = console.getDocument();
@@ -305,8 +294,6 @@ public void consoleClosed() {
/**
* Tests the scenario reported in bug 241394 - 'a', backspace, 'b', backspace, 'c', Enter.
* Result should be 'c'.
- *
- * @throws Exception
*/
public void testDeleteAllEnteredText() throws Exception {
ConsoleLineTracker.setDelegate(this);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleTests.java
index 61ab1f94b9..aafc3b373b 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ConsoleTests.java
@@ -75,8 +75,6 @@ protected void dispose() {
/**
* Test that when a process is removed from a launch, the associated
* console is closed.
- *
- * @throws Exception
*/
public void testRemoveProcess() throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EEDefinitionTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EEDefinitionTests.java
index 6a3a83dff1..5af953b9da 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EEDefinitionTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EEDefinitionTests.java
@@ -172,7 +172,6 @@ public void testJavadocLocation() throws CoreException {
/**
* Tests asking for the index from the EE file
*
- * @throws Exception
* @since 3.9.0
*/
public void testIndexLocation() throws Exception {
@@ -266,8 +265,6 @@ protected IVMInstallType getVMInstallType() {
/**
* Tests raw EE properties map.
- *
- * @throws CoreException
*/
public void testParseProperties() throws CoreException {
File file = getEEFile();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EventDispatcherTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EventDispatcherTest.java
index b883680053..a04f3ce771 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EventDispatcherTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/EventDispatcherTest.java
@@ -106,8 +106,6 @@ public void test285130_bulkThreadCreation() throws Exception {
/**
* Tests that a conditional breakpoint with an expression that will hit a breakpoint will complete the conditional expression evaluation (bug
* 269231) and that we dispatch events for conditional breakpoints in dedicated jobs.
- *
- * @throws Exception
*/
public void testConditionalExpressionEventDispatching() throws Exception {
String typeName = "BreakpointListenerTest";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ExecutionEnvironmentTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ExecutionEnvironmentTests.java
index 5b61fda9a0..e70bb8af51 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ExecutionEnvironmentTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ExecutionEnvironmentTests.java
@@ -202,8 +202,6 @@ public void testAccessRulesNotPresentOnJREProject() throws Exception {
/**
* Tests that default access rules appear for system packages when a profile file is specified.
- *
- * @throws Exception
*/
public void testDefaultSystemPackageAccessRules() throws Exception {
IExecutionEnvironmentsManager manager = JavaRuntime.getExecutionEnvironmentsManager();
@@ -226,8 +224,6 @@ public void testDefaultSystemPackageAccessRules() throws Exception {
/**
* Tests that a location can be resolved for ${ee_home:J2SE-1.4}
- *
- * @throws Exception
*/
public void testEEHomeVariable() throws Exception {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
@@ -240,8 +236,6 @@ public void testEEHomeVariable() throws Exception {
/**
* Tests that a location cannot be resolved for ${ee_home}
- *
- * @throws Exception
*/
public void testEEHomeVariableMissingArgument() throws Exception {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
@@ -255,8 +249,6 @@ public void testEEHomeVariableMissingArgument() throws Exception {
/**
* Tests that a location cannot be resolved for ${ee_home:bogus}
- *
- * @throws Exception
*/
public void testEEHomeVariableInvalidArgument() throws Exception {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java
index ba477cf53f..2e556b1eb1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/HcrTests.java
@@ -31,7 +31,6 @@
import org.eclipse.jdt.debug.testplugin.DebugElementEventWaiter;
import org.eclipse.jdt.debug.testplugin.DebugEventWaiter;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
/**
* Tests hot code replace
@@ -82,8 +81,6 @@ public synchronized boolean wasNotified() {
/**
* Waits for notification and returns whether notified.
- *
- * @return
*/
public synchronized boolean waitNotification() {
if (!notified) {
@@ -198,8 +195,6 @@ public void testSimpleHcr() throws Exception {
/**
* Tests a general (plug-in) listener.
- *
- * @throws Exception
*/
public void testGeneralHcrListener() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.HcrClass";
@@ -249,8 +244,6 @@ public void testGeneralHcrListener() throws Exception {
/**
* Tests that a target specific listener overrides a generic listener.
- *
- * @throws Exception
*/
public void testSpecificHcrListener() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.HcrClass";
@@ -304,7 +297,6 @@ public void testSpecificHcrListener() throws Exception {
/**
* Tests HCR in a local type with the same name as the enclosing
* method
- * @throws Exception
* @since 3.8.100
*/
public void testHCRLocalType() throws Exception {
@@ -464,7 +456,6 @@ public void testHCRLocalType3() throws Exception {
* Tests HCR in an anonymous type with the same name as the method
* where the anonymous type was defined
*
- * @throws Exception
* @since 3.8.100
*/
public void testHCRAnonymousType() throws Exception {
@@ -517,7 +508,6 @@ public void testHCRAnonymousType() throws Exception {
/**
* Tests HCR in an anonymous type defined in a method
- * @throws Exception
* @since 3.8.100
*/
public void testHCRAnonymousType2() throws Exception {
@@ -569,7 +559,6 @@ public void testHCRAnonymousType2() throws Exception {
/**
* Tests HCR in an anonymous type defined in a constructor
- * @throws Exception
* @since 3.8.100
*/
public void testHCRAnonymousType3() throws Exception {
@@ -621,7 +610,6 @@ public void testHCRAnonymousType3() throws Exception {
/**
* Tests HCR on a method called from a constructor
- * @throws Exception
* @since 3.8.100
*/
public void testHCRConstructor() throws Exception {
@@ -673,7 +661,6 @@ public void testHCRConstructor() throws Exception {
/**
* Tests HCR within a constructor
- * @throws Exception
* @since 3.8.100
*/
public void testHCRConstructor2() throws Exception {
@@ -727,7 +714,6 @@ public void testHCRConstructor2() throws Exception {
/**
* Tests HCR on an inner type method with the same name as the enclosing type
* method it was called from
- * @throws Exception
* @since 3.8.100
*/
public void testHCRInnerType() throws Exception {
@@ -782,7 +768,6 @@ public void testHCRInnerType() throws Exception {
/**
* Tests HCR on an inner type method
- * @throws Exception
* @since 3.8.100
*/
public void testHCRInnerType2() throws Exception {
@@ -837,7 +822,6 @@ public void testHCRInnerType2() throws Exception {
/**
* Tests HCR on a constructor in an inner type
- * @throws Exception
* @since 3.8.100
*/
public void testHCRInnerType3() throws Exception {
@@ -894,7 +878,6 @@ public void testHCRInnerType3() throws Exception {
/**
* Tests HCR on an enclosing method called from an inner type
* method with the same name
- * @throws Exception
* @since 3.8.100
*/
public void testHCRInnerType4() throws Exception {
@@ -950,7 +933,6 @@ public void testHCRInnerType4() throws Exception {
/**
* Tests HCR on an enclosing method called from an inner type
* method
- * @throws Exception
* @since 3.8.100
*/
public void testHCRInnerType5() throws Exception {
@@ -1005,7 +987,6 @@ public void testHCRInnerType5() throws Exception {
/**
* Tests HCR on a local type defined in an inner type
- * @throws Exception
* @since 3.8.100
*/
public void testHCRLocalInner() throws Exception {
@@ -1060,7 +1041,6 @@ public void testHCRLocalInner() throws Exception {
/**
* Tests HCR on a local type defined in an anonymous type
- * @throws Exception
* @since 3.8.100
*/
public void testHCRLocalAnonymous() throws Exception {
@@ -1115,7 +1095,6 @@ public void testHCRLocalAnonymous() throws Exception {
/**
* Tests HCR on an inner type defined in a local type
- * @throws Exception
* @since 3.8.100
*/
public void testHCRInnerLocal() throws Exception {
@@ -1170,7 +1149,6 @@ public void testHCRInnerLocal() throws Exception {
/**
* Tests HCR on an anonymous type defined in a local type
- * @throws Exception
* @since 3.8.100
*/
public void testHCRAnnonymousLocal() throws Exception {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstanceFilterTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstanceFilterTests.java
index 23bba5ec2b..83bac18caa 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstanceFilterTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstanceFilterTests.java
@@ -41,8 +41,6 @@ public InstanceFilterTests(String name) {
/**
* Instance filter on a line breakpoint
- *
- * @throws Exception
*/
public void testLineBreakpoint() throws Exception {
String typeName = "InstanceFilterObject";
@@ -95,8 +93,6 @@ public void testLineBreakpoint() throws Exception {
/**
* Instance filter on a method entry breakpoint
- *
- * @throws Exception
*/
public void testMethodEntryBreakpoint() throws Exception {
String typeName = "InstanceFilterObject";
@@ -154,8 +150,6 @@ public void testMethodEntryBreakpoint() throws Exception {
/**
* Instance filter on a method exit breakpoint
- *
- * @throws Exception
*/
public void testMethodExitBreakpoint() throws Exception {
String typeName = "InstanceFilterObject";
@@ -213,8 +207,6 @@ public void testMethodExitBreakpoint() throws Exception {
/**
* Instance filter on an exception breakpoint
- *
- * @throws Exception
*/
public void testExceptionBreakpoint() throws Exception {
String typeName = "InstanceFilterObject";
@@ -267,8 +259,6 @@ public void testExceptionBreakpoint() throws Exception {
/**
* Instance filter on an access watchpoint
- *
- * @throws Exception
*/
public void testAccessWatchpoint() throws Exception {
String typeName = "InstanceFilterObject";
@@ -324,8 +314,6 @@ public void testAccessWatchpoint() throws Exception {
/**
* Instance filter on an modification watchpoint
- *
- * @throws Exception
*/
public void testModificationWatchpoint() throws Exception {
String typeName = "InstanceFilterObject";
@@ -387,7 +375,6 @@ public void testModificationWatchpoint() throws Exception {
/**
* Returns whether the associated target supports instance breakpoints
*
- * @param thread
* @return boolean
*/
private boolean supportsInstanceBreakpoints(IJavaThread thread) {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstructionPointerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstructionPointerTests.java
index 6096678767..d461c4f922 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstructionPointerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/InstructionPointerTests.java
@@ -21,9 +21,6 @@
*/
public class InstructionPointerTests extends AbstractDebugTest {
- /**
- * @param name
- */
public InstructionPointerTests(String name) {
super(name);
}
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/JDWPTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/JDWPTests.java
index f0a72e4da5..8074c4fa5a 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/JDWPTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/JDWPTests.java
@@ -36,7 +36,6 @@ public class JDWPTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public JDWPTests(String name) {
super(name);
@@ -45,7 +44,6 @@ public JDWPTests(String name) {
/**
* Sends a request to the VirtualMachine Command Set (byte 1) to ask for
* the VM Capabilities (byte 12)
- * @throws Exception
*/
public void testCapabilities() throws Exception {
String typeName = "Breakpoints";
@@ -77,7 +75,6 @@ public void testCapabilities() throws Exception {
/**
* Sends a request to the VirtualMachine Command Set (byte 1) to ask
* for ClassesBySignature (byte 2)
- * @throws Exception
*/
public void testClassesBySingature() throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LineTrackerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LineTrackerTests.java
index cb56b95ca8..d2a1bd527b 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LineTrackerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LineTrackerTests.java
@@ -119,7 +119,6 @@ public void testSimpleLineCounter() throws Exception {
/**
* This program prints the final line without a new line
- * @throws Exception
*/
public void testNoPrintln() throws Exception {
ConsoleLineTracker.setDelegate(this);
@@ -150,8 +149,6 @@ public void testNoPrintln() throws Exception {
/**
* Test 10,000 lines of output.
- *
- * @throws Exception
*/
public void testFlood() throws Exception {
ConsoleLineTracker.setDelegate(this);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LiteralTests17.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LiteralTests17.java
index 8faac047d9..ce3f768791 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LiteralTests17.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LiteralTests17.java
@@ -47,9 +47,7 @@ protected IJavaProject getProjectContext() {
/**
* Perform the evaluation on the given snippet and return the value
- * @param snippet
* @return returns the evaluation value or null
- * @throws Exception
*/
IValue doEval(String snippet) throws Exception {
ILineBreakpoint bp = createLineBreakpoint(28, LITERAL_TYPE_NAME);
@@ -72,10 +70,7 @@ IValue doEval(String snippet) throws Exception {
* run two snippets on the same thread where the second snippet may or may not depend on the state change from the
* first snippet
*
- * @param snippet
- * @param snippet2
* @return the {@link IEvaluationResult}
- * @throws Exception
*/
IValue doEval(String snippet, String snippet2) throws Exception {
ILineBreakpoint bp = createLineBreakpoint(28, LITERAL_TYPE_NAME);
@@ -98,8 +93,6 @@ IValue doEval(String snippet, String snippet2) throws Exception {
/**
* Tests that an addition evaluation with an int with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreIntEval() throws Exception {
IValue value = doEval("literals.x1 + 1");
@@ -111,8 +104,6 @@ public void testUnderscoreIntEval() throws Exception {
/**
* Tests that we can assign a variable value to an int with underscores
- *
- * @throws Exception
*/
public void testUnderscoreIntVarAssignment() throws Exception {
IValue value = doEval("literals.x1 = 1_______1;", "literals.x1 + 1");
@@ -124,8 +115,6 @@ public void testUnderscoreIntVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a short with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreShortEval() throws Exception {
IValue value = doEval("literals.x9 + 1");
@@ -137,8 +126,6 @@ public void testUnderscoreShortEval() throws Exception {
/**
* Tests that we can assign a variable value to a short with underscores
- *
- * @throws Exception
*/
public void testUnderscoreShortVarAssignment() throws Exception {
IValue value = doEval("literals.x9 = 1_______1;", "literals.x9 + 1");
@@ -150,8 +137,6 @@ public void testUnderscoreShortVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a byte with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreByteEval() throws Exception {
IValue value = doEval("literals.x10 + 1");
@@ -163,8 +148,6 @@ public void testUnderscoreByteEval() throws Exception {
/**
* Tests that we can assign a variable value to a short with underscores
- *
- * @throws Exception
*/
public void testUnderscoreByteVarAssignment() throws Exception {
IValue value = doEval("literals.x10 = 1_______1;", "literals.x10 + 1");
@@ -176,8 +159,6 @@ public void testUnderscoreByteVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a long with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreLongEval() throws Exception {
IValue value = doEval("literals.x8 + 1");
@@ -189,8 +170,6 @@ public void testUnderscoreLongEval() throws Exception {
/**
* Tests that we can assign a variable value to a long with underscores
- *
- * @throws Exception
*/
public void testUnderscoreLongVarAssignment() throws Exception {
IValue value = doEval("literals.x8 = 1_______1L;", "literals.x8 + 1");
@@ -202,8 +181,6 @@ public void testUnderscoreLongVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a float with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreFloatEval() throws Exception {
IValue value = doEval("literals.x6 + 1");
@@ -215,8 +192,6 @@ public void testUnderscoreFloatEval() throws Exception {
/**
* Tests that we can assign a variable value to a float with underscores
- *
- * @throws Exception
*/
public void testUnderscoreFloatVarAssignment() throws Exception {
IValue value = doEval("literals.x6 = 6.1_4_1_5F;", "literals.x6 + 1");
@@ -228,8 +203,6 @@ public void testUnderscoreFloatVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a double with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreDoubleEval() throws Exception {
IValue value = doEval("literals.x5 + 1");
@@ -241,8 +214,6 @@ public void testUnderscoreDoubleEval() throws Exception {
/**
* Tests that we can assign a variable value to a double with underscores
- *
- * @throws Exception
*/
public void testUnderscoreDoubleVarAssignment() throws Exception {
IValue value = doEval("literals.x5 = 1_5.5_5_6D;", "literals.x5 + 1.000D");
@@ -254,8 +225,6 @@ public void testUnderscoreDoubleVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a binary literal with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreBinaryEval() throws Exception {
IValue value = doEval("literals.x4 + 1");
@@ -267,8 +236,6 @@ public void testUnderscoreBinaryEval() throws Exception {
/**
* Tests that we can assign a variable value to a binary literal with underscores
- *
- * @throws Exception
*/
public void testUnderscoreBinaryVarAssignment() throws Exception {
IValue value = doEval("literals.x4 = 0b1_0_0_0_0;", "literals.x4 + 1");
@@ -280,8 +247,6 @@ public void testUnderscoreBinaryVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with a hex with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreHexEval() throws Exception {
IValue value = doEval("literals.x2 + 1");
@@ -293,8 +258,6 @@ public void testUnderscoreHexEval() throws Exception {
/**
* Tests that we can assign a variable value to a hex with underscores
- *
- * @throws Exception
*/
public void testUnderscoreHexVarAssignment() throws Exception {
IValue value = doEval("literals.x2 = 0x1_0_0;", "literals.x2 + 1");
@@ -306,8 +269,6 @@ public void testUnderscoreHexVarAssignment() throws Exception {
/**
* Tests that an addition evaluation with an octal with underscores in it works
- *
- * @throws Exception
*/
public void testUnderscoreOctEval() throws Exception {
IValue value = doEval("literals.x3 + 1");
@@ -319,8 +280,6 @@ public void testUnderscoreOctEval() throws Exception {
/**
* Tests that we can assign a variable value to an octal with underscores
- *
- * @throws Exception
*/
public void testUnderscoreOctVarAssignment() throws Exception {
IValue value = doEval("literals.x3 = 0_100;", "literals.x3 + 1");
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LocalVariableTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LocalVariableTests.java
index 88ec7ebfbc..a8014eb627 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LocalVariableTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/LocalVariableTests.java
@@ -24,7 +24,6 @@
import org.eclipse.jdt.debug.core.IJavaThread;
import org.eclipse.jdt.debug.core.IJavaVariable;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.internal.debug.core.model.JDIArrayValue;
import org.eclipse.jdt.internal.debug.core.model.JDILocalVariable;
import org.eclipse.jdt.internal.debug.core.model.JDINullValue;
@@ -40,7 +39,6 @@ public LocalVariableTests(String name) {
/**
* Tests if the correct local variable is found when it shadows a field variable
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=384458
- * @throws Exception
*/
public void testFindConflicting1() throws Exception {
String typeName = "LocalVariableTests2";
@@ -66,7 +64,6 @@ public void testFindConflicting1() throws Exception {
/**
* Tests if the correct parameter variable is found when it shadows a field variable
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=384458
- * @throws Exception
*/
public void testFindConflicting2() throws Exception {
String typeName = "LocalVariableTests2";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java
index b5e21cf52b..7454fdaa15 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/ProcessTests.java
@@ -61,8 +61,6 @@ public void testExitValueNormal() throws Exception {
/**
* Tests that an already terminated java.lang.Process behaves properly when
* wrapped in an IProcess.
- *
- * @throws Exception
*/
public void testAlreadyTerminatedProcess() throws Exception {
if (Platform.getOS().equals(Platform.OS_LINUX)) {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/RemoteJavaApplicationTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/RemoteJavaApplicationTests.java
index a7eb0067d7..17cff978e5 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/RemoteJavaApplicationTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/RemoteJavaApplicationTests.java
@@ -49,7 +49,6 @@ public RemoteJavaApplicationTests(String name) {
/**
* Tests a Standard (Socket Attach) VM connection.
- * @throws Exception
*/
public void testAttach() throws Exception {
String typeName = "Breakpoints";
@@ -127,7 +126,6 @@ public void testAttach() throws Exception {
/**
* Tests a Standard (Socket Listen) VM connection.
- * @throws Exception
*/
public void testListen() throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StratumTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StratumTests.java
index 774c53bc96..daf616be88 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StratumTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StratumTests.java
@@ -34,8 +34,6 @@ public StratumTests(String name) {
/**
* Test available strata on a type.
- *
- * @throws Exception
*/
public void testAvailableStrata() throws Exception {
String typeName = "Breakpoints";
@@ -69,8 +67,6 @@ public void testAvailableStrata() throws Exception {
/**
* Test default stratum on a type.
- *
- * @throws Exception
*/
public void testDefaultStratum() throws Exception {
String typeName = "Breakpoints";
@@ -91,8 +87,6 @@ public void testDefaultStratum() throws Exception {
/**
* Test set / get default stratum on a java debug target.
- *
- * @throws Exception
*/
public void testSetGetDefaultStratum() throws Exception {
String typeName = "Breakpoints";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StringSubstitutionTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StringSubstitutionTests.java
index d7aa3ce60d..7996ff0cba 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StringSubstitutionTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StringSubstitutionTests.java
@@ -396,8 +396,6 @@ public void testOpenEndedBrace() throws CoreException {
/**
* Test that we receive proper add notification.
- *
- * @throws CoreException
*/
public void testAddNotificaiton() throws CoreException {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
@@ -420,8 +418,6 @@ public void testAddNotificaiton() throws CoreException {
/**
* Test that we receive proper change notification.
- *
- * @throws CoreException
*/
public void testChangeNotificaiton() throws CoreException {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
@@ -444,8 +440,6 @@ public void testChangeNotificaiton() throws CoreException {
/**
* Test that we receive proper remove notification.
- *
- * @throws CoreException
*/
public void testRemoveNotificaiton() throws CoreException {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java
index 10108e0f22..7770f8dd03 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java
@@ -63,7 +63,6 @@ public void testJavaVersion() {
/**
* Test acquiring the set of system properties
- * @throws CoreException
*/
public void testSystemProperties() throws CoreException {
IVMInstall def = JavaRuntime.getDefaultVMInstall();
@@ -78,7 +77,6 @@ public void testSystemProperties() throws CoreException {
/**
* Test acquiring the set of system properties that have been asked for - they should be cached in JDT launching
- * @throws CoreException
*/
public void testSystemPropertiesCaching() throws CoreException {
IVMInstall def = JavaRuntime.getDefaultVMInstall();
@@ -104,7 +102,6 @@ public void testSystemPropertiesCaching() throws CoreException {
* using the {@link JavaRuntime#getLibraryLocations(IVMInstall)}s API
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=399798
- * @throws Exception
*/
public void testLibraryResolver1() throws Exception {
VMInstallTestsLibraryLocationResolver.isTesting = true;
@@ -131,7 +128,6 @@ public void testLibraryResolver1() throws Exception {
* Tests the {@link ILibraryLocationResolver} asking for libs using an EE description file
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=399798
- * @throws Exception
*/
public void testLibraryResolver2() throws Exception {
VMInstallTestsLibraryLocationResolver.isTesting = true;
@@ -154,7 +150,6 @@ public void testLibraryResolver2() throws Exception {
* Tests the {@link ILibraryLocationResolver} asking for libs directly from the backing type of the {@link IVMInstall}
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=399798
- * @throws Exception
*/
public void testLibraryResolver3() throws Exception {
VMInstallTestsLibraryLocationResolver.isTesting = true;
@@ -180,7 +175,6 @@ public void testLibraryResolver3() throws Exception {
* a source path for the ext dirs does *not* get overridden by the resolver
*
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=399798
- * @throws Exception
*/
public void testLibraryResolver4() throws Exception {
VMInstallTestsLibraryLocationResolver.isTesting = true;
@@ -209,8 +203,6 @@ public void testLibraryResolver4() throws Exception {
/**
* Checks the given {@link LibraryLocation}s to ensure they reference the testing resolver paths
- *
- * @param locs
*/
void assertResolvedLibraryLocations(LibraryLocation[] locs) {
String locpath = null;
@@ -236,9 +228,7 @@ void assertResolvedLibraryLocations(LibraryLocation[] locs) {
/**
* Creates a {@link VMStandin} for the given EE file. Does not return null
- * @param filename
* @return the {@link VMStandin}
- * @throws CoreException
*/
VMStandin getEEStandin(String filename) throws CoreException {
File ee = JavaTestPlugin.getDefault().getFileInPlugin(new Path(filename));
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WatchExpressionTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WatchExpressionTests.java
index 5b9b4d7211..157b68e435 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WatchExpressionTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WatchExpressionTests.java
@@ -167,8 +167,6 @@ public void DisabledtestStepping() throws Exception {
/**
* Dumps any error messages to the console.
- *
- * @param expression
*/
private void dumpErrors(IWatchExpression expression) {
if (expression.hasErrors()) {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkingDirectoryTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkingDirectoryTests.java
index 9abae2baaa..3ddda4a2ae 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkingDirectoryTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkingDirectoryTests.java
@@ -55,7 +55,6 @@ public void testDefaultWorkingDirectory() throws Exception {
/**
* Sets the working directory attribute of the test launch config
- * @param path
*/
protected void setWorkingDirectory(IPath path) throws CoreException {
ILaunchConfiguration configuration = getLaunchConfiguration("WorkingDirectoryTest");
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkspaceSourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkspaceSourceContainerTests.java
index cbf2c28b44..d771fec649 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkspaceSourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/WorkspaceSourceContainerTests.java
@@ -42,8 +42,6 @@ protected WorkspaceSourceContainer getContainer(boolean duplicates) throws Excep
}
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testWorkspaceSourceContainerMemento() throws Exception {
WorkspaceSourceContainer container = getContainer(true);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GeneralEvalTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GeneralEvalTests.java
index d9b4d07081..4a4bef1930 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GeneralEvalTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GeneralEvalTests.java
@@ -25,16 +25,12 @@
public class GeneralEvalTests extends AbstractDebugTest {
- /**
- * @param name
- */
public GeneralEvalTests(String name) {
super(name);
}
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerType1() throws Exception {
IJavaThread thread = null;
@@ -54,7 +50,6 @@ public void testInnerType1() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerType2() throws Exception {
IJavaThread thread = null;
@@ -74,7 +69,6 @@ public void testInnerType2() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerType3() throws Exception {
IJavaThread thread = null;
@@ -94,7 +88,6 @@ public void testInnerType3() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerAnonymousType() throws Exception {
IJavaThread thread = null;
@@ -114,7 +107,6 @@ public void testInnerAnonymousType() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval1() throws Exception {
IJavaThread thread = null;
@@ -135,7 +127,6 @@ public void testMultipleInfixEval1() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval2() throws Exception {
IJavaThread thread = null;
@@ -156,7 +147,6 @@ public void testMultipleInfixEval2() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval3() throws Exception {
IJavaThread thread = null;
@@ -177,7 +167,6 @@ public void testMultipleInfixEval3() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval4() throws Exception {
IJavaThread thread = null;
@@ -198,7 +187,6 @@ public void testMultipleInfixEval4() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval5() throws Exception {
IJavaThread thread = null;
@@ -219,7 +207,6 @@ public void testMultipleInfixEval5() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval6() throws Exception {
IJavaThread thread = null;
@@ -240,7 +227,6 @@ public void testMultipleInfixEval6() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval7() throws Exception {
IJavaThread thread = null;
@@ -261,7 +247,6 @@ public void testMultipleInfixEval7() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval8() throws Exception {
IJavaThread thread = null;
@@ -282,7 +267,6 @@ public void testMultipleInfixEval8() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval9() throws Exception {
IJavaThread thread = null;
@@ -303,7 +287,6 @@ public void testMultipleInfixEval9() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval10() throws Exception {
IJavaThread thread = null;
@@ -324,7 +307,6 @@ public void testMultipleInfixEval10() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval11() throws Exception {
IJavaThread thread = null;
@@ -345,7 +327,6 @@ public void testMultipleInfixEval11() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval12() throws Exception {
IJavaThread thread = null;
@@ -366,7 +347,6 @@ public void testMultipleInfixEval12() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval13() throws Exception {
IJavaThread thread = null;
@@ -387,7 +367,6 @@ public void testMultipleInfixEval13() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval14() throws Exception {
IJavaThread thread = null;
@@ -408,7 +387,6 @@ public void testMultipleInfixEval14() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval15() throws Exception {
IJavaThread thread = null;
@@ -429,7 +407,6 @@ public void testMultipleInfixEval15() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=401270
- * @throws Exception
*/
public void testMultipleInfixEval16() throws Exception {
IJavaThread thread = null;
@@ -450,7 +427,6 @@ public void testMultipleInfixEval16() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=403028
- * @throws Exception
*/
public void testCompoundCondition() throws Exception {
IJavaThread thread = null;
@@ -471,8 +447,6 @@ public void testCompoundCondition() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=508105
- *
- * @throws Exception
*/
public void testMultiByteCharacters() throws Exception {
IJavaThread thread = null;
@@ -510,8 +484,6 @@ public void testMultiByteCharacters() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=508105
- *
- * @throws Exception
*/
public void XtestAReturn() throws Exception {
IJavaThread thread = null;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GenericsEvalTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GenericsEvalTests.java
index c0d215e879..981130a1cd 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GenericsEvalTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/GenericsEvalTests.java
@@ -25,9 +25,6 @@
*/
public class GenericsEvalTests extends AbstractDebugTest {
- /**
- * @param name
- */
public GenericsEvalTests(String name) {
super(name);
}
@@ -40,8 +37,6 @@ protected IJavaProject getProjectContext() {
/**
* Evaluates a generified snippet with a simple single
* generic statement
- *
- * @throws Exception
*/
public void testEvalGenerics1() throws Exception {
IJavaThread thread = null;
@@ -62,8 +57,6 @@ public void testEvalGenerics1() throws Exception {
/**
* Evaluates a generified snippet with a simple single
* generic statement
- *
- * @throws Exception
*/
public void testEvalGenerics2() throws Exception {
IJavaThread thread = null;
@@ -84,8 +77,6 @@ public void testEvalGenerics2() throws Exception {
/**
* Evaluates a generified snippet with a simple single
* generic statement
- *
- * @throws Exception
*/
public void testEvalGenerics3() throws Exception {
IJavaThread thread = null;
@@ -267,7 +258,6 @@ public void testEvalGeneric13() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testLineCommentEvalGenerics1() throws Exception {
IJavaThread thread = null;
@@ -287,7 +277,6 @@ public void testLineCommentEvalGenerics1() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testLineCommentEvalGenerics2() throws Exception {
IJavaThread thread = null;
@@ -307,7 +296,6 @@ public void testLineCommentEvalGenerics2() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testLineCommentEvalGenerics3() throws Exception {
IJavaThread thread = null;
@@ -327,7 +315,6 @@ public void testLineCommentEvalGenerics3() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testLineCommentEvalGenerics4() throws Exception {
IJavaThread thread = null;
@@ -347,7 +334,6 @@ public void testLineCommentEvalGenerics4() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerEnumType1() throws Exception {
IJavaThread thread = null;
@@ -367,7 +353,6 @@ public void testInnerEnumType1() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerEnumType2() throws Exception {
IJavaThread thread = null;
@@ -387,7 +372,6 @@ public void testInnerEnumType2() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerEnumType3() throws Exception {
IJavaThread thread = null;
@@ -407,7 +391,6 @@ public void testInnerEnumType3() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerEnumType4() throws Exception {
IJavaThread thread = null;
@@ -427,7 +410,6 @@ public void testInnerEnumType4() throws Exception {
/**
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329294
- * @throws Exception
*/
public void testInnerEnumType5() throws Exception {
IJavaThread thread = null;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Java8Tests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Java8Tests.java
index 1284fc32ec..f47ed16b90 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Java8Tests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Java8Tests.java
@@ -30,9 +30,6 @@
*/
public class Java8Tests extends AbstractDebugTest {
- /**
- * @param name
- */
public Java8Tests(String name) {
super(name);
}
@@ -45,8 +42,6 @@ protected IJavaProject getProjectContext() {
/**
* Evaluates a generified snippet with a simple single
* generic statement
- *
- * @throws Exception
*/
public void testEvalDefaultMethod() throws Exception {
IJavaThread thread = null;
@@ -66,8 +61,6 @@ public void testEvalDefaultMethod() throws Exception {
/**
* Evaluates a snippet in the context of interface method generic statement
- *
- * @throws Exception
*/
public void testEvalInterfaceMethod() throws Exception {
IJavaThread thread = null;
@@ -88,8 +81,6 @@ public void testEvalInterfaceMethod() throws Exception {
/**
* Evaluates a snippet in the context of interface method generic statement
- *
- * @throws Exception
*/
public void testBugEvalIntfSuperDefault() throws Exception {
IJavaThread thread = null;
@@ -111,8 +102,6 @@ public void testBugEvalIntfSuperDefault() throws Exception {
/**
* Evaluates a static method on an object generic statement
- *
- * @throws Exception
*/
public void testEvalStatictMethod() throws Exception {
IJavaThread thread = null;
@@ -133,8 +122,6 @@ public void testEvalStatictMethod() throws Exception {
/**
* Evaluates a snippet containing a lambda
- *
- * @throws Exception
*/
public void testEvalLambda() throws Exception {
IJavaThread thread = null;
@@ -155,8 +142,6 @@ public void testEvalLambda() throws Exception {
/**
* Evaluates a snippet containing a lambda referencing a variable in a loop
- *
- * @throws Exception
*/
public void testEvalLambdaInLoop() throws Exception {
IJavaThread thread = null;
@@ -177,8 +162,6 @@ public void testEvalLambdaInLoop() throws Exception {
/**
* Evaluates a snippet containing a method reference
- *
- * @throws Exception
*/
public void testEvalMethodReference() throws Exception {
IJavaThread thread = null;
@@ -199,8 +182,6 @@ public void testEvalMethodReference() throws Exception {
/**
* Evaluates a snippet containing a method reference
- *
- * @throws Exception
*/
public void testContextEvaluations() throws Exception {
IJavaThread thread = null;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_120.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_120.java
index 3e117a507c..f5e388cd94 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_120.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_120.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_120 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_120(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_145.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_145.java
index 15965fd7a1..a2db63dca8 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_145.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_145.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_145 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_145(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_155.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_155.java
index 1e25e6a23b..3193be6da7 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_155.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_155.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_155 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_155(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_179.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_179.java
index d84bab7741..780daf2f2d 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_179.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_179.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_179 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_179(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_203.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_203.java
index b5f8b97feb..a3a6497065 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_203.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_203.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_203 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_203(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_214.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_214.java
index a4a9a2cd78..8fa13e85ed 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_214.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_214.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_214 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_214(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_252.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_252.java
index 50ef02970c..8c43f31fc5 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_252.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_252.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_252 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_252(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_279.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_279.java
index e199c55f37..5a850389af 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_279.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_279.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_279 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_279(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_304.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_304.java
index a5c96f1d22..40d92d0f31 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_304.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_304.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_304 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_304(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_315.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_315.java
index 2bcfcfdc50..9af6e66cef 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_315.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_315.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_315 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_315(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_354.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_354.java
index 4284d65eb5..98ec52ca77 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_354.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_354.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_354 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_354(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_381.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_381.java
index 25b6f75b44..5879eeaff6 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_381.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_381.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_381 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_381(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_406.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_406.java
index 180ba31aa6..cc56ac0418 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_406.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_406.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_406 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_406(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_417.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_417.java
index c5d556442d..4433edb496 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_417.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_417.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_417 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_417(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_455.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_455.java
index 7ad2cc8158..8f6ca500fa 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_455.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_455.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_455 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_455(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_481.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_481.java
index 9454bb692b..f59aa82562 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_481.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_481.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_481 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_481(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_506.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_506.java
index a011dde19c..81ce8cc775 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_506.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_506.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_506 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_506(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_517.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_517.java
index d62745eae6..ed1184deb2 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_517.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_517.java
@@ -21,7 +21,6 @@
public class NestedTypeFieldValue_517 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_517(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_529.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_529.java
index cb9b4ba028..848f9aa1ac 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_529.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_529.java
@@ -21,7 +21,6 @@
public class NestedTypeFieldValue_529 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_529(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_566.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_566.java
index c7ec4500d3..8cdc094b2b 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_566.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_566.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_566 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_566(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_592.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_592.java
index a8677c9dd3..b8e825b583 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_592.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_592.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_592 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_592(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_616.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_616.java
index 43db590155..e073c44d78 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_616.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_616.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_616 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_616(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_626.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_626.java
index 6625741f3c..d3763a8795 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_626.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_626.java
@@ -21,7 +21,6 @@
public class NestedTypeFieldValue_626 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_626(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_65.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_65.java
index f58202fbf7..8de90e94db 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_65.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_65.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_65 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_65(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_664.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_664.java
index eb9687d862..f3cb896499 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_664.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_664.java
@@ -21,7 +21,6 @@
public class NestedTypeFieldValue_664 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_664(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_69.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_69.java
index 6a6c53b5bb..72a795fb87 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_69.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_69.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_69 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_69(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_690.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_690.java
index e27e749d40..df1f5967cd 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_690.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_690.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_690 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_690(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_714.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_714.java
index fc835cd30f..c0fcfb6a67 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_714.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_714.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_714 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_714(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_724.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_724.java
index fece9ac2e1..d98320b413 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_724.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_724.java
@@ -21,7 +21,6 @@
public class NestedTypeFieldValue_724 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_724(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_739.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_739.java
index 64b336ba15..62fe4a575e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_739.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_739.java
@@ -21,7 +21,6 @@
public class NestedTypeFieldValue_739 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_739(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_94.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_94.java
index b91ad08916..86e1560c4c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_94.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/NestedTypeFieldValue_94.java
@@ -20,7 +20,6 @@
public class NestedTypeFieldValue_94 extends Tests {
/**
* Constructor for NestedTypeFieldValue.
- * @param name
*/
public NestedTypeFieldValue_94(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Tests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Tests.java
index 40f2021d47..bc3788986e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Tests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/Tests.java
@@ -408,7 +408,6 @@ public abstract class Tests extends AbstractDebugTest {
/**
* Constructor for Tests.
- * @param name
*/
public Tests(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsAnonymousClassVariable.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsAnonymousClassVariable.java
index e8512578ce..a4fedab4b3 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsAnonymousClassVariable.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsAnonymousClassVariable.java
@@ -19,8 +19,6 @@
public class TestsAnonymousClassVariable extends Tests {
/**
* Constructor for TestsAnonymousClassVariable.
- *
- * @param name
*/
public TestsAnonymousClassVariable(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsArrays.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsArrays.java
index 7db929ff0a..b83a82b6c1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsArrays.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsArrays.java
@@ -20,7 +20,6 @@
public class TestsArrays extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsArrays(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes1.java
index d6bcb2f648..4946f05250 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes1.java
@@ -20,7 +20,6 @@
public class TestsNestedTypes1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsNestedTypes1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes2.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes2.java
index 83a270531b..fa2eaaccad 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes2.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNestedTypes2.java
@@ -21,7 +21,6 @@
public class TestsNestedTypes2 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsNestedTypes2(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNumberLiteral.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNumberLiteral.java
index ad2a34f694..fe8c07e282 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNumberLiteral.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsNumberLiteral.java
@@ -18,7 +18,6 @@
public class TestsNumberLiteral extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsNumberLiteral(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators1.java
index 87d445f4a4..98831c5010 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators1.java
@@ -21,7 +21,6 @@
public class TestsOperators1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsOperators1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators2.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators2.java
index a8359a6029..d4a4cfe3a6 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators2.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsOperators2.java
@@ -21,7 +21,6 @@
public class TestsOperators2 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsOperators2(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy1.java
index 42c48d5e99..c76d0ee224 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy1.java
@@ -19,7 +19,6 @@
public class TestsTypeHierarchy1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsTypeHierarchy1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy2.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy2.java
index 0c4440f9ec..21f50481dc 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy2.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TestsTypeHierarchy2.java
@@ -18,7 +18,6 @@
public class TestsTypeHierarchy2 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TestsTypeHierarchy2(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_119_1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_119_1.java
index 0a0c01ab21..0eb10b44b9 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_119_1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_119_1.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_119_1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_119_1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_146_1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_146_1.java
index 01c114ba0b..0a062ba4bf 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_146_1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_146_1.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_146_1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_146_1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_1.java
index 9dce71fb01..ad3cdcb8e7 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_1.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_32_1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_32_1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_2.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_2.java
index 7fd06ae91f..b43993101f 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_2.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_2.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_32_2 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_32_2(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_3.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_3.java
index 94468b840c..095d356cf1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_3.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_3.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_32_3 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_32_3(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_4.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_4.java
index 1a80a3f878..9878cdd6d8 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_4.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_4.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_32_4 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_32_4(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_5.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_5.java
index 02af2a2456..cd859e1fd5 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_5.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_5.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_32_5 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_32_5(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_6.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_6.java
index b18109ca41..7d196db703 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_6.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_32_6.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_32_6 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_32_6(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_1.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_1.java
index 7d7dc19a1a..b7809056ed 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_1.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_1.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_68_1 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_68_1(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_2.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_2.java
index 4b0b54bcea..a705b5f0f3 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_2.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_2.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_68_2 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_68_2(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_3.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_3.java
index ed8d017620..5c67f8e2a5 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_3.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/eval/TypeHierarchy_68_3.java
@@ -19,7 +19,6 @@
public class TypeHierarchy_68_3 extends Tests {
/**
* Constructor for TypeHierarchy.
- * @param name
*/
public TypeHierarchy_68_3(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationEncodingTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationEncodingTests.java
index 79dac4a8f6..0335e8eb7a 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationEncodingTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationEncodingTests.java
@@ -34,7 +34,6 @@ public class ConfigurationEncodingTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public ConfigurationEncodingTests(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationResourceMappingTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationResourceMappingTests.java
index 77cf367669..2941431d2e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationResourceMappingTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ConfigurationResourceMappingTests.java
@@ -27,7 +27,6 @@ public class ConfigurationResourceMappingTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public ConfigurationResourceMappingTests(String name) {
super(name);
@@ -117,7 +116,6 @@ public void testSetMappedResource() throws CoreException {
/**
* Tests that > 1 resource can be mapped correctly
- * @throws CoreException
*/
public void testSetMappedResources() throws CoreException {
ILaunchConfiguration config = getLaunchConfiguration("MigrationTests");
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ContributedTabTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ContributedTabTests.java
index 9170880128..58bb08cb9e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ContributedTabTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ContributedTabTests.java
@@ -45,7 +45,6 @@ public ContributedTabTests(String name) {
/**
* Checks to make sure that all of the contributed tabs to the java tab group are present
- * @throws CoreException
*/
public void testContributedTab() throws CoreException {
ILaunchConfigurationTabGroup javagroup = getJavaLaunchGroup();
@@ -65,7 +64,6 @@ public void testContributedTab() throws CoreException {
/**
* Checks to make sure that a contributed tab with a relative placement to an existing tab is in the correct place
- * @throws CoreException
*/
public void testContributedTabRelativePlacement() throws CoreException {
ILaunchConfigurationTabGroup javagroup = getJavaLaunchGroup();
@@ -88,7 +86,6 @@ public void testContributedTabRelativePlacement() throws CoreException {
/**
* Checks to see that if a contributor supplies a bad tab id as a placement id that the tab will be added
* to the end of the group
- * @throws CoreException
*/
public void testContributedTabPlacementTabNotFound() throws CoreException {
ILaunchConfigurationTabGroup javagroup = getJavaLaunchGroup();
@@ -101,7 +98,6 @@ public void testContributedTabPlacementTabNotFound() throws CoreException {
/**
* Checks to see that the two tabs following the arguments tab are TestTab2, and TestTab3. They can be in either order depending
* on when they were loaded, so this test only checks that they are the next two following tabs not their order
- * @throws CoreException
*/
public void testContributedTabsPlacement() throws CoreException {
ILaunchConfigurationTabGroup javagroup = getJavaLaunchGroup();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java
index 6220235fa2..6a5d764aef 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchConfigurationTests.java
@@ -30,8 +30,6 @@ class TestConfiguration extends LaunchConfiguration {
/**
* Constructor
- * @param name
- * @param container
*/
protected TestConfiguration(String name, IContainer container) {
super(name, container);
@@ -54,7 +52,6 @@ public String getFileNameProxy() {
/**
* Constructor
- * @param name
*/
public LaunchConfigurationTests(String name) {
super(name);
@@ -63,7 +60,6 @@ public LaunchConfigurationTests(String name) {
/**
* Tests the {@link LaunchConfiguration#getSimpleName} method
*
- * @throws Exception
* @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=332410
*/
public void testGetSimpleName() throws Exception {
@@ -85,8 +81,6 @@ public void testGetSimpleName() throws Exception {
/**
* Tests the {@link LaunchConfiguration#setName} method
- *
- * @throws Exception
*/
public void testSetName() throws Exception {
assertEquals("The default name should be: 'Test'", "Test", config.getName());
@@ -98,8 +92,6 @@ public void testSetName() throws Exception {
/**
* Tests the {@link LaunchConfiguration#getFileName} method
- *
- * @throws Exception
*/
public void testGetFileName() throws Exception {
String filename = config.getFileNameProxy();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchDelegateTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchDelegateTests.java
index b79a460c21..e5e9216da6 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchDelegateTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchDelegateTests.java
@@ -37,7 +37,6 @@ public class LaunchDelegateTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public LaunchDelegateTests(String name) {
super(name);
@@ -46,7 +45,6 @@ public LaunchDelegateTests(String name) {
/**
* Ensures a launch delegate can provide a launch object for
* a launch.
- * @throws CoreException
*/
public void testProvideLaunch() throws CoreException {
ILaunchManager manager = getLaunchManager();
@@ -82,7 +80,6 @@ public void testSourceLocatorExtension() {
/**
* Test launch delegate for mixed launch mode.
- * @throws CoreException
*/
public void testMixedModeDelegate() throws CoreException {
ILaunchManager manager = getLaunchManager();
@@ -100,7 +97,6 @@ public void testMixedModeDelegate() throws CoreException {
/**
* Tests if the java launch delegate was found as one of the delegates for debug mode.
- * @throws CoreException
*/
public void testSingleDebugModeDelegate() throws CoreException {
ILaunchManager manager = getLaunchManager();
@@ -123,7 +119,6 @@ public void testSingleDebugModeDelegate() throws CoreException {
/**
* Tests correct delegate is found for alternate mode.
- * @throws CoreException
*/
public void testSingleAlternateModeDelegate() throws CoreException {
ILaunchManager manager = getLaunchManager();
@@ -141,7 +136,6 @@ public void testSingleAlternateModeDelegate() throws CoreException {
/**
* Checks that the delegate definition is collecting and parsing mode combination information properly from both the delegate
* contribution and from modeCombination child elements
- * @throws CoreException
*/
public void testMultipleModeSingleDelegate() throws CoreException {
ILaunchManager manager = getLaunchManager();
@@ -161,7 +155,6 @@ public void testMultipleModeSingleDelegate() throws CoreException {
/**
* Checks that all applicable delegates are found for given types and mode combinations
- * @throws CoreException
*/
public void testSingleModeMultipleDelegates() throws CoreException {
ILaunchManager manager = getLaunchManager();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchModeTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchModeTests.java
index c548ebf826..a34b6ba586 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchModeTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchModeTests.java
@@ -54,18 +54,12 @@ public class LaunchModeTests extends AbstractDebugTest {
private ILaunchConfiguration fConfiguration;
private String fMode;
- /**
- * @param name
- */
public LaunchModeTests(String name) {
super(name);
}
/**
* Called by launch "TestModeLaunchDelegate" delegate when launch method invoked.
- *
- * @param configuration
- * @param mode
*/
public synchronized void launch(ILaunchConfiguration configuration, String mode) {
fConfiguration = configuration;
@@ -77,7 +71,6 @@ public synchronized void launch(ILaunchConfiguration configuration, String mode)
* Tests that launch delegate for "TEST_MODE" and Java applications is invoked when
* "TEST_MODE" is used.
*
- * @throws CoreException
* @see TestModeLaunchDelegate
*/
public void testContributedLaunchMode() throws CoreException {
@@ -136,9 +129,6 @@ public void testLaunchModes() {
/**
* Asserts that the array contains the given object
- * @param message
- * @param array
- * @param object
*/
static public void assertContains(String message, Object[] array, Object object) {
for (int i = 0; i < array.length; i++) {
@@ -151,7 +141,6 @@ static public void assertContains(String message, Object[] array, Object object)
/**
* Ensure our contributed mode is supported.
- * @throws CoreException
*/
public void testSupportsMode() throws CoreException {
ILaunchConfiguration configuration = getLaunchConfiguration("Breakpoints"); //$NON-NLS-1$
@@ -168,7 +157,6 @@ public void testSupportsMode() throws CoreException {
/**
* Tests that mode specific tab group contributions work.
- * @throws CoreException
*/
public void testModeSpecificTabGroups() throws CoreException {
ILaunchConfigurationType javaType = getLaunchManager().getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchShortcutTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchShortcutTests.java
index 051e1d0fc5..c1e3262915 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchShortcutTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchShortcutTests.java
@@ -33,7 +33,6 @@ public class LaunchShortcutTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public LaunchShortcutTests(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchTests.java
index b669358f20..88b155648a 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchTests.java
@@ -13,16 +13,22 @@
*******************************************************************************/
package org.eclipse.jdt.debug.tests.launching;
+import java.io.File;
import java.util.HashSet;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Platform.OS;
+import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchListener;
import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.jdt.debug.core.IJavaReferenceType;
import org.eclipse.jdt.debug.core.IJavaThread;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
+import org.eclipse.jdt.internal.debug.core.model.JDIReferenceType;
+import org.eclipse.jdt.launching.sourcelookup.advanced.AdvancedSourceLookup;
/**
* Tests launch notification.
@@ -41,9 +47,50 @@ public LaunchTests(String name) {
super(name);
}
+ public void testUri() throws DebugException {
+ // https://github.com/eclipse-jdt/eclipse.jdt.debug/issues/330
+ if (OS.isWindows()) {
+ IJavaReferenceType ref1 = new JDIReferenceType(null, null) {
+ @Override
+ public String[] getSourceNames(String stratum) {
+ // normal URL resource on windows
+ return new String[] { "Main.java", "file:/C:/workspace/prj/bi%20n/main/" };
+ }
+ };
+ File classesLocation1 = AdvancedSourceLookup.getClassesLocation(ref1);
+ IJavaReferenceType ref2 = new JDIReferenceType(null, null) {
+ @Override
+ public String[] getSourceNames(String stratum) {
+ // opaque URL on windows
+ return new String[] { "Main.java", "file:C:/workspace/prj/bi%20n/main/" };
+ }
+ };
+ File classesLocation2 = AdvancedSourceLookup.getClassesLocation(ref2);
+ assertEquals(new File("C:/workspace/prj/bi n/main/"), classesLocation1);
+ assertEquals(new File("C:/workspace/prj/bi n/main/"), classesLocation2);
+ }
+
+ IJavaReferenceType ref3 = new JDIReferenceType(null, null) {
+ @Override
+ public String[] getSourceNames(String stratum) {
+ // opaque URL on linux
+ return new String[] { "Main.java", "file:workspace/prj/bi%20n/main/" };
+ }
+ };
+ File classesLocation3 = AdvancedSourceLookup.getClassesLocation(ref3);
+ IJavaReferenceType ref4 = new JDIReferenceType(null, null) {
+ @Override
+ public String[] getSourceNames(String stratum) {
+ // normal URL resource on linux
+ return new String[] { "Main.java", "file:/workspace/prj/bi%20n/main/" };
+ }
+ };
+ File classesLocation4 = AdvancedSourceLookup.getClassesLocation(ref4);
+ assertEquals(new File("/workspace/prj/bi n/main/"), classesLocation3);
+ assertEquals(new File("/workspace/prj/bi n/main/"), classesLocation4);
+ }
/**
* test launch notification
- * @throws CoreException
*/
public void testLaunchNotification() throws CoreException {
String typeName = "Breakpoints"; //$NON-NLS-1$
@@ -92,8 +139,6 @@ public void testLaunchNotification() throws CoreException {
/**
* Tests launching an unregistered launch.
- *
- * @throws Exception
*/
public void testUnregisteredLaunch() throws Exception {
String typeName = "Breakpoints"; //$NON-NLS-1$
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchesTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchesTests.java
index 297e6ff76b..1b8df49a42 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchesTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LaunchesTests.java
@@ -51,7 +51,6 @@ protected void setUp() throws Exception {
/**
* Tests launch notification in debug mode.
- * @throws CoreException
*/
public void testDebugMode() throws CoreException {
doMode(ILaunchManager.DEBUG_MODE);
@@ -59,7 +58,6 @@ public void testDebugMode() throws CoreException {
/**
* Tests launch notification in run mode.
- * @throws CoreException
*/
public void testRunMode() throws CoreException {
doMode(ILaunchManager.RUN_MODE);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongClassPathTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongClassPathTests.java
index c219806dbc..54fd27c698 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongClassPathTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongClassPathTests.java
@@ -55,7 +55,6 @@
/**
* Test long classpaths. OSs have limits in term of command line length or argument length. We handle this limit differently depending on the VM
* version and OS.
- *
*/
public class LongClassPathTests extends AbstractDebugTest {
protected static final String MAIN_TYPE_NAME = "test.classpath.Main";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongModulePathTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongModulePathTests.java
index d580df3aaa..7706047fb1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongModulePathTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/LongModulePathTests.java
@@ -46,7 +46,6 @@
/**
* Test long module-path. OSs have limits in term of command line length or argument length. We use an argument file when module-path is too long.
- *
*/
public class LongModulePathTests extends AbstractDebugTest {
private static final IPath CLASSPATH_PROJECT_CONTENT_PATH = new Path("testresources/classpathModuleProject");
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/MigrationDelegateTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/MigrationDelegateTests.java
index 8b1ee2bd79..2d36312509 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/MigrationDelegateTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/MigrationDelegateTests.java
@@ -22,7 +22,6 @@
* Java types in this context only include Local Java Applications, Java Applets, and Remote Java Applications
*
* @since 3.2
- *
*/
public class MigrationDelegateTests extends AbstractDebugTest {
@@ -36,7 +35,6 @@ public MigrationDelegateTests(String name) {
/**
* Runs a normal migration with no problems
- * @throws Exception
*/
public void testStandardMigration() throws Exception {
createLaunchConfiguration("MigrationTests"); //$NON-NLS-1$
@@ -55,7 +53,6 @@ public void testStandardMigration() throws Exception {
/**
* Tests to see if the previously migrated launch configurations are still considered candidates
- * @throws Exception
*/
public void testMigrationAlreadyPerformed() throws Exception {
createLaunchConfiguration("MigrationTests2"); //$NON-NLS-1$
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/PListParserTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/PListParserTests.java
index c03c7975a9..b19db9c7f9 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/PListParserTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/PListParserTests.java
@@ -40,8 +40,6 @@ public PListParserTests(String name) {
/**
* Tests parsing of a sample installed JREs plist from the Mac.
- *
- * @throws Exception
*/
public void testParseJREs() throws Exception {
File file = JavaTestPlugin.getDefault().getFileInPlugin(new Path("testresources/plist.xml"));
@@ -94,7 +92,6 @@ public void testParseJREs() throws Exception {
/**
* Tests that we parse out the correct number of raw entries from the 'lion' plist output
*
- * @throws Exception
* @since 3.8
*/
public void testParseLionJREs() throws Exception {
@@ -114,7 +111,6 @@ public void testParseLionJREs() throws Exception {
/**
* Tests that we parse out the correct number of raw entries from the 'now leopard' plist output
*
- * @throws Exception
* @since 3.8
*/
public void testParseSnowLeopardJREs() throws Exception {
@@ -135,7 +131,6 @@ public void testParseSnowLeopardJREs() throws Exception {
* Tests that we can parse out certain {@link VMStandin}s from the 'old' style
* of plist output.
*
- * @throws Exception
* @since 3.8
*/
public void testParseJREDescriptors() throws Exception {
@@ -150,7 +145,6 @@ public void testParseJREDescriptors() throws Exception {
* Tests that we can parse out certain {@link VMStandin}s from the 'snow leopard' style
* of plist output.
*
- * @throws Exception
* @since 3.8
*/
public void testParseJREDescriptorsSnowLeopard() throws Exception {
@@ -165,7 +159,6 @@ public void testParseJREDescriptorsSnowLeopard() throws Exception {
* Tests that we can parse out certain {@link VMStandin}s from the 'lion' style
* of plist output.
*
- * @throws Exception
* @since 3.8
*/
public void testParseJREDescriptorsLion() throws Exception {
@@ -183,7 +176,6 @@ public void testParseJREDescriptorsLion() throws Exception {
* plist-bad1.xml has a boolean value in place of the VM name for the 1.6 VM,
* but we should still recover the remainder of the VMs defined (3 of them)
*
- * @throws Exception
* @since 3.8
*/
public void testParseJREDescriptorsBad() throws Exception {
@@ -201,7 +193,6 @@ public void testParseJREDescriptorsBad() throws Exception {
*
* plist-bad2.xml is missing a key element - but still has the value for the key.
*
- * @throws Exception
* @since 3.8
*/
public void testParseJREDescriptorsBad2() throws Exception {
@@ -219,7 +210,6 @@ public void testParseJREDescriptorsBad2() throws Exception {
*
* plist-bad3.xml has corrupt XML syntax
*
- * @throws Exception
* @since 3.8
*/
public void testParseJREDescriptorsBad3() throws Exception {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ProjectClasspathVariableTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ProjectClasspathVariableTests.java
index e62c1e2ce9..6c11472904 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ProjectClasspathVariableTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/ProjectClasspathVariableTests.java
@@ -75,8 +75,6 @@ protected void setSelection(final IResource resource) {
/**
* Tests that a project name must be specified.
- *
- * @throws Exception
*/
public void testMissingProjectName() throws Exception {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
@@ -91,8 +89,6 @@ public void testMissingProjectName() throws Exception {
/**
* Tests the selected project's classpath.
- *
- * @throws Exception
*/
public void testSelectedProject() throws Exception {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
@@ -109,8 +105,6 @@ public void testSelectedProject() throws Exception {
/**
* Tests that a Java project must exist
- *
- * @throws Exception
*/
public void testProjectDoesNotExist() throws Exception {
IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/TabGroupWrapperTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/TabGroupWrapperTests.java
index 04963864cd..d3cde0213b 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/TabGroupWrapperTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/launching/TabGroupWrapperTests.java
@@ -30,7 +30,6 @@ public class TabGroupWrapperTests extends AbstractDebugTest {
/**
* Constructor
- * @param name
*/
public TabGroupWrapperTests(String name) {
super(name);
@@ -38,7 +37,6 @@ public TabGroupWrapperTests(String name) {
/**
* Checks that all of the tabs specified in the original tab group and ones that are contributed are created
- * @throws CoreException
*/
public void testAllTabsCreated() throws CoreException {
ILaunchConfigurationTabGroup javagroup = getJavaLaunchGroup();
@@ -50,7 +48,6 @@ public void testAllTabsCreated() throws CoreException {
/**
* Checks to make sure that all of the controls of the tabs (including contributed ones) are disposed on a call to the tab group
* wrapper class
- * @throws CoreException
*/
public void testDisposeAllTabs() throws CoreException {
ILaunchConfigurationTabGroup javagroup = getJavaLaunchGroup();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/BreakpointManagerPerfTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/BreakpointManagerPerfTests.java
index 482977388a..646c70a3b9 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/BreakpointManagerPerfTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/BreakpointManagerPerfTests.java
@@ -34,7 +34,6 @@ public class BreakpointManagerPerfTests extends AbstractDebugPerformanceTest {
/**
* Constructor
- * @param name
*/
public BreakpointManagerPerfTests() {
super("Breakpoint Manager Performance");
@@ -46,8 +45,6 @@ public BreakpointManagerPerfTests() {
/**
* Create the given number of breakpoints in the given resource starting from the given line
*
- * @param count
- * @throws Exception
* @return the collection of breakpoints
*/
IBreakpoint[] generateBreakpoints(int count) throws Exception {
@@ -78,7 +75,6 @@ IBreakpoint[] generateBreakpoints(int count) throws Exception {
/**
* Tests the time required to start the {@link BreakpointManager}
- * @throws Exception
*/
public void testStartup200Breakpoints() throws Exception {
tagAsSummary("Start Breakpoint Manager - 200 BPs", Dimension.ELAPSED_PROCESS);
@@ -108,7 +104,6 @@ public void testStartup200Breakpoints() throws Exception {
/**
* Tests the time required to start the {@link BreakpointManager}
- * @throws Exception
*/
public void testStartup50Breakpoints() throws Exception {
tagAsSummary("Start Breakpoint Manager - 50 BPs", Dimension.ELAPSED_PROCESS);
@@ -138,7 +133,6 @@ public void testStartup50Breakpoints() throws Exception {
/**
* Tests the time required to start the {@link BreakpointManager}
- * @throws Exception
*/
public void testStartup100Breakpoints() throws Exception {
tagAsSummary("Start Breakpoint Manager - 100 BPs", Dimension.ELAPSED_PROCESS);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfBreakpointTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfBreakpointTests.java
index 5c93758858..f9e172d9a0 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfBreakpointTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfBreakpointTests.java
@@ -38,7 +38,6 @@ public class PerfBreakpointTests extends AbstractDebugPerformanceTest implements
/**
* Constructor
- * @param name
*/
public PerfBreakpointTests(String name) {
super(name);
@@ -46,7 +45,6 @@ public PerfBreakpointTests(String name) {
/**
* Tests the performance of line breakpoint creation
- * @throws Exception
*/
public void testLineBreakpointCreation() throws Exception {
tagAsSummary("Install Line Breakpoints", Dimension.ELAPSED_PROCESS);
@@ -95,7 +93,6 @@ public void testLineBreakpointCreation() throws Exception {
/**
* Tests the performance of breakpoint removal
- * @throws Exception
*/
public void testBreakpointRemoval() throws Exception {
String typeName = "LargeSourceFile";
@@ -151,7 +148,6 @@ public void testBreakpointRemoval() throws Exception {
/**
* Tests the performance of method entry breakpoint creation
- * @throws Exception
*/
public void testMethodEntryBreakpointCreation() throws Exception {
tagAsSummary("Install Method Entry Breakpoints", Dimension.ELAPSED_PROCESS);
@@ -201,7 +197,6 @@ public void testMethodEntryBreakpointCreation() throws Exception {
/**
* Tests the performance of watchpoint creation
- * @throws Exception
*/
public void testWatchpointCreation() throws Exception {
tagAsSummary("Install Watchpoints", Dimension.ELAPSED_PROCESS);
@@ -250,8 +245,6 @@ public void testWatchpointCreation() throws Exception {
/**
* Waits for the specified breakpoint count to be hit
- * @param i
- * @throws Exception
*/
private synchronized void waitForBreakpointCount(int i) throws Exception {
long end = System.currentTimeMillis() + 60000;
@@ -263,10 +256,6 @@ private synchronized void waitForBreakpointCount(int i) throws Exception {
/**
* Creates line breakpoints on the specified line numbers in the given type name with the given resource
- * @param resource
- * @param typeName
- * @param lineNumbers
- * @throws CoreException
*/
private void createLineBreakpoints(IResource resource, String typeName, int[] lineNumbers) throws CoreException {
for (int i = 0; i < lineNumbers.length; i++) {
@@ -276,10 +265,6 @@ private void createLineBreakpoints(IResource resource, String typeName, int[] li
/**
* Creates method entry breakpoints on the specified methods in the given type name in the specified project
- * @param project
- * @param typeName
- * @param methods
- * @throws CoreException
*/
private void createMethodEntryBreakpoints(IProject project, String typeName, String[] methods) throws CoreException {
for (int i = 0; i < methods.length; i++) {
@@ -290,10 +275,6 @@ private void createMethodEntryBreakpoints(IProject project, String typeName, Str
/**
* Creates watchpoints on the specified fields of the specified resource with the given type name
- * @param resource
- * @param typeName
- * @param fields
- * @throws Exception
*/
private void createWatchpoints(IResource resource, String typeName, String[] fields) throws Exception {
for(int i = 0; i < fields.length; i++) {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConditionalBreakpointsTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConditionalBreakpointsTests.java
index 394ff4482e..fc006cf052 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConditionalBreakpointsTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConditionalBreakpointsTests.java
@@ -61,7 +61,6 @@ public void handleDebugEvents(DebugEvent[] events) {
/**
* Constructor
- * @param name
*/
public PerfConditionalBreakpointsTests(String name) {
super(name);
@@ -69,7 +68,6 @@ public PerfConditionalBreakpointsTests(String name) {
/**
* Tests the performance of launching to conditional breakpoints
- * @throws Exception
*/
public void testConditionalBreakpoints() throws Exception {
tagAsSummary("Conditional Breakpoint Test", Dimension.ELAPSED_PROCESS);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConsoleTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConsoleTests.java
index 9e32b97340..75fd58e2d2 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConsoleTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfConsoleTests.java
@@ -43,7 +43,6 @@ public class PerfConsoleTests extends AbstractDebugPerformanceTest implements IC
/**
* Constructor
- * @param name
*/
public PerfConsoleTests(String name) {
super(name);
@@ -52,7 +51,6 @@ public PerfConsoleTests(String name) {
/**
* Tests the performance of 1000 lines of plain output to the console
- * @throws Exception
*/
public void testProcessConsolePlainOutput10000Lines() throws Exception {
tagAsSummary("Process Console 10,000 lines: plain output", Dimension.ELAPSED_PROCESS);
@@ -61,7 +59,6 @@ public void testProcessConsolePlainOutput10000Lines() throws Exception {
/**
* Tests the performance of 10000 lines of stack trace output to the console
- * @throws Exception
*/
public void testProcessConsoleStackTraceOutput10000Lines() throws Exception {
tagAsSummary("Process Console 10,000 lines: stack trace output", Dimension.ELAPSED_PROCESS);
@@ -70,7 +67,6 @@ public void testProcessConsoleStackTraceOutput10000Lines() throws Exception {
/**
* Tests the performance of 10000 lines of wrapped process console output to the console
- * @throws Exception
*/
public void testProcessConsoleWrappedOutput10000Lines() throws Exception {
tagAsSummary("Process Console 10,000 lines: wrapped output", Dimension.ELAPSED_PROCESS);
@@ -99,9 +95,6 @@ protected void tearDown() throws Exception {
/**
* Runs the
- * @param lines
- * @param repeatTest
- * @throws Exception
*/
protected void runConsole80CharsTest(int lines, int repeatTest) throws Exception {
String typeName = "Console80Chars";
@@ -173,8 +166,6 @@ protected void runVariableLength(int prints, int repeatTest) throws Exception {
/**
* A warmup run of launching and having output piped to the console
- * @param workingCopy
- * @throws Exception
*/
protected void warmupRun(ILaunchConfigurationWorkingCopy workingCopy) throws Exception {
fWarmingUp = true;
@@ -187,8 +178,6 @@ protected void warmupRun(ILaunchConfigurationWorkingCopy workingCopy) throws Exc
/**
* Launches the specified working copy and then waits
- * @param workingCopy
- * @throws Exception
*/
protected void launchWorkingCopyAndWait(final ILaunchConfigurationWorkingCopy workingCopy) throws Exception {
ILaunch launch = null;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfContextualLaunchMenu.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfContextualLaunchMenu.java
index 6051bf52b3..d055975ad1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfContextualLaunchMenu.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfContextualLaunchMenu.java
@@ -30,7 +30,6 @@ public class PerfContextualLaunchMenu extends AbstractDebugPerformanceTest {
/**
* Constructor
- * @param name
*/
public PerfContextualLaunchMenu(String name) {
super(name);
@@ -38,7 +37,6 @@ public PerfContextualLaunchMenu(String name) {
/**
* Tests the performance of the fly-out time of the contextual launch menu
- * @throws Exception
*/
public void testContextualLaunchMenu() throws Exception {
setDegradationComment("This test is unreliable as it improved 10x during 3.3 (vs 3.2), and needs to be replaced.");
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfSteppingTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfSteppingTests.java
index 516afb0d61..cff47ef748 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfSteppingTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfSteppingTests.java
@@ -27,7 +27,6 @@ public class PerfSteppingTests extends AbstractDebugPerformanceTest {
/**
* Constructor
- * @param name
*/
public PerfSteppingTests(String name) {
super(name);
@@ -41,8 +40,6 @@ class MyFilter implements IDebugEventFilter {
/**
* Constructor
- * @param thread
- * @param lock
*/
public MyFilter(IJavaThread thread, Object lock) {
fThread = thread;
@@ -91,8 +88,6 @@ public void step() {
/**
* Tests stepping over without taking into account event processing in the UI.
- *
- * @throws Exception
*/
public void testBareStepOver() throws Exception {
String typeName = "PerfLoop";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfVariableDetailTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfVariableDetailTests.java
index be1ce62c16..20cf7ea1a4 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfVariableDetailTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/performance/PerfVariableDetailTests.java
@@ -33,7 +33,6 @@ public class PerfVariableDetailTests extends AbstractDebugPerformanceTest implem
/**
* Constructor
- * @param name
*/
public PerfVariableDetailTests(String name) {
super(name);
@@ -51,7 +50,6 @@ public void detailComputed(IValue value, String result) {
/**
* Tests the performance of calculating the 'toString' method
- * @throws Exception
*/
public void testToStringDetails() throws Exception {
// just in case
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/AbstractRefactoringDebugTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/AbstractRefactoringDebugTest.java
index 6f6fbce7c7..0302aa29b4 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/AbstractRefactoringDebugTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/AbstractRefactoringDebugTest.java
@@ -31,7 +31,6 @@
import org.eclipse.jdt.core.search.SearchPattern;
import org.eclipse.jdt.core.search.TypeNameRequestor;
import org.eclipse.jdt.debug.tests.AbstractDebugTest;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.ltk.core.refactoring.CheckConditionsOperation;
import org.eclipse.ltk.core.refactoring.PerformRefactoringOperation;
import org.eclipse.ltk.core.refactoring.Refactoring;
@@ -60,9 +59,6 @@ protected void setUp() throws Exception {
/**
* Performs the given refactoring. If a {@link CoreException} occurs during the refactoring, we trap it and throw a {@link TestAgainException} to
* try the test again.
- *
- * @param refactoring
- * @throws Exception
*/
public void performRefactor(final Refactoring refactoring) throws Exception {
if(refactoring == null) {
@@ -86,7 +82,6 @@ public void performRefactor(final Refactoring refactoring) throws Exception {
/**
* Clean up all the test files
- * @throws CoreException
*/
protected void cleanTestFiles() throws CoreException {
waitUntilIndexesReady();
@@ -100,7 +95,6 @@ protected void cleanTestFiles() throws CoreException {
/**
* Cleans up refactored files and reverts the source.
- * @throws Exception
*/
private void doClean() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/ChangeMethodSignatureUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/ChangeMethodSignatureUnitTests.java
index f720f26804..58587c42d3 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/ChangeMethodSignatureUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/ChangeMethodSignatureUnitTests.java
@@ -175,7 +175,6 @@ protected IType getLowestType(ICompilationUnit cu, String input)
* @param name the typename, possibly including inner type,
* separated by $.
* eg: EnclosingType$InnerType
- * @return
*/
private IType getInnermostType(IType enclosing, String name) {
for(int i=0;i createTypeList(String typeQualifiedName) {
String newname = typeQualifiedName;
newname = newname.replace('$','.');//ensure proper format was used.
@@ -76,7 +72,6 @@ private static ArrayList createTypeList(String typeQualifiedName) {
/**
* @param fragments the scope of which you wish to return compilation units
* @return a handle to all compilation units contained by the given fragments
- * @throws JavaModelException
*/
private static ICompilationUnit[] getAllCompilationUnits(IPackageFragment[] fragments) throws JavaModelException {
if(fragments == null)
@@ -98,7 +93,6 @@ private static ICompilationUnit[] getAllCompilationUnits(IPackageFragment[] frag
/**
* @param projects the scope of which you wish to return compilation units
* @return a handle to all compilation units contained by the given projects
- * @throws JavaModelException
*/
private static ICompilationUnit[] getAllCompilationUnits(IProject[] projects) throws JavaModelException{
return getAllCompilationUnits(getAllPackageFragments(projects));
@@ -109,9 +103,7 @@ private static ICompilationUnit[] getAllCompilationUnits(String packageName, IPr
}
/**
- * @param types
* @return an array of all declared methods for the given types
- * @throws JavaModelException
*/
private static IMethod[] getAllMethods(IType[] types) throws JavaModelException{
if(types==null)
@@ -132,7 +124,6 @@ private static IMethod[] getAllMethods(IType[] types) throws JavaModelException{
/**
* @param projects the scope of the return
* @return all package fragments in the scope
- * @throws JavaModelException
*/
private static IPackageFragment[] getAllPackageFragments(IProject[] projects) throws JavaModelException {
final Set results = new HashSet<>();
@@ -159,7 +150,6 @@ private static IProject[] getAllProjects(){
/**
* @param cunits the scope of the search
* @return all types within the scope
- * @throws JavaModelException
*/
private static IType[] getAllTypes(ICompilationUnit[] cunits) throws JavaModelException {
if(cunits == null)
@@ -180,7 +170,6 @@ private static IType[] getAllTypes(ICompilationUnit[] cunits) throws JavaModelEx
/**
* @param methods the scope of the search
* @return an array of all types declared within the given methods.
- * @throws JavaModelException
*/
private static IType[] getAllTypes(IMethod[] methods) throws JavaModelException {
if(methods==null)
@@ -202,7 +191,6 @@ private static IType[] getAllTypes(IMethod[] methods) throws JavaModelException
* and anonymous types for other types.
* @param types the scope of the search
* @return all types within the given scope
- * @throws JavaModelException
*/
public static IType[] getAllTypes(IType[] types) throws JavaModelException{
if(types == null)
@@ -243,7 +231,6 @@ static protected IJavaProject getJavaProject() {
* @param packageName name of the package
* @param projects where to search
* @return the 1st instance of the given packageName
- * @throws JavaModelException
*/
private static IPackageFragment[] getAllPackageFragments(String packageName, IProject[] projects) throws JavaModelException{
final Set results = new HashSet<>();
@@ -315,7 +302,6 @@ private static IType getType(ArrayList typeList, ICompilationUnit[] cuni
* @param packageName the elemental name of the package containing the given type - may be null
* @param projectName the elemental name of the project containing the given type - may be null
* @return the IType handle to the requested type
- * @throws JavaModelException
*/
public static IType getType(String typeName, String packageName, String projectName) throws JavaModelException{
if(typeName == null)
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveCompilationUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveCompilationUnitTests.java
index 9506204eef..633cbe523c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveCompilationUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveCompilationUnitTests.java
@@ -46,7 +46,6 @@ public MoveCompilationUnitTests(String name) {
*
* @param element element to move
* @param destination destination of move
- * @throws Exception
*/
protected void move(IJavaElement element, IJavaElement destination) throws Exception {
IMovePolicy movePolicy= ReorgPolicyFactory.createMovePolicy(
@@ -63,7 +62,6 @@ protected void move(IJavaElement element, IJavaElement destination) throws Excep
/**
* Tests if a LineBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testLineBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -88,7 +86,6 @@ public void testLineBreakPoint() throws Exception {
/**
* Tests if a MethodBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testMethodBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -113,7 +110,6 @@ public void testMethodBreakPoint() throws Exception {
/**
* Tests if a WatchPointBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testWatchPointBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -138,7 +134,6 @@ public void testWatchPointBreakPoint() throws Exception {
/**
* Tests if a ClassLoadBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testClassLoadBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveFieldUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveFieldUnitTests.java
index f16a8cbed0..d21a4597dc 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveFieldUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveFieldUnitTests.java
@@ -33,7 +33,6 @@ public MoveFieldUnitTests(String name) {
/**
* Tests if a WatchPointBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testPublicTypeFieldMove() throws Exception {
IJavaProject javaProject = get14Project();
@@ -60,7 +59,6 @@ public void testPublicTypeFieldMove() throws Exception {
/**
* Tests if a WatchPointBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testInnerTypeFieldMove() throws Exception {
IJavaProject javaProject = get14Project();
@@ -87,7 +85,6 @@ public void testInnerTypeFieldMove() throws Exception {
/**
* Tests if a WatchPointBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testNonPublicTypeFieldMove() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeMethodUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeMethodUnitTests.java
index 4b2f654507..6260526e5c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeMethodUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeMethodUnitTests.java
@@ -34,7 +34,6 @@ public MoveInnerTypeMethodUnitTests(String name) {
}
/**
* Tests if a LineBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testLineBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -61,7 +60,6 @@ public void testLineBreakPoint() throws Exception {
/**
* Tests if a MethodBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testMethodBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeUnitTests.java
index d43ad6235d..db5c9d3d1c 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveInnerTypeUnitTests.java
@@ -35,7 +35,6 @@ public MoveInnerTypeUnitTests(String name) {
}
/**
* Tests if a LineBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testLineBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -61,7 +60,6 @@ public void testLineBreakPoint() throws Exception {
/**
* Tests if a MethodBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testMethodBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -86,7 +84,6 @@ public void testMethodBreakPoint() throws Exception {
/**
* Tests if a WatchPointBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testWatchPointBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -110,7 +107,6 @@ public void testWatchPointBreakPoint() throws Exception {
/**
* Tests if a ClassLoadBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testClassLoadBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeMethodUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeMethodUnitTests.java
index 5dae88f9a5..a918164ac6 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeMethodUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeMethodUnitTests.java
@@ -34,7 +34,6 @@ public MoveNonPublicTypeMethodUnitTests(String name) {
}
/**
* Tests if a LineBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testLineBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -61,7 +60,6 @@ public void testLineBreakPoint() throws Exception {
/**
* Tests if a MethodBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testMethodBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeUnitTests.java
index 3c64f79d4f..27c138a914 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveNonPublicTypeUnitTests.java
@@ -35,7 +35,6 @@ public MoveNonPublicTypeUnitTests(String name) {
}
/**
* Tests if a LineBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testLineBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -61,7 +60,6 @@ public void testLineBreakPoint() throws Exception {
/**
* Tests if a MethodBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testMethodBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -86,7 +84,6 @@ public void testMethodBreakPoint() throws Exception {
/**
* Tests if a WatchPointBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testWatchPointBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -112,7 +109,6 @@ public void testWatchPointBreakPoint() throws Exception {
/**
* Tests if a ClassLoadBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testClassLoadBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MovePublicTypeMethodUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MovePublicTypeMethodUnitTests.java
index 11577ece68..649d622651 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MovePublicTypeMethodUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MovePublicTypeMethodUnitTests.java
@@ -34,7 +34,6 @@ public MovePublicTypeMethodUnitTests(String name) {
}
/**
* Tests if a LineBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testLineBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
@@ -61,7 +60,6 @@ public void testLineBreakPoint() throws Exception {
/**
* Tests if a MethodBreakPoint was moved appropriately.
- * @throws Exception
*/
public void testMethodBreakPoint() throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveRefactoringTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveRefactoringTest.java
index 1a5bbc56d7..ed8e646b40 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveRefactoringTest.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/MoveRefactoringTest.java
@@ -30,18 +30,12 @@
*/
public class MoveRefactoringTest extends AbstractRefactoringDebugTest {
- /**
- * @param name
- */
public MoveRefactoringTest(String name) {
super(name);
}
/** Configures a processor for refactoring
- * @param javaProject
- * @param type
* @return the configured processor that will be used in refactoring
- * @throws JavaModelException
*/
protected JavaMoveProcessor setupRefactor(IJavaProject javaProject, IJavaElement type) throws JavaModelException {
IMovePolicy movePolicy= ReorgPolicyFactory.createMovePolicy(
@@ -57,10 +51,6 @@ protected JavaMoveProcessor setupRefactor(IJavaProject javaProject, IJavaElement
}
/** Sets up a refactoring and executes it.
- * @param javaProject
- * @param cunit
- * @throws JavaModelException
- * @throws Exception
*/
protected void refactor(IJavaProject javaProject, IJavaElement type) throws JavaModelException, Exception {
JavaMoveProcessor processor = setupRefactor(javaProject, type);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/PushDownFieldUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/PushDownFieldUnitTests.java
index 407ef904f9..d10012c03a 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/PushDownFieldUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/PushDownFieldUnitTests.java
@@ -52,15 +52,6 @@ public void testWatchPoint() throws Exception {
/////////////////////////////////////////
- /**
- * @param parentClassName
- * @param className
- * @param root
- * @param targetPackageName
- * @param cuName
- * @return
- * @throws Exception
- */
private Refactoring setupRefactor(String parentClassName, String className, String root, String targetPackageName, String cuName) throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameCompilationUnitUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameCompilationUnitUnitTests.java
index a3423aa1a7..78727ce98f 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameCompilationUnitUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameCompilationUnitUnitTests.java
@@ -33,14 +33,6 @@ public RenameCompilationUnitUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param newTargetLineage
- * @throws Exception
- */
private void runClassLoadBreakpointTest(String src, String pack, String cunit, String fullTargetName, String newTargetLineage) throws Exception {
try {
//create breakpoint to test
@@ -61,15 +53,6 @@ private void runClassLoadBreakpointTest(String src, String pack, String cunit, S
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetsParentName
- * @param lineNumber
- * @throws Exception
- */
private void runLineBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetsParentName, int lineNumber) throws Exception {
try {
//create breakpoint to test
@@ -91,15 +74,6 @@ private void runLineBreakpointTest(String src, String pack, String cunit, String
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param newTargetLineage
- * @param methodName
- * @throws Exception
- */
private void runMethodBreakpointTest(String src, String pack, String cunit, String fullTargetName, String newTargetLineage, String methodName) throws Exception {
try {
//create breakpoint to test
@@ -121,15 +95,6 @@ private void runMethodBreakpointTest(String src, String pack, String cunit, Stri
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param newTargetLineage
- * @param fieldName
- * @throws Exception
- */
private void runWatchPointTest(String src, String pack, String cunit, String fullTargetName, String newTargetLineage, String fieldName) throws Exception {
try {
//create breakpoint to test
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameFieldUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameFieldUnitTests.java
index b66ca2ebcc..b382a3d455 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameFieldUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameFieldUnitTests.java
@@ -31,14 +31,6 @@ public RenameFieldUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @throws Exception
- */
protected void runWatchPointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage) throws Exception {
String newFieldName = "renamedField";
try {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameInnerTypeUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameInnerTypeUnitTests.java
index 214e5d88e6..89771c661a 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameInnerTypeUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameInnerTypeUnitTests.java
@@ -36,14 +36,6 @@ public RenameInnerTypeUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @throws Exception
- */
private void runClassLoadBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage) throws Exception {
try {
//create breakpoint to test
@@ -64,15 +56,6 @@ private void runClassLoadBreakpointTest(String src, String pack, String cunit, S
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param lineNumber
- * @throws Exception
- */
private void runLineBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, int lineNumber) throws Exception {
try {
//create breakpoint to test
@@ -94,15 +77,6 @@ private void runLineBreakpointTest(String src, String pack, String cunit, String
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param methodName
- * @throws Exception
- */
private void runMethodBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, String methodName) throws Exception {
try {
//create breakpoint to test
@@ -124,15 +98,6 @@ private void runMethodBreakpointTest(String src, String pack, String cunit, Stri
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param fieldName
- * @throws Exception
- */
private void runWatchPointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, String fieldName) throws Exception {
try {
//create breakpoint to test
@@ -156,12 +121,7 @@ private void runWatchPointTest(String src, String pack, String cunit, String ful
/**
*
- * @param root
- * @param packageName
- * @param cuName
* @param type TODO
- * @return
- * @throws Exception
*/
private Refactoring setupRefactor(String root, String packageName, String cuName, String type) throws Exception {
IJavaProject javaProject = get14Project();
@@ -234,11 +194,6 @@ public void testInnerWatchpoint() throws Exception {
/**
* Creates an exception breakpoint and adds a filter. Refactors & checks
* if the filter changed appropriately w/ the refactor.
- * @param src
- * @param pack
- * @param cunit
- * @param targetName
- * @throws Exception
*/
protected void runExceptionBreakpointTest(String src, String pack, String cunit, String targetName, String exceptionName) throws Exception {
try {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameMethodUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameMethodUnitTests.java
index 177d04d0ff..7e7344eda5 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameMethodUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameMethodUnitTests.java
@@ -32,14 +32,6 @@ public RenameMethodUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @throws Exception
- */
protected void runMethodBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage) throws Exception {
String newMethodName = "renamedMethod";
try {
@@ -65,12 +57,6 @@ protected void runMethodBreakpointTest(String src, String pack, String cunit, St
/**
* Will setup the refactoring for Methods and members declared within
* members (i.e. members of anonymous classes)
- * @param root
- * @param packageName
- * @param cuName
- * @param fullName
- * @return
- * @throws Exception
*/
protected Refactoring setupRefactor(String root, String packageName, String cuName, String fullName) throws Exception {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameNonPublicTypeUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameNonPublicTypeUnitTests.java
index b9c45cde04..8413e90908 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameNonPublicTypeUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenameNonPublicTypeUnitTests.java
@@ -36,14 +36,6 @@ public RenameNonPublicTypeUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @throws Exception
- */
protected void runClassLoadBreakpointTest(String src, String pack, String cunit, String fullTargetName) throws Exception {
String targetLineage = pack +"."+"RenamedType";
try {
@@ -65,15 +57,6 @@ protected void runClassLoadBreakpointTest(String src, String pack, String cunit,
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param lineNumber
- * @throws Exception
- */
protected void runLineBreakpointTest(String src, String pack, String cunit, String fullTargetName, int lineNumber) throws Exception {
String targetLineage = pack +"."+"RenamedType";
try {
@@ -96,15 +79,6 @@ protected void runLineBreakpointTest(String src, String pack, String cunit, Stri
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param methodName
- * @throws Exception
- */
protected void runMethodBreakpointTest(String src, String pack, String cunit, String fullTargetName, String methodName) throws Exception {
String targetLineage = pack +"."+"RenamedType";
try {
@@ -127,15 +101,6 @@ protected void runMethodBreakpointTest(String src, String pack, String cunit, St
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param fieldName
- * @throws Exception
- */
protected void runWatchPointTest(String src, String pack, String cunit, String fullTargetName, String fieldName) throws Exception {
String targetLineage = pack +"."+"RenamedType";
try {
@@ -160,12 +125,7 @@ protected void runWatchPointTest(String src, String pack, String cunit, String f
/**
*
- * @param root
- * @param packageName
- * @param cuName
* @param type TODO
- * @return
- * @throws Exception
*/
protected Refactoring setupRefactor(String root, String packageName, String cuName,
String type) throws Exception {
@@ -239,11 +199,6 @@ public void testNonPublicWatchpoint() throws Exception {
/**
* Creates an exception breakpoint and adds a filter. Refactors & checks
* if the filter changed appropriately w/ the refactor.
- * @param src
- * @param pack
- * @param cunit
- * @param targetName
- * @throws Exception
*/
protected void runExceptionBreakpointTest(String src, String pack, String cunit, String targetName) throws Exception {
String newTypeName = "RenamedType",
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePackageUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePackageUnitTests.java
index 55aa068241..b626a9a84f 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePackageUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePackageUnitTests.java
@@ -36,14 +36,6 @@ public RenamePackageUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @throws Exception
- */
protected void runClassLoadBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage) throws Exception {
try {
//create breakpoint to test
@@ -64,15 +56,6 @@ protected void runClassLoadBreakpointTest(String src, String pack, String cunit,
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetsLineage
- * @param lineNumber
- * @throws Exception
- */
protected void runLineBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetsLineage, int lineNumber) throws Exception {
try {
//create breakpoint to test
@@ -94,15 +77,6 @@ protected void runLineBreakpointTest(String src, String pack, String cunit, Stri
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param methodName
- * @throws Exception
- */
protected void runMethodBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, String methodName) throws Exception {
try {
//create breakpoint to test
@@ -124,15 +98,6 @@ protected void runMethodBreakpointTest(String src, String pack, String cunit, St
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param fieldName
- * @throws Exception
- */
protected void runWatchPointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, String fieldName) throws Exception {
try {
//create breakpoint to test
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePublicTypeUnitTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePublicTypeUnitTests.java
index 2d9bc73bde..48df0ca686 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePublicTypeUnitTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/refactoring/RenamePublicTypeUnitTests.java
@@ -36,14 +36,6 @@ public RenamePublicTypeUnitTests(String name) {
super(name);
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @throws Exception
- */
protected void runClassLoadBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage) throws Exception {
try {
//create breakpoint to test
@@ -68,11 +60,7 @@ protected void runClassLoadBreakpointTest(String src, String pack, String cunit,
* Creates an exception breakpoint and adds a filter. Refactors & checks
* if the filter changed appropriately w/ the refactor.
* @param src name of src file
- * @param pack
- * @param cunit
- * @param targetName
* @param exceptionName TODO
- * @throws Exception
*/
protected void runExceptionBreakpointTest(String src, String pack, String cunit, String targetName, String exceptionName) throws Exception {
try {
@@ -95,15 +83,6 @@ protected void runExceptionBreakpointTest(String src, String pack, String cunit,
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param lineNumber
- * @throws Exception
- */
protected void runLineBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, int lineNumber) throws Exception {
try {
//create breakpoint to test
@@ -125,15 +104,6 @@ protected void runLineBreakpointTest(String src, String pack, String cunit, Stri
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param methodName
- * @throws Exception
- */
protected void runMethodBreakpointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, String methodName) throws Exception {
try {
//create breakpoint to test
@@ -155,15 +125,6 @@ protected void runMethodBreakpointTest(String src, String pack, String cunit, St
}
}
- /**
- * @param src
- * @param pack
- * @param cunit
- * @param fullTargetName
- * @param targetLineage
- * @param fieldName
- * @throws Exception
- */
protected void runWatchPointTest(String src, String pack, String cunit, String fullTargetName, String targetLineage, String fieldName) throws Exception {
try {
//create breakpoint to test
@@ -187,12 +148,7 @@ protected void runWatchPointTest(String src, String pack, String cunit, String f
/**
*
- * @param root
- * @param packageName
- * @param cuName
* @param type TODO
- * @return
- * @throws Exception
*/
protected Refactoring setupRefactor(String root, String packageName, String cuName, String type) throws Exception {
IJavaProject javaProject = get14Project();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/Bug565462Tests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/Bug565462Tests.java
index 9dae3eef00..11baeb5bca 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/Bug565462Tests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/Bug565462Tests.java
@@ -15,8 +15,8 @@
import java.io.File;
import java.util.Arrays;
-import java.util.function.Predicate;
import java.util.Objects;
+import java.util.function.Predicate;
import java.util.stream.Stream;
import org.eclipse.core.resources.IncrementalProjectBuilder;
@@ -67,6 +67,7 @@ protected void setUp() throws Exception {
assertTrue("Default VM doesn't have source", hasSource.test(javaSE11.getDefaultVM()));
}
+ @Override
@After
public void tearDown() throws Exception {
javaSE11.setDefaultVM(defaultJavaSE11VM);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DefaultSourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DefaultSourceContainerTests.java
index 2244b745ef..084f9cf9ad 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DefaultSourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DefaultSourceContainerTests.java
@@ -30,8 +30,6 @@ public DefaultSourceContainerTests(String name) {
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testDefaultSourceContainerMemento() throws Exception {
JavaSourceLookupDirector director = new JavaSourceLookupDirector();
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DirectorySourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DirectorySourceContainerTests.java
index fb6ac6d128..c17f46b114 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DirectorySourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/DirectorySourceContainerTests.java
@@ -47,8 +47,6 @@ protected DirectorySourceContainer getContainer(boolean subfolders, boolean dupl
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testDirectorySourceContainerMemento() throws Exception {
DirectorySourceContainer container = getContainer(true, true);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ExternalArchiveSourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ExternalArchiveSourceContainerTests.java
index ac9c4125a7..50701355f9 100755
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ExternalArchiveSourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ExternalArchiveSourceContainerTests.java
@@ -42,9 +42,6 @@ public ExternalArchiveSourceContainerTests(String name) {
/**
* Returns the JREs source archive.
- *
- * @return
- * @throws Exception
*/
protected ExternalArchiveSourceContainer getContainer(boolean detect, boolean duplicates) throws Exception {
ISourceLookupDirector director = new JavaSourceLookupDirector();
@@ -81,8 +78,6 @@ protected ExternalArchiveSourceContainer getContainer(String path, boolean detec
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testArchiveSourceContainerMemento() throws Exception {
ExternalArchiveSourceContainer container = getContainer(true, false);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/FolderSourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/FolderSourceContainerTests.java
index b31db3d9f8..e5252c4fc7 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/FolderSourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/FolderSourceContainerTests.java
@@ -49,8 +49,6 @@ protected IFolder getFolder(FolderSourceContainer container) {
}
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testFolderSourceContainerMemento() throws Exception {
FolderSourceContainer container = getContainer(true, true);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JarSourceLookupTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JarSourceLookupTests.java
index df40b79562..ef885e13f9 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JarSourceLookupTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JarSourceLookupTests.java
@@ -61,7 +61,6 @@ public JarSourceLookupTests() {
/**
* Disposes all source containers after a test, ensures no containers are still holding open Jar references, which can lead to {@link ResourceException}s
* when we try to delete / setup following tests
- * @param containers
*/
void disposeContainers(ISourceContainer[] containers) {
if(containers != null) {
@@ -130,8 +129,6 @@ protected void tearDown() throws Exception {
* Ensures the translation of source containers yields the correct containers
*
* See https://bugs.eclipse.org/bugs/show_bug.cgi?id=346116
- *
- * @throws Exception
*/
public void testTranslateContainers() throws Exception {
createLaunchConfiguration(fgJarProject, LAUNCHCONFIGURATIONS, A_RUN_JAR);
@@ -187,8 +184,6 @@ public void testTranslateContainers() throws Exception {
* Tests that the class file is found as source when the lookup is done from a jar from another project
*
* See https://bugs.eclipse.org/bugs/show_bug.cgi?id=346116
- *
- * @throws Exception
*/
public void testInspectClassFileFromJar() throws Exception {
createLaunchConfiguration(fgJarProject, LAUNCHCONFIGURATIONS, A_RUN_JAR);
@@ -214,8 +209,6 @@ public void testInspectClassFileFromJar() throws Exception {
* Tests that the class file is found as source when the lookup is done from a jar from another project
*
* See https://bugs.eclipse.org/bugs/show_bug.cgi?id=346116
- *
- * @throws Exception
*/
public void testShowClassFileFromJar() throws Exception {
createLaunchConfiguration(fgJarProject, LAUNCHCONFIGURATIONS, A_RUN_JAR);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JavaProjectSourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JavaProjectSourceContainerTests.java
index b230cba698..b918e3f286 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JavaProjectSourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/JavaProjectSourceContainerTests.java
@@ -32,9 +32,6 @@ public JavaProjectSourceContainerTests(String name) {
/**
* Returns a Java project source container
- *
- * @return
- * @throws Exception
*/
protected JavaProjectSourceContainer getContainer(IJavaProject project, boolean duplicates) throws Exception {
ISourceLookupDirector director = new JavaSourceLookupDirector();
@@ -47,8 +44,6 @@ protected JavaProjectSourceContainer getContainer(IJavaProject project, boolean
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testSourceContainerMemento() throws Exception {
ISourceContainer container = getContainer(get14Project(), false);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ProjectSourceContainerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ProjectSourceContainerTests.java
index e8a69ef50a..fc17b91e61 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ProjectSourceContainerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/sourcelookup/ProjectSourceContainerTests.java
@@ -44,8 +44,6 @@ protected ProjectSourceContainer getContainer(boolean referenced, boolean duplic
/**
* Tests creation and restoring from a memento.
- *
- * @throws Exception
*/
public void testProjectSourceContainerMemento() throws Exception {
ProjectSourceContainer container = getContainer(true, true);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/state/RefreshStateTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/state/RefreshStateTests.java
index fdc293b5a6..464d31e813 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/state/RefreshStateTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/state/RefreshStateTests.java
@@ -16,7 +16,6 @@
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.model.ILineBreakpoint;
import org.eclipse.debug.core.model.IThread;
@@ -44,8 +43,6 @@ public RefreshStateTests(String name) {
/**
* Resume a thread behind the scenes and ensure model state updates appropriately.
- *
- * @throws CoreException
*/
public void testThreadHasResumed() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.CallLoop";
@@ -84,8 +81,6 @@ public void testThreadHasResumed() throws Exception {
/**
* Resume all threads behind the scenes and ensure model state updates appropriately.
- *
- * @throws CoreException
*/
public void testAllThreadsResumed() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.CallLoop";
@@ -127,8 +122,6 @@ public void testAllThreadsResumed() throws Exception {
/**
* Suspend a thread behind the scenes and ensure model state updates appropriately.
- *
- * @throws CoreException
*/
public void testThreadHasSuspended() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.CallLoop";
@@ -176,8 +169,6 @@ public void testThreadHasSuspended() throws Exception {
/**
* Suspend all threads behind the scenes and ensure model state updates appropriately.
- *
- * @throws CoreException
*/
public void testAllThreadsSuspended() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.CallLoop";
@@ -228,8 +219,6 @@ public void testAllThreadsSuspended() throws Exception {
/**
* Suspend the entire target behind the scenes and ensure model state updates appropriately.
- *
- * @throws CoreException
*/
public void testTargetHasSuspended() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.CallLoop";
@@ -276,8 +265,6 @@ public void testTargetHasSuspended() throws Exception {
/**
* Resume a target behind the scenes and ensure model state updates appropriately.
- *
- * @throws CoreException
*/
public void testTargetHasResumed() throws Exception {
String typeName = "org.eclipse.debug.tests.targets.CallLoop";
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugUiTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugUiTests.java
index ea6cb38ee7..e60d2ef6e8 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugUiTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugUiTests.java
@@ -104,9 +104,6 @@ protected void tearDown() throws Exception {
/**
* Switches to the specified perspective in the given window, and resets the perspective.
- *
- * @param window
- * @param perspectiveId
*/
protected static void switchPerspective(IWorkbenchWindow window, String perspectiveId) {
IPerspectiveDescriptor descriptor = PlatformUI.getWorkbench().getPerspectiveRegistry().findPerspectiveWithId(perspectiveId);
@@ -192,9 +189,6 @@ public static void processUiEvents(final long millis) throws RuntimeException {
/**
* Sync exec the given runnable, re-throwing exceptions in the current thread
- *
- * @param r
- * @throws Exception
*/
protected static void sync(Runnable r) throws RuntimeException {
AtomicReference error = new AtomicReference<>();
@@ -216,9 +210,6 @@ protected static void sync(Runnable r) throws RuntimeException {
/**
* Sync exec the given runnable, re-throwing exceptions in the current thread
- *
- * @param c
- * @throws Exception
*/
protected static V sync(Callable c) throws RuntimeException {
AtomicReference error = new AtomicReference<>();
@@ -286,7 +277,6 @@ private static T callInUi(Callable callable) throws RuntimeException {
/**
* Opens and returns an editor on the given file or null if none. The editor will be activated.
*
- * @param file
* @return editor or null
*/
protected static IEditorPart openEditor(final IFile file) throws RuntimeException {
@@ -306,8 +296,6 @@ protected IJavaLineBreakpoint createLineBreakpoint(int lineNumber, IEditorPart e
/**
* Toggles a breakpoint in the editor at the given line number returning the breakpoint or null if none.
*
- * @param editor
- * @param lineNumber
* @return returns the created breakpoint or null if none.
*/
protected IBreakpoint toggleBreakpoint(final IEditorPart editor, int lineNumber) throws Exception {
@@ -371,7 +359,6 @@ protected static void closeAllEditors() throws RuntimeException {
/**
* Opens the view with the given id, does nothing if no such view exists. This method can return null
*
- * @param viewId
* @return the handle to the {@link IDebugView} with the given id
*/
protected static IViewPart openView(final String viewId) throws RuntimeException {
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugViewTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugViewTests.java
index 843f239e13..6875dff31b 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugViewTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/AbstractDebugViewTests.java
@@ -35,7 +35,6 @@
import org.eclipse.jdt.debug.core.IJavaThread;
import org.eclipse.jdt.debug.testplugin.DebugElementKindEventDetailWaiter;
import org.eclipse.jdt.debug.testplugin.DebugEventWaiter;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.debug.tests.TestUtil;
import org.eclipse.jdt.debug.ui.IJavaDebugUIConstants;
import org.eclipse.jdt.internal.debug.core.model.JDIStackFrame;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/Accessor.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/Accessor.java
deleted file mode 100644
index e5c4134e4c..0000000000
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/Accessor.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011, 2012 IBM Corporation and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jdt.debug.tests.ui;
-
-import java.lang.reflect.Constructor;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-
-import org.eclipse.core.runtime.Assert;
-
-/**
- * Helper class for accessing classes and members which cannot be accessed using standard Java
- * access control like private or package visible elements.
- *
- * @since 3.7
- */
-public class Accessor {
-
- /** The class to access. */
- private final Class> fClass;
- /** The instance to access. */
- private Object fInstance;
-
- /**
- * Creates an accessor for the given instance and class. Only
- * non-inherited members that particular class can be accessed.
- *
- * @param instance
- * the instance
- * @param clazz
- * the class
- */
- public Accessor(Object instance, Class> clazz) {
- org.eclipse.core.runtime.Assert.isNotNull(instance);
- Assert.isNotNull(clazz);
- fInstance = instance;
- fClass = clazz;
- }
-
- /**
- * Creates an accessor for the given instance and class. Only
- * non-inherited members that particular class can be accessed.
- *
- * @param instance
- * the instance
- * @param className
- * the name of the class
- * @param classLoader
- * the class loader to use i.e. getClass().getClassLoader()
- */
- public Accessor(Object instance, String className, ClassLoader classLoader) throws ClassNotFoundException {
- Assert.isNotNull(instance);
- Assert.isNotNull(className);
- Assert.isNotNull(classLoader);
- fInstance = instance;
-
- fClass = Class.forName(className, true, classLoader);
- }
-
- /**
- * Creates an accessor for the given class.
- *
- * In order to get the type information from the given arguments they must all be instanceof
- * Object. Use {@link #Accessor(String, ClassLoader, Class[], Object[])} if this is not the
- * case.
- *
- *
- * @param className
- * the name of the class
- * @param classLoader
- * the class loader to use i.e. getClass().getClassLoader()
- * @param constructorArgs
- * the constructor arguments which must all be instance of Object
- */
- public Accessor(String className, ClassLoader classLoader, Object[] constructorArgs) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {
- this(className, classLoader, getTypes(constructorArgs), constructorArgs);
- }
-
- /**
- * Creates an accessor for the given class.
- *
- * @param className
- * the name of the class
- * @param classLoader
- * the class loader to use i.e. getClass().getClassLoader()
- * @param constructorTypes
- * the types of the constructor arguments
- * @param constructorArgs
- * the constructor arguments
- */
- public Accessor(String className, ClassLoader classLoader, Class>[] constructorTypes, Object[] constructorArgs) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException {
- fClass = Class.forName(className, true, classLoader);
-
- Constructor> constructor = fClass.getDeclaredConstructor(constructorTypes);
-
- Assert.isNotNull(constructor);
- constructor.setAccessible(true);
- fInstance = constructor.newInstance(constructorArgs);
- }
-
- /**
- * Creates an accessor for the given class.
- *
- * This constructor is used to access static stuff.
- *
- *
- * @param className
- * the name of the class
- * @param classLoader
- * the class loader to use i.e. getClass().getClassLoader()
- */
- public Accessor(String className, ClassLoader classLoader) throws ClassNotFoundException {
- fClass = Class.forName(className, true, classLoader);
- }
-
- /**
- * Creates an accessor for the given class.
- *
- * This constructor is used to access static stuff.
- *
- *
- * @param clazz
- * the class
- */
- public Accessor(Class> clazz) {
- Assert.isNotNull(clazz);
- fClass = clazz;
- }
-
- /**
- * Invokes the method with the given method name and arguments.
- *
- * In order to get the type information from the given arguments all those arguments must be instance of Object. Use
- * {@link #invoke(String, Class[], Object[])} if this is not the case.
- *
- *
- * @param methodName
- * the method name
- * @param arguments
- * the method arguments which must all be instance of Object
- * @return the method return value
- */
- public Object invoke(String methodName, Object[] arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException {
- return invoke(methodName, getTypes(arguments), arguments);
- }
-
- /**
- * Invokes the method with the given method name and arguments.
- *
- * @param methodName
- * the method name
- * @param types
- * the argument types
- * @param arguments
- * the method arguments
- */
- public Object invoke(String methodName, Class>[] types, Object[] arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException {
- Method method = null;
- method = fClass.getDeclaredMethod(methodName, types);
-
- Assert.isNotNull(method);
- method.setAccessible(true);
- return method.invoke(fInstance, arguments);
- }
-
- /**
- * Assigns the given value to the field with the given name.
- *
- * @param fieldName
- * the field name
- * @param value
- * the value to assign to the field
- */
- public void set(String fieldName, Object value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
- Field field = getField(fieldName);
- field.set(fInstance, value);
- }
-
- /**
- * Assigns the given value to the field with the given name.
- *
- * @param fieldName
- * the field name
- * @param value
- * the value to assign to the field
- */
- public void set(String fieldName, boolean value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
- Field field = getField(fieldName);
- field.setBoolean(fInstance, value);
- }
-
- /**
- * Assigns the given value to the field with the given name.
- *
- * @param fieldName
- * the field name
- * @param value
- * the value to assign to the field
- */
- public void set(String fieldName, int value) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
- Field field = getField(fieldName);
- field.setInt(fInstance, value);
- }
-
- /**
- * Returns the value of the field with the given name.
- *
- * @param fieldName
- * the field name
- * @return the value of the field
- */
- public Object get(String fieldName) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
- Field field = getField(fieldName);
- return field.get(fInstance);
- }
-
- /**
- * Returns the value of the field with the given name.
- *
- * @param fieldName
- * the field name
- * @return the value of the field
- */
- public boolean getBoolean(String fieldName) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
- Field field = getField(fieldName);
- return field.getBoolean(fInstance);
- }
-
- /**
- * Returns the value of the field with the given name.
- *
- * @param fieldName
- * the field name
- * @return the value of the field
- */
- public int getInt(String fieldName) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException {
- Field field = getField(fieldName);
- return field.getInt(fInstance);
- }
-
- public Field getField(String fieldName) throws NoSuchFieldException, SecurityException {
- Field field = fClass.getDeclaredField(fieldName);
- field.setAccessible(true);
- return field;
- }
-
- private static Class>[] getTypes(Object[] objects) {
- if (objects == null) {
- return null;
- }
-
- int length = objects.length;
- Class>[] classes = new Class[length];
- for (int i = 0; i < length; i++) {
- Assert.isNotNull(objects[i]);
- classes[i] = objects[i].getClass();
- }
- return classes;
- }
-
-}
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DebugViewTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DebugViewTests.java
index ed315d8465..5f6c49aa9e 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DebugViewTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DebugViewTests.java
@@ -20,7 +20,6 @@
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.jdt.debug.core.IJavaStackFrame;
import org.eclipse.jdt.debug.core.IJavaThread;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.debug.ui.IJavaDebugUIConstants;
import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
import org.eclipse.jface.preference.IPreferenceStore;
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DetailPaneManagerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DetailPaneManagerTests.java
index e2a5c33144..35d66416dd 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DetailPaneManagerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/DetailPaneManagerTests.java
@@ -45,7 +45,6 @@ public class DetailPaneManagerTests extends AbstractDebugTest {
/**
* Initializes the test class and gets the singleton detail pane manager.
- * @param name
*/
public DetailPaneManagerTests(String name) {
super(name);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/InstructionPointerManagerTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/InstructionPointerManagerTests.java
index 21f33f30e6..ae5dcf7abd 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/InstructionPointerManagerTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/InstructionPointerManagerTests.java
@@ -179,7 +179,6 @@ public void run() {
*
* @param expectedIPCCounts array of expected values for IPC count at each step as marked above, length must be 8
* @param expectedMappingCounts array of expected values for editor mapping count at each step as marked above, length must be 8
- * @throws Exception
*/
private void addAndRemoveAnnotations(int[] expectedIPCCounts, int[] expectedMappingCounts) throws Exception{
assertEquals("Incorrect number of expected counts", 8, expectedIPCCounts.length);
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java
index 2e27a74e32..37f2537aa1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java
@@ -33,7 +33,6 @@
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.debug.testplugin.JavaProjectHelper;
import org.eclipse.jdt.debug.testplugin.JavaTestPlugin;
-import org.eclipse.jdt.debug.tests.TestAgainException;
import org.eclipse.jdt.debug.tests.TestUtil;
import org.eclipse.jdt.internal.core.JavaModelManager;
import org.eclipse.jdt.internal.debug.ui.actions.OpenFromClipboardAction;
@@ -79,8 +78,6 @@ public class OpenFromClipboardTests {
private IPackageFragmentRoot fSourceFolder;
- private final Accessor fAccessor = new Accessor(OpenFromClipboardAction.class);
-
public static IJavaProject fJProject;
@Rule
@@ -134,15 +131,13 @@ public void tearDown() throws Exception {
}
private int getMatachingPattern(String s) throws Exception {
- Object returnValue = fAccessor.invoke("getMatchingPattern", new Object[] { s });
- return ((Integer) returnValue).intValue();
+ return OpenFromClipboardAction.getMatchingPattern(s);
}
private List> getJavaElementMatches(final String textData) throws Exception {
JavaModelManager.getIndexManager().waitForIndex(false, null);
- final List> matches = new ArrayList<>();
- Display.getDefault().syncCall(() -> fAccessor.invoke("getJavaElementMatches", new Class[] { String.class, List.class }, new Object[] {
- textData, matches }));
+ final List
- *
*/
public interface IJavaDebugHelpContextIds {
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
index c802cdfced..2be9d28c7a 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
@@ -682,8 +682,6 @@ public static void showPreferencePage(String pageId) {
/**
* Returns the text tools used by this plug-in
- *
- * @return
*/
public JavaTextTools getJavaTextTools() {
if (fTextTools == null) {
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIImageDescriptor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIImageDescriptor.java
index 1897c4c1fa..02a2086f47 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIImageDescriptor.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIImageDescriptor.java
@@ -76,7 +76,6 @@ public class JDIImageDescriptor extends CompositeImageDescriptor {
*
* @param baseImage an image descriptor used as the base image
* @param flags flags indicating which adornments are to be rendered
- *
*/
public JDIImageDescriptor(ImageDescriptor baseImage, int flags) {
setBaseImage(baseImage);
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java
index 1f186ff171..ff0c58e28c 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java
@@ -773,10 +773,6 @@ private synchronized void initImageRegistries() {
}
}
- /**
- * @param thread
- * @return
- */
private Image getJavaWaitingThreadImage(JavaWaitingThread thread) {
JDIImageDescriptor descriptor;
int flag= JDIImageDescriptor.IN_CONTENTION_FOR_MONITOR | (thread.getThread().isInDeadlock() ? JDIImageDescriptor.IN_DEADLOCK : 0);
@@ -788,10 +784,6 @@ private Image getJavaWaitingThreadImage(JavaWaitingThread thread) {
return getDebugImageRegistry().get(descriptor);
}
- /**
- * @param thread
- * @return
- */
private Image getJavaOwningThreadImage(JavaOwningThread thread) {
JDIImageDescriptor descriptor;
int flag= JDIImageDescriptor.OWNS_MONITOR | (thread.getThread().isInDeadlock() ? JDIImageDescriptor.IN_DEADLOCK : 0);
@@ -803,10 +795,6 @@ private Image getJavaOwningThreadImage(JavaOwningThread thread) {
return getDebugImageRegistry().get(descriptor);
}
- /**
- * @param monitor
- * @return
- */
private Image getJavaContendedMonitorImage(JavaContendedMonitor monitor) {
int flag= monitor.getMonitor().isInDeadlock() ? JDIImageDescriptor.IN_DEADLOCK : 0;
JDIImageDescriptor descriptor= new JDIImageDescriptor(
@@ -814,10 +802,6 @@ private Image getJavaContendedMonitorImage(JavaContendedMonitor monitor) {
return getDebugImageRegistry().get(descriptor);
}
- /**
- * @param monitor
- * @return
- */
private Image getJavaOwnedMonitorImage(JavaOwnedMonitor monitor) {
int flag= monitor.getMonitor().isInDeadlock() ? JDIImageDescriptor.IN_DEADLOCK : 0;
JDIImageDescriptor descriptor= new JDIImageDescriptor(getImageDescriptor(JavaDebugImages.IMG_OBJS_OWNED_MONITOR), flag);
@@ -952,7 +936,6 @@ protected Image getVariableImage(IAdaptable element) {
* Returns the image associated with reference variables being used to display
* references to a root object.
*
- * @param element
* @return image associated with reference variables
*/
protected Image getReferencesImage(Object element){
@@ -963,7 +946,6 @@ protected Image getReferencesImage(Object element){
* Returns the image associated with reference variables being used to display
* references to a root object.
*
- * @param element
* @return image associated with reference variables
*/
protected Image getReferenceImage(Object element){
@@ -1341,7 +1323,6 @@ private void appendTypeName(IJavaValue javaValue, StringBuilder buff) {
* Returns text for the given value based on user preferences to display
* toString() details.
*
- * @param javaValue
* @return text
*/
public String getFormattedValueText(IJavaValue javaValue) {
@@ -1609,10 +1590,6 @@ protected String getBreakpointText(IBreakpoint breakpoint) {
}
}
- /**
- * @param breakpoint
- * @return
- */
private String getJavaStratumLineBreakpointText(IJavaStratumLineBreakpoint breakpoint) throws CoreException {
IMember member= BreakpointUtils.getMember(breakpoint);
String sourceName = breakpoint.getSourceName();
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java
index e6b5a706cd..c23df9d2f1 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaDebugHover.java
@@ -236,7 +236,6 @@ private static JDIModelPresentation getModelPresentation() {
* Returns the value of this filters preference (on/off) for the given
* view.
*
- * @param part
* @return boolean
*/
public static boolean getBooleanPreferenceValue(String id, String preference) {
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java
index 40b0bceba3..7a8378ff98 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java
@@ -35,9 +35,6 @@
import org.eclipse.jdt.internal.debug.core.model.JDIThread;
import org.eclipse.jdt.internal.debug.ui.display.JavaInspectExpression;
-/**
- *
- */
public class JavaWatchExpressionDelegate implements IWatchExpressionDelegate {
private String fExpressionText;
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java
index 4c133bc6da..1358216053 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java
@@ -51,7 +51,6 @@ public class AddFolderAction extends RuntimeClasspathAction {
* provides a filter to remove the files from the ElementSelectionDialog
*
* @since 3.2
- *
*/
static class FileFilter extends ViewerFilter {
@Override
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointLocationVerifierJob.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointLocationVerifierJob.java
index ffa0837d65..f3ccdd9905 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointLocationVerifierJob.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointLocationVerifierJob.java
@@ -91,14 +91,6 @@ public class BreakpointLocationVerifierJob extends Job {
/**
* Constructor
- * @param document
- * @param cunit
- * @param breakpoint
- * @param lineNumber
- * @param typeName
- * @param type
- * @param editorPart
- * @param bestmatch
*/
public BreakpointLocationVerifierJob(IDocument document, CompilationUnit cunit, IJavaLineBreakpoint breakpoint, int lineNumber, String typeName, IType type, IEditorPart editorPart, boolean bestmatch) {
super(ActionMessages.BreakpointLocationVerifierJob_breakpoint_location);
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointToggleAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointToggleAction.java
index 4afc2e420b..9e9b67de58 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointToggleAction.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointToggleAction.java
@@ -126,7 +126,6 @@ protected void setStructuredSelection(IStructuredSelection selection) {
/**
* Returns if the underlying action should be enabled for the given selection
- * @param selection
* @return if the underlying action should be enabled for the given selection
*/
public abstract boolean isEnabledFor(IStructuredSelection selection);
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EvaluateAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EvaluateAction.java
index ca23f88536..e19df318b2 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EvaluateAction.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/EvaluateAction.java
@@ -798,8 +798,6 @@ protected void setEvaluating(boolean evaluating) {
/**
* Returns the selected text region, or null if none.
- *
- * @return
*/
protected IRegion getRegion() {
return fRegion;
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ForceReturnAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ForceReturnAction.java
index 157fe220ea..33bf83a1c8 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ForceReturnAction.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ForceReturnAction.java
@@ -69,7 +69,7 @@ public void run() {
IJavaStackFrame frame = fTargetFrame;
IJavaValue value = result.getValue();
frame.forceReturn(value);
- if (!Signature.SIG_VOID.equals(value)) {
+ if (!Signature.SIG_VOID.equals(value.getSignature())) {
display.asyncExec(new Runnable() {
@Override
public void run() {
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.java
index 3225322d4f..e804c72ff1 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.java
@@ -72,7 +72,6 @@ public void selectionChanged(IAction action, ISelection selection) {
/**
* Allows the underlying breakpoint for the properties page to be set
- * @param breakpoint
*/
public void setBreakpoint(IJavaBreakpoint breakpoint) {
fBreakpoint = breakpoint;
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaPrimitiveValueEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaPrimitiveValueEditor.java
index bfda53370f..bb658661ab 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaPrimitiveValueEditor.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaPrimitiveValueEditor.java
@@ -256,9 +256,6 @@ private boolean isHexDigit(char ch) {
* represents an octal or hexadecimal escape sequence. Returns
* Integer.MAX_VALUE if the given string is not a valid octal or
* hexadecimal escape sequence.
- *
- * @param string
- * @return
*/
protected int getEscapeValue(String string) {
return ASTInstructionCompiler.parseIntValue(string);
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ObjectActionDelegate.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ObjectActionDelegate.java
index ba4c48f43a..ffa6195416 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ObjectActionDelegate.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ObjectActionDelegate.java
@@ -70,8 +70,6 @@ protected IStructuredSelection getCurrentSelection() {
/**
* Displays the given error message in the status line.
- *
- * @param message
*/
protected void showErrorMessage(String message) {
if (fPart instanceof IViewPart) {
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/OpenFromClipboardAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/OpenFromClipboardAction.java
index 25a38dbba0..aac6b95cac 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/OpenFromClipboardAction.java
+++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/OpenFromClipboardAction.java
@@ -253,7 +253,7 @@ private static boolean isSingleLineInput(String inputText) {
return s.indexOf(lineDelimiter) == -1;
}
- private static int getMatchingPattern(String s) {
+ public static int getMatchingPattern(String s) {
if (s.matches(JAVA_FILE_LINE_PATTERN)) {
return JAVA_FILE_LINE;
}
@@ -302,7 +302,7 @@ private static void handleSingleLineInput(String inputText) {
* @return the line number
* @throws InterruptedException if canceled by the user
*/
- private static int getJavaElementMatches(String inputText, List