[Libreoffice-commits] core.git: bean/com

Robert Antoni Buj i Gelonch robert.buj at gmail.com
Thu Oct 9 23:18:13 PDT 2014


 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.buj at 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 <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at 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;
         }


More information about the Libreoffice-commits mailing list