summaryrefslogtreecommitdiff
path: root/bean/com/sun/star/comp/beans
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-10-09 20:00:10 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-10 06:17:52 +0000
commit017ea9eb0f80ba750f0cf917033052c75e622c0a (patch)
tree9316df6e10cbff38ffd1eba500c92bd491d9ec54 /bean/com/sun/star/comp/beans
parentc8861af86a466c1e837263e58f3214aa42c902fc (diff)
bean: Use com.sun.star.uno.RuntimeException(Throwable thrwbl)
Change-Id: I6677072c349fc8c1997030b78fa38a5d78aec361 Reviewed-on: https://gerrit.libreoffice.org/11889 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'bean/com/sun/star/comp/beans')
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeConnection.java12
1 files changed, 3 insertions, 9 deletions
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;
}