Skip to content

Commit

Permalink
Fix several Javadoc errors
Browse files Browse the repository at this point in the history
* Remove invalid @return statements
* Replace or remove invalid @see annotations
* Fix faulty method references
* Fix missing qualification of type references
* Remove obsolete exception specification in test documentations
  • Loading branch information
HeikoKlare committed Nov 29, 2023
1 parent 9018893 commit 81042f5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ public void tearDown() throws Exception {
/**
* Ensure the welcome screen is closed because in 4.x the debug perspective
* opens a giant fast-view causing issues
*
* @throws Exception
*/
protected final void assertWelcomeScreenClosed() throws Exception {
if (!welcomeClosed && PlatformUI.isWorkbenchRunning()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ public void setIgnoreFixedConsole(boolean ignoreWrappeding) {
}

/**
* Get identifier for output {@code IOConsolePartition}s.
* Get identifier for output
* {@code org.eclipse.ui.internal.console.IOConsolePartition}s.
*
* @return output partition identifier
*/
Expand All @@ -788,7 +789,8 @@ public static String outputPartitionType() {
}

/**
* Get identifier for input {@code IOConsolePartition}s.
* Get identifier for input
* {@code org.eclipse.ui.internal.console.IOConsolePartition}s.
*
* @return input partition identifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ public void launchesTerminated(ILaunch[] launches) {
* Tests that a launch is properly registered for notifications before a
* process is spawned and may already propagate a termination event.
*
* see <a href="https://github.com/eclipse-platform/eclipse.platform/issues/598">598</a>
* @see <a href="https://github.com/eclipse-platform/eclipse.platform/issues/598">598</a>
*/
@Test
public void testTerminateLaunchListener_Issue598() throws Exception {
Expand Down Expand Up @@ -1453,8 +1453,6 @@ public void addProcess(IProcess process) {
/**
* Tests that attributes in a nested map are persisted in alphabetical
* order.
*
* @throws CoreException
*/
@Test
public void testMapAttributePersistence() throws CoreException, IOException {
Expand Down Expand Up @@ -1536,8 +1534,6 @@ public void testMapAttributePersistence() throws CoreException, IOException {
/**
* Tests that attributes in a nested set are persisted in alphabetical
* order.
*
* @throws CoreException
*/
@Test
public void testSetAttributePersistence() throws CoreException, IOException {
Expand Down Expand Up @@ -1662,8 +1658,6 @@ public void testIllegalCharName() {
/**
* Test that moving and renaming a shared configuration at the same time
* works.
*
* @throws CoreException
*/
@Test
public void testRenameAndMoveShared() throws CoreException {
Expand Down Expand Up @@ -1691,8 +1685,6 @@ public void testRenameAndMoveShared() throws CoreException {
*
* Bug 381175 - [patch] launchConfigurationTypeImage to support platform:
* style icons
*
* @throws Exception
*/
@Test
public void testGetTypeImageFromURI() throws Exception {
Expand All @@ -1703,8 +1695,6 @@ public void testGetTypeImageFromURI() throws Exception {

/**
* Test support for a declared launch configuration type image
*
* @throws Exception
*/
@Test
public void testGetTyeImage() throws Exception {
Expand All @@ -1716,10 +1706,7 @@ public void testGetTyeImage() throws Exception {
/**
* Tests that we can get a project handle from a project name
*
* see
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
*
* @throws Exception
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
* @since 3.9.0
*/
@Test
Expand All @@ -1741,10 +1728,7 @@ public void testGetProjectMappedResource1() throws Exception {
/**
* Tests that we cannot get a project handle from a bogus project name
*
* see
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
*
* @throws Exception
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
* @since 3.9.0
*/
@Test
Expand All @@ -1765,10 +1749,7 @@ public void testGetProjectMappedResource2() throws Exception {
/**
* Tests that we cannot get a project handle from a bogus project name
*
* see
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
*
* @throws Exception
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
* @since 3.9.0
*/
@Test
Expand All @@ -1794,10 +1775,7 @@ public void testGetProjectMappedResource3() throws Exception {
/**
* Tests that we can get a project handle from an absolute project name
*
* see
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
*
* @throws Exception
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395441">395441</a>
* @since 3.9.0
*/
@Test
Expand All @@ -1819,10 +1797,7 @@ public void testGetProjectMappedResource4() throws Exception {
* Tests that a launch created without a backing
* {@link ILaunchConfiguration} does not cause {@link NullPointerException}s
*
* see
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=416691">416691</a>
*
* @throws Exception
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=416691">416691</a>
* @since 3.9.0
*/
@Test
Expand Down Expand Up @@ -1865,8 +1840,6 @@ protected void setResourceMappings(ILaunchConfigurationWorkingCopy config, Resou

/**
* Test copying attributes from one configuration to another.
*
* @throws CoreException
*/
@Test
public void testCopyAttributes() throws CoreException {
Expand All @@ -1881,8 +1854,6 @@ public void testCopyAttributes() throws CoreException {

/**
* Tests that creation from a prototype works.
*
* @throws CoreException
*/
@Test
public void testCreationFromPrototype() throws CoreException {
Expand All @@ -1899,8 +1870,6 @@ public void testCreationFromPrototype() throws CoreException {

/**
* Tests setting the 'isPrototype' attribute.
*
* @throws CoreException
*/
@Test
public void testIsPrototype() throws CoreException {
Expand All @@ -1916,8 +1885,6 @@ public void testIsPrototype() throws CoreException {

/**
* Tests finding references to a prototype.
*
* @throws CoreException
*/
@Test
public void testPrototypeChildren() throws CoreException {
Expand Down Expand Up @@ -1946,8 +1913,6 @@ public void testPrototypeChildren() throws CoreException {
/**
* Tests that when an attribute is removed from a working copy, it does not
* get inherited from its prototype.
*
* @throws CoreException
*/
@Test
public void testPrototypeRemoveBehavior() throws CoreException {
Expand All @@ -1971,8 +1936,6 @@ public void testPrototypeRemoveBehavior() throws CoreException {
/**
* Tests that setting a configuration's prototype to null cleans its
* prototype association.
*
* @throws CoreException
*/
@Test
public void testUnPrototype() throws CoreException {
Expand All @@ -1995,8 +1958,6 @@ public void testUnPrototype() throws CoreException {

/**
* Tests that nested prototypes are not allowed.
*
* @throws CoreException
*/
@Test
public void testNestedPrototypes() throws CoreException {
Expand All @@ -2013,8 +1974,6 @@ public void testNestedPrototypes() throws CoreException {

/**
* Test that you cannot set a config's prototype to be a non-prototype.
*
* @throws CoreException
*/
@Test
public void testIllegalPrototype() throws CoreException {
Expand All @@ -2032,8 +1991,6 @@ public void testIllegalPrototype() throws CoreException {

/**
* Test that a prototype can be duplicated (and results in a prototype).
*
* @throws CoreException
*/
@Test
public void testCopyPrototype() throws CoreException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ void hasCancellingLaunches(int count) {
* Tests if a launch is properly removed from the launch manager when
* #preLaunchCheck is cancelled
*
* @throws Exception see <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=437122">437122</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=437122">437122</a>
* @since 3.9.100
*/
@Test
Expand All @@ -319,8 +318,7 @@ public void testCancelledPreLaunchCheck() throws Exception {
* Tests if a launch is properly removed from the launch manager when
* #finalLaunchCheck is cancelled
*
* @throws Exception see <a
* href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=437122">437122</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=437122">437122</a>
* @since 3.9.100
*/
@Test
Expand All @@ -344,8 +342,7 @@ public void testCancelledFinalLaunchCheck() throws Exception {
* Tests if a launch is properly removed from the launch manager when
* #buildFoLaunch is cancelled
*
* @throws Exception see <a
* href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=437122">437122</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=437122">437122</a>
* @since 3.9.100
*/
@Test
Expand Down Expand Up @@ -444,8 +441,7 @@ private ILaunchConfiguration getThrowingConfiguration(ThrowingEnum throwingEnum)
* Tests if a launch is properly removed from the launch manager when
* <i>throwingEnum</i> method throws exception
*
* @throws Exception see <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
*/
private void testThrowingLaunchDelegateMethod(ThrowingEnum throwingEnum) throws Exception {
ILaunchConfiguration config = getThrowingConfiguration(throwingEnum);
Expand All @@ -468,8 +464,7 @@ private void testThrowingLaunchDelegateMethod(ThrowingEnum throwingEnum) throws
* Tests if a launch is properly removed from the launch manager when
* #preLaunchCheck throws exception
*
* @throws Exception see <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
*/
@Test
public void testThrowingPreLaunchCheck() throws Exception {
Expand All @@ -480,8 +475,7 @@ public void testThrowingPreLaunchCheck() throws Exception {
* Tests if a launch is properly removed from the launch manager when
* #finalLaunchCheck throws exception
*
* @throws Exception see <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
*/
@Test
public void testThrowingFinalLaunchCheck() throws Exception {
Expand All @@ -492,8 +486,7 @@ public void testThrowingFinalLaunchCheck() throws Exception {
* Tests if a launch is properly removed from the launch manager when
* #buildFoLaunch throws exception
*
* @throws Exception see <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
*/
@Test
public void testThrowingBuildForLaunch() throws Exception {
Expand All @@ -504,8 +497,7 @@ public void testThrowingBuildForLaunch() throws Exception {
* Tests if a launch is properly removed from the launch manager when
* #buildFoLaunch throws exception
*
* @throws Exception see <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
* @see <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=578302">578302</a>
*/
@Test
public void testThrowingLaunch() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,6 @@ public void testInsertAtInvalidIndex() throws Exception {
/**
* This test forces the viewer to reschedule pending content updates due to
* a remove event from the model.
*
* see org.eclipse.debug.internal.ui.viewers.model.TreeModelContentProvider#rescheduleUpdates
*/
@Test
public void testRescheduleUpdates() throws Exception {
Expand Down Expand Up @@ -537,8 +535,6 @@ public void testCanceledUpdates4() throws Exception {
* <p>
* See Bug 373790 - Debug view stays busy after Resume
* </p>
*
* see org.eclipse.debug.internal.ui.viewers.model.TreeModelContentProvider#rescheduleUpdates
*/
@Test
public void testCancelUpdatesOnRemoveElementWhileUpdatingSubTree() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,6 @@ protected void resolveChildren() {
/**
* Override parent behavior to add support for HEAD &amp; Title element in pages
* only, and not in divs.
*
* @see org.eclipse.ui.internal.intro.impl.model.AbstractIntroContainer#getModelChild(Element, Bundle, String)
*/
@Override
protected AbstractIntroElement getModelChild(Element childElement,
Expand Down

0 comments on commit 81042f5

Please sign in to comment.