Java cleanup, remove the rest of the unnecessary casts

Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa
Reviewed-on: https://gerrit.libreoffice.org/3432
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
This commit is contained in:
Noel Grandin
2013-04-17 14:59:35 +02:00
committed by Fridrich Strba
parent d62425cc27
commit 8d87758d65
141 changed files with 1514 additions and 1919 deletions

View File

@@ -73,7 +73,7 @@ public class XInputStreamImpl implements XInputStream
long bytesSkipped = 0;
try
{
bytesSkipped = is.skip( (long)nBytesToSkip );
bytesSkipped = is.skip( nBytesToSkip );
}
catch ( IOException e )
{

View File

@@ -50,7 +50,7 @@ public class ExtensionFinder implements MethodFinder {
findFiles(files, basedir, parcelName);
if (files.size() != 0)
return (ScriptEntry[])files.toArray(empty);
return files.toArray(empty);
return empty;
}

View File

@@ -86,7 +86,7 @@ public final class LocalOfficeImpl
Object object = null;
object = mComponentContext.getValueByName(STORAGE_MRG_SINGLETON);
XScriptStorageManager storageMgr;
storageMgr = (XScriptStorageManager)UnoRuntime.queryInterface(
storageMgr = UnoRuntime.queryInterface(
XScriptStorageManager.class, object);
storageMgr.refreshScriptStorage(uri);
} catch (java.lang.Exception ex) {
@@ -128,13 +128,13 @@ System.out.println("*** LocalOfficeImpl.refreshStorage: DONE");
"uno:socket,host=localhost,port=" +
port +
";urp;StarOffice.ServiceManager");
mComponentFactory = (XMultiComponentFactory)UnoRuntime.queryInterface(
mComponentFactory = UnoRuntime.queryInterface(
XMultiComponentFactory.class, object);
XPropertySet factoryProps;
factoryProps = (XPropertySet)UnoRuntime.queryInterface(
factoryProps = UnoRuntime.queryInterface(
XPropertySet.class, mComponentFactory);
object = factoryProps.getPropertyValue("DefaultContext");
mComponentContext = (XComponentContext)UnoRuntime.queryInterface(
mComponentContext = UnoRuntime.queryInterface(
XComponentContext.class, object);
}
}