diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-15 16:28:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-20 11:47:47 +0200 |
commit | 6884ef6317ddc29a713a342fb102e28ebc8fa5cc (patch) | |
tree | e5c6b203f6c58e118f2000bee4c23769b4cc36da /testtools | |
parent | 8c9fdc4a963fd55da59a93c979071f53b84fbc24 (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.java | 13 |
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 { |