Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-07-20 19:35:06 +0000
committerAlexander Kurtakov2017-07-20 19:38:01 +0000
commitf5c32aad77cc1028c986e525a81fd9c8405c1480 (patch)
tree5815ac374f0e658dc47e5841890e7b6d994323bb
parent3d91a03ab7864953c8e774d2fe6f3bf8be2d35ec (diff)
downloadeclipse.platform.team-f5c32aad77cc1028c986e525a81fd9c8405c1480.tar.gz
eclipse.platform.team-f5c32aad77cc1028c986e525a81fd9c8405c1480.tar.xz
eclipse.platform.team-f5c32aad77cc1028c986e525a81fd9c8405c1480.zip
Remove unnecessary casts.
And non-javadoc comments as spotted. Change-Id: I308e2d97fc3e2b9892326fa811e7076627b263ad Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSChangeSetTests.java4
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/ParticipantSyncInfoSource.java10
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java8
3 files changed, 6 insertions, 16 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSChangeSetTests.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSChangeSetTests.java
index 7c03fdd71..2e0f9f82f 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSChangeSetTests.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSChangeSetTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -287,7 +287,7 @@ public class CVSChangeSetTests extends CVSSyncSubscriberTest {
private SyncInfo getSyncInfo(ISynchronizeModelElement node) {
if (node instanceof IAdaptable) {
- return (SyncInfo)((IAdaptable)node).getAdapter(SyncInfo.class);
+ return ((IAdaptable)node).getAdapter(SyncInfo.class);
}
return null;
}
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/ParticipantSyncInfoSource.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/ParticipantSyncInfoSource.java
index 2928d5fe3..257c34699 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/ParticipantSyncInfoSource.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/ParticipantSyncInfoSource.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -47,15 +47,12 @@ public class ParticipantSyncInfoSource extends SyncInfoSource {
}
protected SyncInfoToDiffConverter getConverter(Subscriber subscriber) {
- SyncInfoToDiffConverter converter = (SyncInfoToDiffConverter)Adapters.adapt(subscriber, SyncInfoToDiffConverter.class);
+ SyncInfoToDiffConverter converter = Adapters.adapt(subscriber, SyncInfoToDiffConverter.class);
if (converter == null)
converter = SyncInfoToDiffConverter.getDefault();
return converter;
}
- /* (non-Javadoc)
- * @see org.eclipse.team.tests.ccvs.core.subscriber.SyncInfoSource#tearDown()
- */
public void tearDown() {
ISynchronizeParticipantReference[] participants = TeamUI.getSynchronizeManager().getSynchronizeParticipants();
for (int i = 0; i < participants.length; i++) {
@@ -94,9 +91,6 @@ public class ParticipantSyncInfoSource extends SyncInfoSource {
// Default is to do nothing. Subclasses may override
}
- /* (non-Javadoc)
- * @see org.eclipse.team.tests.ccvs.core.subscriber.SyncInfoSource#refresh(org.eclipse.team.core.subscribers.Subscriber, org.eclipse.core.resources.IResource[])
- */
public void refresh(Subscriber subscriber, IResource[] resources)
throws TeamException {
super.refresh(subscriber, resources);
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java
index 7e98e0258..50e88e7cc 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -130,9 +130,6 @@ public abstract class BenchmarkTest extends EclipseTest {
setModelSync(false);
}
- /* (non-Javadoc)
- * @see org.eclipse.team.tests.ccvs.core.EclipseTest#tearDown()
- */
protected void tearDown() throws Exception {
try {
if (groups != null) {
@@ -221,8 +218,7 @@ public abstract class BenchmarkTest extends EclipseTest {
protected void openEmptyPerspective() throws WorkbenchException {
// First close any open perspectives
- IHandlerService handlerService = (IHandlerService) PlatformUI.getWorkbench()
- .getService(IHandlerService.class);
+ IHandlerService handlerService = PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
handlerService.executeCommand(
"org.eclipse.ui.window.closeAllPerspectives", null);

Back to the top