Java cleanup, fix a couple of compile errors
Change-Id: I83a51dc7a68413d9fea16c8cafdb82e665940775
This commit is contained in:
committed by
Michael Stahl
parent
854bd8b33b
commit
9d9a9dd7e8
@@ -58,7 +58,7 @@ public class Dispatch extends TestCase {
|
|||||||
URL dispatchURL = null;
|
URL dispatchURL = null;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
XMultiServiceFactory xMSF = tParam.getMSF();
|
XMultiServiceFactory xMSF = (XMultiServiceFactory) tParam.getMSF();
|
||||||
SOfficeFactory SOF = null;
|
SOfficeFactory SOF = null;
|
||||||
SOF = SOfficeFactory.getFactory( xMSF );
|
SOF = SOfficeFactory.getFactory( xMSF );
|
||||||
String docPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
|
String docPath = util.utils.getFullTestURL( "ExampleSpreadSheetLatest.sxc" );
|
||||||
@@ -70,7 +70,7 @@ public class Dispatch extends TestCase {
|
|||||||
|
|
||||||
XURLTransformer xParser=(XURLTransformer)
|
XURLTransformer xParser=(XURLTransformer)
|
||||||
UnoRuntime.queryInterface(XURLTransformer.class,
|
UnoRuntime.queryInterface(XURLTransformer.class,
|
||||||
tParam.getMSF().createInstance
|
((XMultiServiceFactory)tParam.getMSF()).createInstance
|
||||||
("com.sun.star.util.URLTransformer"));
|
("com.sun.star.util.URLTransformer"));
|
||||||
// Because it's an in/out parameter we must use an array of
|
// Because it's an in/out parameter we must use an array of
|
||||||
// URL objects.
|
// URL objects.
|
||||||
|
@@ -59,9 +59,6 @@ public class TestApplet extends java.applet.Applet {
|
|||||||
}catch( IOException e) {
|
}catch( IOException e) {
|
||||||
String s= e.getMessage();
|
String s= e.getMessage();
|
||||||
System.out.println(s);
|
System.out.println(s);
|
||||||
}catch( SandboxSecurityException sse) {
|
|
||||||
String s= sse.getMessage();
|
|
||||||
System.out.println("s");
|
|
||||||
}
|
}
|
||||||
// catch( Exception ex) {
|
// catch( Exception ex) {
|
||||||
// String s= ex.getMessage();
|
// String s= ex.getMessage();
|
||||||
|
Reference in New Issue
Block a user