diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java b/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java index 147473573c82..489e4c3ad45d 100644 --- a/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java +++ b/odk/examples/DevelopersGuide/Components/JavaComponent/TestJavaComponent.java @@ -52,7 +52,7 @@ public class TestJavaComponent XMultiComponentFactory serviceManager, Object singleFactory ) throws com.sun.star.uno.Exception { - XSet set = (XSet ) UnoRuntime.queryInterface( XSet.class, serviceManager ); + XSet set = UnoRuntime.queryInterface( XSet.class, serviceManager ); set.insert( singleFactory ); } @@ -60,7 +60,7 @@ public class TestJavaComponent XMultiComponentFactory serviceManager, Object singleFactory ) throws com.sun.star.uno.Exception { - XSet set = (XSet ) UnoRuntime.queryInterface( XSet.class, serviceManager ); + XSet set = UnoRuntime.queryInterface( XSet.class, serviceManager ); set.remove( singleFactory ); } |