summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-15 16:28:22 +0200
committerNoel Grandin <noel@peralex.com>2014-08-20 11:47:47 +0200
commit6884ef6317ddc29a713a342fb102e28ebc8fa5cc (patch)
treee5c6b203f6c58e118f2000bee4c23769b4cc36da /testtools
parent8c9fdc4a963fd55da59a93c979071f53b84fbc24 (diff)
java: don't catch and then just rethrow an exception
without doing anything else useful Change-Id: I5803d84d46e0a70e1759f2202e2c2273087f8723
Diffstat (limited to 'testtools')
-rw-r--r--testtools/com/sun/star/comp/bridge/TestComponent.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java b/testtools/com/sun/star/comp/bridge/TestComponent.java
index 9876c18b0b7b..89af4ba101d5 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponent.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponent.java
@@ -917,16 +917,9 @@ public class TestComponent {
public int getRuntimeException()
throws com.sun.star.uno.RuntimeException
{
- try
- {
- dothrow( new com.sun.star.uno.RuntimeException(
- _string, _xInterface ) );
- return 0; // dummy
- }
- catch (com.sun.star.uno.RuntimeException t)
- {
- throw t;
- }
+ dothrow( new com.sun.star.uno.RuntimeException(
+ _string, _xInterface ) );
+ return 0; // dummy
}
public void setRuntimeException(int _runtimeexception) throws com.sun.star.uno.RuntimeException {