Kaydet (Commit) 02bb9c54 authored tarafından Michael Stahl's avatar Michael Stahl

fix various (javac 1.7.0) warning: unreachable catch clause

Change-Id: I2b863b43db59e6904f97d9ad22fdb04013e8c76d
üst 37e1055f
...@@ -885,9 +885,6 @@ public class RecoveryTest extends ComplexTestCase { ...@@ -885,9 +885,6 @@ public class RecoveryTest extends ComplexTestCase {
} catch ( com.sun.star.lang.IllegalArgumentException e ){ } catch ( com.sun.star.lang.IllegalArgumentException e ){
log.println("Exception occurred while filling text document with content."); log.println("Exception occurred while filling text document with content.");
failed("Couldn't create test environment"); failed("Couldn't create test environment");
} catch (com.sun.star.uno.Exception e) {
log.println("Exception occurred while filling text document with content.");
failed("Couldn't create test environment");
} }
} }
...@@ -935,9 +932,6 @@ public class RecoveryTest extends ComplexTestCase { ...@@ -935,9 +932,6 @@ public class RecoveryTest extends ComplexTestCase {
} catch (com.sun.star.lang.IllegalArgumentException e) { } catch (com.sun.star.lang.IllegalArgumentException e) {
log.println("Exception occurred while filling calc document with content."); log.println("Exception occurred while filling calc document with content.");
failed("Couldn't create test environment"); failed("Couldn't create test environment");
} catch (com.sun.star.uno.Exception e) {
log.println("Exception occurred while filling calc document with content.");
failed("Couldn't create test environment");
} }
} }
......
...@@ -143,8 +143,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -143,8 +143,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
return nRead; return nRead;
...@@ -175,8 +173,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -175,8 +173,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
return nRead; return nRead;
} }
...@@ -207,9 +203,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -207,9 +203,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
} }
public int available() throws com.sun.star.io.NotConnectedException, public int available() throws com.sun.star.io.NotConnectedException,
...@@ -233,8 +226,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -233,8 +226,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
return nAvailable; return nAvailable;
} }
...@@ -261,9 +252,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -261,9 +252,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
} }
/** /**
...@@ -296,8 +284,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -296,8 +284,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
} }
...@@ -326,8 +312,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -326,8 +312,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
} }
//_________________________________ //_________________________________
...@@ -355,9 +339,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -355,9 +339,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
} }
/** /**
...@@ -391,9 +372,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -391,9 +372,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
} }
public long getPosition() throws com.sun.star.io.IOException public long getPosition() throws com.sun.star.io.IOException
...@@ -419,8 +397,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -419,8 +397,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
return nPos; return nPos;
} }
...@@ -450,8 +426,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -450,8 +426,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { catch (com.sun.star.uno.RuntimeException exRuntime) {
} }
catch (com.sun.star.uno.Exception exUno ) {
}
return nLen; return nLen;
} }
......
...@@ -248,10 +248,6 @@ public class DocumentConverter extends EnhancedComplexTestCase ...@@ -248,10 +248,6 @@ public class DocumentConverter extends EnhancedComplexTestCase
{ {
assure(e.getMessage(), false); assure(e.getMessage(), false);
} }
catch(ConvWatchException e)
{
assure(e.getMessage(), false);
}
} }
if (aGTA.restartOffice()) if (aGTA.restartOffice())
......
...@@ -158,8 +158,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -158,8 +158,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\treads "+nRead+" bytes\n\tOK\n}\n"); //m_aProtocol.log("\treads "+nRead+" bytes\n\tOK\n}\n");
...@@ -198,8 +196,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -198,8 +196,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\treads "+nRead+" bytes\n\tOK\n}\n"); //m_aProtocol.log("\treads "+nRead+" bytes\n\tOK\n}\n");
...@@ -236,8 +232,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -236,8 +232,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\tOK\n}\n"); //m_aProtocol.log("\tOK\n}\n");
} }
...@@ -267,8 +261,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -267,8 +261,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\treturns "+nAvailable+" bytes\n\tOK\n}\n"); //m_aProtocol.log("\treturns "+nAvailable+" bytes\n\tOK\n}\n");
return nAvailable; return nAvailable;
...@@ -298,8 +290,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -298,8 +290,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\tOK\n}\n"); //m_aProtocol.log("\tOK\n}\n");
} }
...@@ -336,8 +326,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -336,8 +326,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\tOK\n}\n"); //m_aProtocol.log("\tOK\n}\n");
} }
...@@ -369,8 +357,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -369,8 +357,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\tOK\n}\n"); //m_aProtocol.log("\tOK\n}\n");
} }
...@@ -401,8 +387,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -401,8 +387,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\tOK\n}\n"); //m_aProtocol.log("\tOK\n}\n");
} }
...@@ -443,8 +427,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -443,8 +427,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n" ); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\tOK\n}\n"); //m_aProtocol.log("\tOK\n}\n");
} }
...@@ -478,8 +460,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -478,8 +460,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n"); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n"); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\treturns pos="+nPos+"\n\tOK\n}\n"); //m_aProtocol.log("\treturns pos="+nPos+"\n\tOK\n}\n");
return nPos; return nPos;
...@@ -514,8 +494,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream , ...@@ -514,8 +494,6 @@ public class StreamSimulator implements com.sun.star.io.XInputStream ,
} }
catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n"); throw exRuntime; catch (com.sun.star.uno.RuntimeException exRuntime) { //m_aProtocol.log("\tgot RuntimeException\n\tfailed\n}\n"); throw exRuntime;
} }
catch (com.sun.star.uno.Exception exUno ) { //m_aProtocol.log("\tgot Exception\n\tfailed\n}\n" );
}
//m_aProtocol.log("\treturns len="+nLen+"\n\tOK\n}\n"); //m_aProtocol.log("\treturns len="+nLen+"\n\tOK\n}\n");
return nLen; return nLen;
......
...@@ -115,8 +115,6 @@ public class _XUpdateHandler extends MultiMethodTest { ...@@ -115,8 +115,6 @@ public class _XUpdateHandler extends MultiMethodTest {
log.println("Unexpected Exception " + e); log.println("Unexpected Exception " + e);
} catch (com.sun.star.lang.WrappedTargetException e) { } catch (com.sun.star.lang.WrappedTargetException e) {
log.println("Unexpected Exception " + e); log.println("Unexpected Exception " + e);
} catch (com.sun.star.uno.Exception e) {
log.println("Unexpected Exception " + e);
} }
} }
......
...@@ -194,13 +194,8 @@ public class ODatabaseSource extends TestCase { ...@@ -194,13 +194,8 @@ public class ODatabaseSource extends TestCase {
log.println("Could not store datasource 'aFile'" ); log.println("Could not store datasource 'aFile'" );
e.printStackTrace (); e.printStackTrace ();
throw new StatusException("Could not save ", e) ; throw new StatusException("Could not save ", e) ;
} catch (Exception e){
log.println("Could not store datasource 'aFile'" );
e.printStackTrace ();
throw new StatusException("Could not save ", e) ;
} }
try{ try{
xDBContextNameServ.registerObject(databaseName, oObj) ; xDBContextNameServ.registerObject(databaseName, oObj) ;
} catch (Exception e){ } catch (Exception e){
......
...@@ -452,10 +452,6 @@ public class JavaTools ...@@ -452,10 +452,6 @@ public class JavaTools
{ {
e.printStackTrace(System.out); e.printStackTrace(System.out);
} }
catch (IOException e)
{
e.printStackTrace(System.out);
}
return sPath; return sPath;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment