Java cleanup, fix a couple of compile errors

Change-Id: I83a51dc7a68413d9fea16c8cafdb82e665940775
This commit is contained in:
Noel Grandin 2012-08-31 11:37:57 +02:00 committed by Michael Stahl
parent 854bd8b33b
commit 9d9a9dd7e8
2 changed files with 2 additions and 5 deletions

View File

@ -58,7 +58,7 @@ public class Dispatch extends TestCase {
URL dispatchURL = null;
try {
XMultiServiceFactory xMSF = tParam.getMSF();
XMultiServiceFactory xMSF = (XMultiServiceFactory) tParam.getMSF();
SOfficeFactory SOF = null;
SOF = SOfficeFactory.getFactory( xMSF );
String docPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
@ -70,7 +70,7 @@ public class Dispatch extends TestCase {
XURLTransformer xParser=(XURLTransformer)
UnoRuntime.queryInterface(XURLTransformer.class,
tParam.getMSF().createInstance
((XMultiServiceFactory)tParam.getMSF()).createInstance
("com.sun.star.util.URLTransformer"));
// Because it's an in/out parameter we must use an array of
// URL objects.

View File

@ -59,9 +59,6 @@ public class TestApplet extends java.applet.Applet {
}catch( IOException e) {
String s= e.getMessage();
System.out.println(s);
}catch( SandboxSecurityException sse) {
String s= sse.getMessage();
System.out.println("s");
}
// catch( Exception ex) {
// String s= ex.getMessage();