summaryrefslogtreecommitdiff
path: root/odk/examples/java/DocumentHandling/DocumentPrinter.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/DocumentHandling/DocumentPrinter.java')
-rw-r--r--odk/examples/java/DocumentHandling/DocumentPrinter.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/odk/examples/java/DocumentHandling/DocumentPrinter.java b/odk/examples/java/DocumentHandling/DocumentPrinter.java
index e6a7a1430d4e..cc851123efc2 100644
--- a/odk/examples/java/DocumentHandling/DocumentPrinter.java
+++ b/odk/examples/java/DocumentHandling/DocumentPrinter.java
@@ -61,9 +61,8 @@ public class DocumentPrinter {
"com.sun.star.frame.Desktop", xContext);
com.sun.star.frame.XComponentLoader xCompLoader =
- (com.sun.star.frame.XComponentLoader)
- UnoRuntime.queryInterface(
- com.sun.star.frame.XComponentLoader.class, oDesktop);
+ UnoRuntime.queryInterface(
+ com.sun.star.frame.XComponentLoader.class, oDesktop);
java.io.File sourceFile = new java.io.File(args[1]);
StringBuffer sUrl = new StringBuffer("file:///");
@@ -76,8 +75,8 @@ public class DocumentPrinter {
// Querying for the interface XPrintable on the loaded document
com.sun.star.view.XPrintable xPrintable =
- (com.sun.star.view.XPrintable)UnoRuntime.queryInterface(
- com.sun.star.view.XPrintable.class, xComp);
+ UnoRuntime.queryInterface(
+ com.sun.star.view.XPrintable.class, xComp);
// Setting the property "Name" for the favoured printer (name of
// IP address)