|
From: <mir...@us...> - 2007-03-09 17:20:41
|
Revision: 2121
http://svn.sourceforge.net/rubyeclipse/?rev=2121&view=rev
Author: mirkostocker
Date: 2007-03-09 09:20:36 -0800 (Fri, 09 Mar 2007)
Log Message:
-----------
code cleanup: remove unnecessary casts, organize imports
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionContext.java
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/DeltaProcessor.java
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelOperation.java
trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/ThreadInfoReader.java
trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/launcher/LoadPathEntryLabelProvider.java
trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/AddVMDialog.java
trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/LibraryStandin.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/DefaultProjectLoadpathEntry.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingPlugin.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMRuntimeLoadpathEntryResolver.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMType.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/VMDefinitionsContainer.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractVMRunner.java
trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java
trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionContext.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionContext.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/codeassist/CompletionContext.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -3,8 +3,6 @@
import org.rubypeople.rdt.core.IRubyScript;
import org.rubypeople.rdt.core.RubyModelException;
-import com.sun.org.apache.xpath.internal.operations.Gte;
-
public class CompletionContext {
private IRubyScript script;
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/DeltaProcessor.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/DeltaProcessor.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/DeltaProcessor.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -190,7 +190,7 @@
public void updateRubyModel(IRubyElementDelta customDelta) {
if (customDelta == null) {
for (int i = 0, length = this.rubyModelDeltas.size(); i < length; i++) {
- IRubyElementDelta delta = (IRubyElementDelta) this.rubyModelDeltas.get(i);
+ IRubyElementDelta delta = this.rubyModelDeltas.get(i);
this.modelUpdater.processRubyDelta(delta);
}
} else {
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelOperation.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelOperation.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelOperation.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -389,7 +389,7 @@
* Returns an empty stack if no operations are currently running in this thread.
*/
protected ArrayList<RubyModelOperation> getCurrentOperationStack() {
- ArrayList<RubyModelOperation> stack = (ArrayList<RubyModelOperation>)operationStacks.get();
+ ArrayList<RubyModelOperation> stack = operationStacks.get();
if (stack == null) {
stack = new ArrayList<RubyModelOperation>();
operationStacks.set(stack);
@@ -585,7 +585,7 @@
}
}
- RubyModelOperation topLevelOp = (RubyModelOperation)getCurrentOperationStack().get(0);
+ RubyModelOperation topLevelOp = getCurrentOperationStack().get(0);
IPostAction[] postActions = topLevelOp.actions;
if (postActions == null) {
topLevelOp.actions = postActions = new IPostAction[1];
@@ -640,7 +640,7 @@
System.out.println("(" + Thread.currentThread() + ") [RubyModelOperation.removeAllPostAction(String)] Removing actions " + actionID); //$NON-NLS-1$ //$NON-NLS-2$
}
- RubyModelOperation topLevelOp = (RubyModelOperation)getCurrentOperationStack().get(0);
+ RubyModelOperation topLevelOp = getCurrentOperationStack().get(0);
IPostAction[] postActions = topLevelOp.actions;
if (postActions == null) return;
int index = this.actionsStart-1;
@@ -684,7 +684,7 @@
// update RubyModel using deltas that were recorded during this operation
for (int i = previousDeltaCount, size = deltaProcessor.rubyModelDeltas.size(); i < size; i++) {
- deltaProcessor.updateRubyModel((IRubyElementDelta)deltaProcessor.rubyModelDeltas.get(i));
+ deltaProcessor.updateRubyModel(deltaProcessor.rubyModelDeltas.get(i));
}
// close the parents of the created elements and reset their project's cache (in case we are in an
@@ -757,7 +757,7 @@
* Registers the given attribute at the given key with the top level operation.
*/
protected void setAttribute(Object key, Object attribute) {
- RubyModelOperation topLevelOp = (RubyModelOperation)this.getCurrentOperationStack().get(0);
+ RubyModelOperation topLevelOp = this.getCurrentOperationStack().get(0);
if (topLevelOp.attributes == null) {
topLevelOp.attributes = new HashMap<Object, Object>();
}
Modified: trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/ThreadInfoReader.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/ThreadInfoReader.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.debug.core/src/org/rubypeople/rdt/internal/debug/core/parsing/ThreadInfoReader.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -22,7 +22,7 @@
public ThreadInfo[] readThreads() throws XmlPullParserException, IOException, XmlStreamReaderException {
this.read();
- return (ThreadInfo[]) threads.toArray(new ThreadInfo[threads.size()]);
+ return threads.toArray(new ThreadInfo[threads.size()]);
}
protected boolean processStartElement(XmlPullParser xpp) {
Modified: trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/launcher/LoadPathEntryLabelProvider.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/launcher/LoadPathEntryLabelProvider.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/launcher/LoadPathEntryLabelProvider.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -1,11 +1,9 @@
package org.rubypeople.rdt.internal.debug.ui.launcher;
-import org.eclipse.core.resources.IProject;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.swt.graphics.Image;
import org.rubypeople.rdt.core.ILoadpathEntry;
-import org.rubypeople.rdt.internal.core.LoadpathEntry;
import org.rubypeople.rdt.internal.debug.ui.RdtDebugUiPlugin;
public class LoadPathEntryLabelProvider implements ILabelProvider {
Modified: trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/AddVMDialog.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/AddVMDialog.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/AddVMDialog.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -335,7 +335,7 @@
} else {
IStatus s = ResourcesPlugin.getWorkspace().validateName(name, IResource.FILE);
if (!s.isOK()) {
- status.setError(MessageFormat.format(RubyVMMessages.AddVMDialog_JRE_name_must_be_a_valid_file_name___0__1, new String[]{s.getMessage()}));
+ status.setError(MessageFormat.format(RubyVMMessages.AddVMDialog_JRE_name_must_be_a_valid_file_name___0__1, s.getMessage()));
}
}
}
Modified: trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/LibraryStandin.java
===================================================================
--- trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/LibraryStandin.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/rubyvms/LibraryStandin.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -106,7 +106,7 @@
IStatus validate() {
if (!getSystemLibraryPath().toFile().exists()) {
return new Status(IStatus.ERROR, RdtDebugUiPlugin.getUniqueIdentifier(), RdtDebugUiConstants.INTERNAL_ERROR,
- MessageFormat.format(RubyVMMessages.LibraryStandin_0, new String[]{getSystemLibraryPath().toOSString()}), null);
+ MessageFormat.format(RubyVMMessages.LibraryStandin_0, getSystemLibraryPath().toOSString()), null);
}
return Status.OK_STATUS;
}
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/DefaultProjectLoadpathEntry.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/DefaultProjectLoadpathEntry.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/DefaultProjectLoadpathEntry.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -148,7 +148,7 @@
ordered.add(runtimeEntries[i]);
}
}
- return (IRuntimeLoadpathEntry[]) ordered.toArray(new IRuntimeLoadpathEntry[ordered.size()]);
+ return ordered.toArray(new IRuntimeLoadpathEntry[ordered.size()]);
}
/**
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingPlugin.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingPlugin.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/LaunchingPlugin.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -437,7 +437,7 @@
Iterator locations = fgLibraryInfoMap.keySet().iterator();
while (locations.hasNext()) {
String home = (String)locations.next();
- LibraryInfo info = (LibraryInfo) fgLibraryInfoMap.get(home);
+ LibraryInfo info = fgLibraryInfoMap.get(home);
Element locationElemnet = infoAsElement(doc, info);
locationElemnet.setAttribute("home", home); //$NON-NLS-1$
config.appendChild(locationElemnet);
@@ -494,7 +494,7 @@
if (fgLibraryInfoMap == null) {
restoreLibraryInfo();
}
- return (LibraryInfo) fgLibraryInfoMap.get(javaInstallPath);
+ return fgLibraryInfoMap.get(javaInstallPath);
}
/**
@@ -574,7 +574,7 @@
}
}
}
- return (String[])paths.toArray(new String[paths.size()]);
+ return paths.toArray(new String[paths.size()]);
}
/**
@@ -588,7 +588,7 @@
if (fClasspathEntryExtensions == null) {
initializeRuntimeLoadpathExtensions();
}
- IConfigurationElement config = (IConfigurationElement) fClasspathEntryExtensions.get(id);
+ IConfigurationElement config = fClasspathEntryExtensions.get(id);
if (config == null) {
abort(MessageFormat.format(LaunchingMessages.LaunchingPlugin_32, id), null);
}
@@ -764,7 +764,7 @@
String firstSegment = reference.segment(0);
if (RubyRuntime.RUBY_CONTAINER.equals(firstSegment)) {
if (reference.segmentCount() > 1) {
- IPath renamed = (IPath)fRenamedContainerIds.get(reference);
+ IPath renamed = fRenamedContainerIds.get(reference);
if (renamed != null) {
// The JRE was re-named. This changes the identifier of
// the container entry.
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMRuntimeLoadpathEntryResolver.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMRuntimeLoadpathEntryResolver.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/RubyVMRuntimeLoadpathEntryResolver.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -100,7 +100,7 @@
String dir = libraryPath.toFile().getParent();
resolvedEntries.add(resolveLibraryLocation(vm, location, kind, overrideRubydoc));
}
- return (IRuntimeLoadpathEntry[]) resolvedEntries.toArray(new IRuntimeLoadpathEntry[resolvedEntries.size()]);
+ return resolvedEntries.toArray(new IRuntimeLoadpathEntry[resolvedEntries.size()]);
}
}
}
@@ -111,7 +111,7 @@
resolvedEntries.add(resolveLibraryLocation(vm, libs[i], kind, overrideRubydoc));
}
}
- return (IRuntimeLoadpathEntry[]) resolvedEntries.toArray(new IRuntimeLoadpathEntry[resolvedEntries.size()]);
+ return resolvedEntries.toArray(new IRuntimeLoadpathEntry[resolvedEntries.size()]);
}
/**
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMType.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMType.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/StandardVMType.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -128,7 +128,7 @@
String installPath = rubyHome.getAbsolutePath();
LibraryInfo info = LaunchingPlugin.getLibraryInfo(installPath);
if (info == null) {
- info= (LibraryInfo)fgFailedInstallPath.get(installPath);
+ info= fgFailedInstallPath.get(installPath);
if (info == null) {
info = generateLibraryInfo(rubyHome, rubyExecutable);
if (info == null) {
@@ -201,7 +201,7 @@
if (lines.size() > 0) {
String version = lines.remove(0);
if (lines.size() > 0) {
- String[] loadpath = (String[]) lines.toArray(new String[lines.size()]);
+ String[] loadpath = lines.toArray(new String[lines.size()]);
return new LibraryInfo(version, loadpath);
}
}
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/VMDefinitionsContainer.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/VMDefinitionsContainer.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/internal/launching/VMDefinitionsContainer.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -104,7 +104,7 @@
public void addVM(IVMInstall vm) {
if (!fVMList.contains(vm)) {
IVMInstallType vmInstallType = vm.getVMInstallType();
- List<IVMInstall> vmList = (List<IVMInstall>) fVMTypeToVMMap.get(vmInstallType);
+ List<IVMInstall> vmList = fVMTypeToVMMap.get(vmInstallType);
if (vmList == null) {
vmList = new ArrayList<IVMInstall>(3);
fVMTypeToVMMap.put(vmInstallType, vmList);
@@ -493,7 +493,7 @@
}
}
}
- vm.setLibraryLocations((IPath[])locations.toArray(new IPath[locations.size()]));
+ vm.setLibraryLocations(locations.toArray(new IPath[locations.size()]));
}
/**
@@ -504,7 +504,7 @@
public void removeVM(IVMInstall vm) {
fVMList.remove(vm);
fInvalidVMList.remove(vm);
- List list = (List) fVMTypeToVMMap.get(vm.getVMInstallType());
+ List list = fVMTypeToVMMap.get(vm.getVMInstallType());
if (list != null) {
list.remove(vm);
}
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractVMRunner.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractVMRunner.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/AbstractVMRunner.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -22,7 +22,6 @@
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
import org.rubypeople.rdt.internal.launching.LaunchingMessages;
-import org.rubypeople.rdt.internal.launching.LaunchingPlugin;
/**
* Abstract implementation of a VM runner.
Modified: trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java
===================================================================
--- trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.launching/src/org/rubypeople/rdt/launching/RubyRuntime.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -1290,7 +1290,7 @@
}
}
loadpathEntries.add(newDefaultProjectLoadpathEntry(project));
- return (IRuntimeLoadpathEntry[]) loadpathEntries.toArray(new IRuntimeLoadpathEntry[loadpathEntries.size()]);
+ return loadpathEntries.toArray(new IRuntimeLoadpathEntry[loadpathEntries.size()]);
}
/**
@@ -1424,8 +1424,8 @@
break;
}
List<IRuntimeLoadpathEntry> resolved = new ArrayList<IRuntimeLoadpathEntry>(cpes.length);
- List<IRubyProject> projects = (List<IRubyProject>) fgProjects.get();
- Integer count = (Integer) fgEntryCount.get();
+ List<IRubyProject> projects = fgProjects.get();
+ Integer count = fgEntryCount.get();
if (projects == null) {
projects = new ArrayList<IRubyProject>();
fgProjects.set(projects);
@@ -1470,7 +1470,7 @@
// set loadpath property
IRuntimeLoadpathEntry[] result = new IRuntimeLoadpathEntry[resolved.size()];
for (int i = 0; i < result.length; i++) {
- result[i] = (IRuntimeLoadpathEntry) resolved.get(i);
+ result[i] = resolved.get(i);
result[i].setLoadpathProperty(property);
}
return result;
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestHierarchyTab.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -465,7 +465,7 @@
int testCount = Integer.parseInt(treeEntry.substring(index2 + 1));
TreeItem treeItem;
- while ((fSuiteInfos.size() > 0) && (((SuiteInfo) fSuiteInfos.lastElement()).fTestCount == 0)) {
+ while ((fSuiteInfos.size() > 0) && ((fSuiteInfos.lastElement()).fTestCount == 0)) {
fSuiteInfos.removeElementAt(fSuiteInfos.size() - 1);
}
@@ -474,14 +474,14 @@
treeItem.setImage(fSuiteIcon);
fSuiteInfos.addElement(new SuiteInfo(treeItem, testCount));
} else if (isSuite.equals("true")) { //$NON-NLS-1$
- treeItem = new TreeItem(((SuiteInfo) fSuiteInfos.lastElement()).fTreeItem, SWT.NONE);
+ treeItem = new TreeItem((fSuiteInfos.lastElement()).fTreeItem, SWT.NONE);
treeItem.setImage(fSuiteIcon);
- ((SuiteInfo) fSuiteInfos.lastElement()).fTestCount -= 1;
+ (fSuiteInfos.lastElement()).fTestCount -= 1;
fSuiteInfos.addElement(new SuiteInfo(treeItem, testCount));
} else {
- treeItem = new TreeItem(((SuiteInfo) fSuiteInfos.lastElement()).fTreeItem, SWT.NONE);
+ treeItem = new TreeItem((fSuiteInfos.lastElement()).fTreeItem, SWT.NONE);
treeItem.setImage(fTestIcon);
- ((SuiteInfo) fSuiteInfos.lastElement()).fTestCount -= 1;
+ (fSuiteInfos.lastElement()).fTestCount -= 1;
mapTest(testInfo, treeItem);
}
treeItem.setText(testInfo.getTestMethodName());
Modified: trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java
===================================================================
--- trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java 2007-03-09 17:09:15 UTC (rev 2120)
+++ trunk/org.rubypeople.rdt.testunit/src/org/rubypeople/rdt/internal/testunit/ui/TestUnitView.java 2007-03-09 17:20:36 UTC (rev 2121)
@@ -253,7 +253,7 @@
loadTestRunTabs(tabFolder);
tabFolder.setSelection(0);
- fActiveRunTab = (TestRunTab) fTestRunTabs.firstElement();
+ fActiveRunTab = fTestRunTabs.firstElement();
tabFolder.addSelectionListener(new SelectionAdapter() {
@@ -342,7 +342,7 @@
public TestRunInfo getTestInfo(String testId) {
if (testId == null) return null;
- return (TestRunInfo) fTestInfos.get(testId);
+ return fTestInfos.get(testId);
}
private void showFailure(final TestRunInfo failure) {
@@ -862,7 +862,7 @@
}
protected void selectFirstFailure() {
- TestRunInfo firstFailure = (TestRunInfo) fFailures.get(0);
+ TestRunInfo firstFailure = fFailures.get(0);
if (firstFailure != null && fAutoScroll) {
fActiveRunTab.setSelectedTest(firstFailure.getTestId());
handleTestSelected(firstFailure.getTestId());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|