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>
This commit is contained in:
Noel Grandin
2013-04-23 09:01:41 +02:00
committed by Fridrich Strba
parent 4f6adb0585
commit 68b9fb0aae
38 changed files with 200 additions and 204 deletions

View File

@ -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