diff options
author | Lars Vogel | 2014-07-31 13:44:28 +0000 |
---|---|---|
committer | Lars Vogel | 2014-08-01 10:44:32 +0000 |
commit | 3737f9b2518e048a09a8d0b51efa88f452f2d617 (patch) | |
tree | 49cdef6cf3b46f0e3364e493d3023b9729a7eb72 | |
parent | 7a2622b495ea577b5f7d886043c35b117f68d37d (diff) | |
download | eclipse.platform.ui-3737f9b2518e048a09a8d0b51efa88f452f2d617.tar.gz eclipse.platform.ui-3737f9b2518e048a09a8d0b51efa88f452f2d617.tar.xz eclipse.platform.ui-3737f9b2518e048a09a8d0b51efa88f452f2d617.zip |
Bug 440893 - Remove unneccesary casts in platform.ui tests
Change-Id: Ia6f76d2a82ee8121c3a3708b403adbed24e825b6
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
-rw-r--r-- | tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java | 7 | ||||
-rw-r--r-- | tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug308220Test.java | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java b/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java index 1b689d5acc5..4041003a666 100644 --- a/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java +++ b/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 IBM Corporation and others. + * Copyright (c) 2010, 2014 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 @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Lars Vogel <Lars.Vogel@gmail.com> - Bug 440893 ******************************************************************************/ package org.eclipse.e4.ui.tests.application; @@ -80,8 +81,8 @@ public class Bug299755Test extends TestCase { // create an "in" part context IEclipseContext inContext = windowContext.createChild(); - Out out = (Out) ContextInjectionFactory.make(Out.class, outContext); - In in = (In) ContextInjectionFactory.make(In.class, inContext); + Out out = ContextInjectionFactory.make(Out.class, outContext); + In in = ContextInjectionFactory.make(In.class, inContext); // no selection in the beginning assertNull(in.getSelection()); diff --git a/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug308220Test.java b/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug308220Test.java index ba20e411c9b..e4d94de5e25 100644 --- a/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug308220Test.java +++ b/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug308220Test.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 IBM Corporation and others. + * Copyright (c) 2010, 2014 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 @@ -7,6 +7,7 @@ * * Contributors: * IBM Corporation - initial API and implementation + * Lars Vogel <Lars.Vogel@gmail.com> - Bug 440893 ******************************************************************************/ package org.eclipse.e4.ui.tests.application; @@ -75,9 +76,9 @@ public class Bug308220Test extends TestCase { part.activate(); windowA.activate(); - WindowService windowServiceA = (WindowService) ContextInjectionFactory + WindowService windowServiceA = ContextInjectionFactory .make(WindowService.class, windowA); - WindowService windowServiceB = (WindowService) ContextInjectionFactory + WindowService windowServiceB = ContextInjectionFactory .make(WindowService.class, windowB); // windowA should have an active part, it was set earlier |