Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-11-27 15:55:58 +0000
committerMarkus Tiede2014-11-27 15:55:58 +0000
commit621a1d8118b329b57e328e90ceea70c8c6c1b457 (patch)
treea08a59261b4bec85407eb6af27e60d33bbb76845 /org.eclipse.jubula.rc.swing/src
parent17e7a19842a9dae7fd7f4f67f1a1f203d7f9468c (diff)
downloadorg.eclipse.jubula.core-621a1d8118b329b57e328e90ceea70c8c6c1b457.tar.gz
org.eclipse.jubula.core-621a1d8118b329b57e328e90ceea70c8c6c1b457.tar.xz
org.eclipse.jubula.core-621a1d8118b329b57e328e90ceea70c8c6c1b457.zip
Non-sprint task - minor cleanup + refactoring: typos resolved + generics added.
Diffstat (limited to 'org.eclipse.jubula.rc.swing/src')
-rw-r--r--org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/components/SwingHierarchyContainer.java8
-rw-r--r--org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/utils/WorkerRunnable.java4
2 files changed, 2 insertions, 10 deletions
diff --git a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/components/SwingHierarchyContainer.java b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/components/SwingHierarchyContainer.java
index ecec46b38..fe905e713 100644
--- a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/components/SwingHierarchyContainer.java
+++ b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/components/SwingHierarchyContainer.java
@@ -52,14 +52,6 @@ public class SwingHierarchyContainer extends HierarchyContainer {
}
/**
- * @param index int
- * @return SwingComponent
- */
- public SwingComponent getComponent(int index) {
- return (SwingComponent)super.getComp(index);
- }
-
- /**
* @return SwingHierarchyContainer[]
*/
public SwingHierarchyContainer[] getComponents() {
diff --git a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/utils/WorkerRunnable.java b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/utils/WorkerRunnable.java
index a05e5c7b0..9b4ec75a9 100644
--- a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/utils/WorkerRunnable.java
+++ b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/utils/WorkerRunnable.java
@@ -25,7 +25,7 @@ public class WorkerRunnable implements Runnable {
* queue of work to be be performed.
* contains only instances of {@link Runnable}
*/
- private LinkedList m_workQueue = new LinkedList();
+ private LinkedList<Runnable> m_workQueue = new LinkedList<Runnable>();
/**
* Add a {@link Runnable} to the work queue.
@@ -61,6 +61,6 @@ public class WorkerRunnable implements Runnable {
while (m_workQueue.isEmpty()) {
wait();
}
- return (Runnable)m_workQueue.removeFirst();
+ return m_workQueue.removeFirst();
}
}

Back to the top