bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
New commits: commit 017ea9eb0f80ba750f0cf917033052c75e622c0a Author: Robert Antoni Buj i Gelonch <robert....@gmail.com> Date: Thu Oct 9 20:00:10 2014 +0200 bean: Use com.sun.star.uno.RuntimeException(Throwable thrwbl) Change-Id: I6677072c349fc8c1997030b78fa38a5d78aec361 Reviewed-on: https://gerrit.libreoffice.org/11889 Reviewed-by: Noel Grandin <noelgran...@gmail.com> Tested-by: Noel Grandin <noelgran...@gmail.com> diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index ac260fe..52cef3c 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits