summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 15:40:17 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:03:01 +0200
commitb65017a2a7af290f6681da7b197a52efe83d5185 (patch)
tree06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java
parent33ec740d1438c3dddf8e1974757ed05bb76425ca (diff)
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java')
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java
index 3345f7752303..c96ba75498d0 100644
--- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java
+++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLStylesImporter.java
@@ -157,9 +157,8 @@ public class XMLStylesImporter extends TestCase {
tEnv.addObjRelation("XDocumentHandler.XMLData", xml) ;
XNameAccess styles = null ;
try {
- XStyleFamiliesSupplier sup = (XStyleFamiliesSupplier)
- UnoRuntime.queryInterface(XStyleFamiliesSupplier.class,
- xImpressDoc);
+ XStyleFamiliesSupplier sup = UnoRuntime.queryInterface(XStyleFamiliesSupplier.class,
+ xImpressDoc);
XNameAccess oStyleFamilies = sup.getStyleFamilies();
Object family = oStyleFamilies.getByName("graphics") ;
styles = (XNameAccess) UnoRuntime.queryInterface