From 017ea9eb0f80ba750f0cf917033052c75e622c0a Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj i Gelonch Date: Thu, 9 Oct 2014 20:00:10 +0200 Subject: bean: Use com.sun.star.uno.RuntimeException(Throwable thrwbl) Change-Id: I6677072c349fc8c1997030b78fa38a5d78aec361 Reviewed-on: https://gerrit.libreoffice.org/11889 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'bean') diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index ac260fef091f..52cef3c1f235 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java @@ -134,15 +134,11 @@ public class LocalOfficeConnection } catch ( java.net.MalformedURLException e ) { - com.sun.star.uno.RuntimeException e2 = new com.sun.star.uno.RuntimeException(); - e2.initCause(e); - throw e2; + throw new com.sun.star.uno.RuntimeException(e); } catch ( UnsupportedEncodingException e) { - com.sun.star.uno.RuntimeException e2 = new com.sun.star.uno.RuntimeException(); - e2.initCause(e); - throw e2; + throw new com.sun.star.uno.RuntimeException(e); } } @@ -672,9 +668,7 @@ public class LocalOfficeConnection } catch (UnsupportedEncodingException e) { - com.sun.star.uno.RuntimeException e2 = new com.sun.star.uno.RuntimeException(); - e2.initCause(e); - throw e2; + throw new com.sun.star.uno.RuntimeException(e); } return identifier; } -- cgit