summaryrefslogtreecommitdiff
path: root/odk/examples/java/Storage/Test06.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/Storage/Test06.java')
-rw-r--r--odk/examples/java/Storage/Test06.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/java/Storage/Test06.java b/odk/examples/java/Storage/Test06.java
index 2b3d62820282..d3b1cb097fd6 100644
--- a/odk/examples/java/Storage/Test06.java
+++ b/odk/examples/java/Storage/Test06.java
@@ -42,7 +42,7 @@ public class Test06 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!" );
@@ -192,7 +192,7 @@ public class Test06 implements StorageTest {
// create new temporary storage based on arbitrary medium
Object oTargetStorage = m_xStorageFactory.createInstance();
- XStorage xTargetStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTargetStorage );
+ XStorage xTargetStorage = UnoRuntime.queryInterface( XStorage.class, oTargetStorage );
if ( xTargetStorage == null )
{
m_aTestHelper.Error( "Can't create temporary storage representation!" );