Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2015-11-30 00:31:24 +0000
committerMarkus Keller2015-12-01 01:50:42 +0000
commit0bbe21e0e553957dd09eda0b29e8c77a98f38048 (patch)
treefead9c0316a908536fe74bec66592b1018ccc31a /org.eclipse.ui.editors.tests/src
parent64b34b614087b96e6cc92c72143768b98ae32602 (diff)
downloadeclipse.platform.text-0bbe21e0e553957dd09eda0b29e8c77a98f38048.tar.gz
eclipse.platform.text-0bbe21e0e553957dd09eda0b29e8c77a98f38048.tar.xz
eclipse.platform.text-0bbe21e0e553957dd09eda0b29e8c77a98f38048.zip
Bug 478673: remove unused casts
Diffstat (limited to 'org.eclipse.ui.editors.tests/src')
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java2
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java
index 1ec6f4e58..32aee69b1 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/GotoLineTest.java
@@ -96,7 +96,7 @@ public class GotoLineTest extends TestCase {
IAction action= editor.getAction(ITextEditorActionConstants.GOTO_LINE);
Accessor accessor= new Accessor(action, GotoLineAction.class);
accessor.invoke("gotoLine", new Class[] {int.class}, new Integer[] {new Integer(line)});
- Control control= (Control) part.getAdapter(Control.class);
+ Control control= part.getAdapter(Control.class);
if (control instanceof StyledText) {
int caretLine= -1;
StyledText styledText= (StyledText) control;
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java
index 2c72eb476..498efc507 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/SegmentedModeTest.java
@@ -77,7 +77,7 @@ public class SegmentedModeTest extends TestCase {
editor.showHighlightRangeOnly(true);
editor.setHighlightRange(5, 0, true);
- Control control= (Control) part.getAdapter(Control.class);
+ Control control= part.getAdapter(Control.class);
if (control instanceof StyledText) {
StyledText styledText= (StyledText) control;
int caret= styledText.getCaretOffset();
@@ -116,7 +116,7 @@ public class SegmentedModeTest extends TestCase {
editor.showHighlightRangeOnly(true);
editor.setHighlightRange(0, 0, true);
- Control control= (Control)part.getAdapter(Control.class);
+ Control control= part.getAdapter(Control.class);
if (control instanceof StyledText) {
StyledText styledText= (StyledText)control;
String text= styledText.getText();

Back to the top