Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2015-02-05 13:22:24 +0000
committerMarkus Tiede2015-02-05 13:22:32 +0000
commit8eae4557d1b5412d097bd931ced86e8a48f3196a (patch)
treee865ee327513c4c02c058380705f1b139b0b8fdb /org.eclipse.jubula.rc.swt
parent1599fbb79dcb368e5bef86cfa72349c8cb7c18c5 (diff)
downloadorg.eclipse.jubula.core-8eae4557d1b5412d097bd931ced86e8a48f3196a.tar.gz
org.eclipse.jubula.core-8eae4557d1b5412d097bd931ced86e8a48f3196a.tar.xz
org.eclipse.jubula.core-8eae4557d1b5412d097bd931ced86e8a48f3196a.zip
Non-sprint task - unnecessary casts removed.
Diffstat (limited to 'org.eclipse.jubula.rc.swt')
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java6
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotSwtImpl.java2
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TableAdapter.java15
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java2
4 files changed, 12 insertions, 13 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
index b858876a6..891ea49c9 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/KeyboardHelper.java
@@ -194,13 +194,13 @@ public class KeyboardHelper {
* @return the modifier
*/
public Integer[] getModifiers() {
- return (Integer[])m_modifiers.toArray(
+ return m_modifiers.toArray(
new Integer[m_modifiers.size()]);
}
/**
- * Adds the given modofier to the KeyStroke.
- * @param modifier the modoifier.
+ * Adds the given modifier to the KeyStroke.
+ * @param modifier the modifier.
*/
public void addModifier(int modifier) {
m_modifiers.add(new Integer(modifier));
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotSwtImpl.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotSwtImpl.java
index 85148977e..5902f21bb 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotSwtImpl.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotSwtImpl.java
@@ -1075,7 +1075,7 @@ public class RobotSwtImpl implements IRobot<Rectangle> {
if (graphicsComponent instanceof Control) {
ensureComponentVisible((Control)graphicsComponent,
- (Rectangle)constraints);
+ constraints);
}
}
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TableAdapter.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TableAdapter.java
index 29b001eeb..f0893c222 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TableAdapter.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TableAdapter.java
@@ -367,14 +367,13 @@ public class TableAdapter extends ControlAdapter implements ITableComponent {
* @return the visible cell bounds, relative to the table's location.
*/
private Rectangle getVisibleBounds(Rectangle cellBounds) {
- org.eclipse.swt.graphics.Rectangle r =
- (org.eclipse.swt.graphics.Rectangle)
- getEventThreadQueuer().invokeAndWait("getVisibleCellBounds: " + cellBounds, //$NON-NLS-1$
- new IRunnable<org.eclipse.swt.graphics.Rectangle>() {
- public org.eclipse.swt.graphics.Rectangle run() {
- return m_table.getClientArea();
- }
- });
+ org.eclipse.swt.graphics.Rectangle r = getEventThreadQueuer()
+ .invokeAndWait("getVisibleCellBounds: " + cellBounds, //$NON-NLS-1$
+ new IRunnable<org.eclipse.swt.graphics.Rectangle>() {
+ public org.eclipse.swt.graphics.Rectangle run() {
+ return m_table.getClientArea();
+ }
+ });
Rectangle visibleTableBounds = new Rectangle(
r.x, r.y, r.width, r.height);
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java
index bfaacfe1a..f7cdccda9 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/utils/SwtUtils.java
@@ -517,7 +517,7 @@ public class SwtUtils {
if (recurse && objT.size() > 0) {
List<Widget> extendedFamily = new LinkedList<Widget>();
for (int i = 0; i < objT.size(); i++) {
- Widget w = (Widget)objT.get(i);
+ Widget w = objT.get(i);
extendedFamily.addAll(Arrays.asList(getWidgetChildrenImpl(
w, recurse)));
}

Back to the top