summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-23 09:01:41 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-04-23 10:29:36 +0000
commit68b9fb0aaeff4aef41dfd6989491b522578ca079 (patch)
tree91ce6c4395e11b17c7ca652a66bd8ce905afcd7b /odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
parent4f6adb0585037013241bd59e5c869a261c1f20c1 (diff)
Java cleanup - remove unnecessary casts in the ODK code
Change-Id: I1ab8ad5182444fc3eebd2349135a0240ebbe0fd4 Reviewed-on: https://gerrit.libreoffice.org/3566 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java')
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
index 2b10138471e3..456e4125c9d2 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
@@ -159,9 +159,8 @@ public abstract class DocumentBasedExample implements com.sun.star.lang.XEventLi
// close our document
if ( m_document != null )
{
- XCloseable closeDoc = (XCloseable)
- UnoRuntime.queryInterface( XCloseable.class,
- m_document.getDocument() );
+ XCloseable closeDoc = UnoRuntime.queryInterface( XCloseable.class,
+ m_document.getDocument() );
if (closeDoc != null)
closeDoc.close( true );
else