summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}