summaryrefslogtreecommitdiff
path: root/sw/qa/complex/indeterminateState
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-28 15:45:25 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:04 +0200
commit531a052bdc1eff3d66fd17ec6f7e9f373cbd1404 (patch)
treeb5bafa5188f50cabd6edc0ffbee4f1fa4667fa7c /sw/qa/complex/indeterminateState
parent8aa97e36e79ce08852e243713f42fc1c70cad6c1 (diff)
Java5 update - convert to use generics
Change-Id: Ie9d9b278341132d08477d015245fedf2b66f62fd
Diffstat (limited to 'sw/qa/complex/indeterminateState')
-rw-r--r--sw/qa/complex/indeterminateState/CheckIndeterminateState.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/qa/complex/indeterminateState/CheckIndeterminateState.java b/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
index b5220e2296c6..68f1d0a232ab 100644
--- a/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
+++ b/sw/qa/complex/indeterminateState/CheckIndeterminateState.java
@@ -54,8 +54,7 @@ public class CheckIndeterminateState {
* The used tools are in project qadevOOo/runner
*/
@Test public void checkToolBoxItem() throws Exception {
- XModel aModel = (XModel)
- UnoRuntime.queryInterface(XModel.class, document);
+ XModel aModel = UnoRuntime.queryInterface(XModel.class, document);
XController xController = aModel.getCurrentController();
@@ -78,8 +77,7 @@ public class CheckIndeterminateState {
AccessibleRole.TOGGLE_BUTTON, "Bold");
assertNotNull("Found a TOGGLE_BUTTON", oObj);
- XAccessibleContext oContext = (XAccessibleContext)
- UnoRuntime.queryInterface(XAccessibleContext.class, oObj);
+ XAccessibleContext oContext = UnoRuntime.queryInterface(XAccessibleContext.class, oObj);
XAccessibleStateSet oSet = oContext.getAccessibleStateSet();