diff options
Diffstat (limited to 'odk/examples/java/Storage/Test07.java')
-rw-r--r-- | odk/examples/java/Storage/Test07.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/java/Storage/Test07.java b/odk/examples/java/Storage/Test07.java index 753bac8256a3..2e24b3c126b5 100644 --- a/odk/examples/java/Storage/Test07.java +++ b/odk/examples/java/Storage/Test07.java @@ -49,7 +49,7 @@ public class Test07 implements StorageTest { // create temporary storage based on arbitrary medium // after such a storage is closed it is lost Object oTempStorage = m_xStorageFactory.createInstance(); - XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); + XStorage xTempStorage = UnoRuntime.queryInterface( XStorage.class, oTempStorage ); if ( xTempStorage == null ) { m_aTestHelper.Error( "Can't create temporary storage representation!" ); @@ -72,11 +72,11 @@ public class Test07 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; - pArgs[0] = (Object) sTempFileURL; + pArgs[0] = sTempFileURL; pArgs[1] = new Integer( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); - XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); + XStorage xTempFileStorage = UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); if ( xTempFileStorage == null ) { m_aTestHelper.Error( "Can't create storage based on temporary file!" ); @@ -99,7 +99,7 @@ public class Test07 implements StorageTest { // the temporary file must not be locked any more after storage disposing pArgs[1] = new Integer( ElementModes.READWRITE ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); - XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); + XStorage xResultStorage = UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) { m_aTestHelper.Error( "Can't reopen storage based on temporary file!" ); @@ -107,7 +107,7 @@ public class Test07 implements StorageTest { } Object o2CopyStorage = m_xStorageFactory.createInstance(); - XStorage x2CopyStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, o2CopyStorage ); + XStorage x2CopyStorage = UnoRuntime.queryInterface( XStorage.class, o2CopyStorage ); if ( x2CopyStorage == null ) { m_aTestHelper.Error( "Can't create temporary storage representation!" ); |