diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 14:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 14:55:15 +0200 |
commit | b73db446ac9681fdfc4ad602c6da7ce3e36a8588 (patch) | |
tree | 6107f4347c188f4c14840c01167b2f05b2f5ad48 /jurt/com/sun/star/comp/bridgefactory | |
parent | java:no need to explicitly create these constructors (diff) | |
download | core-b73db446ac9681fdfc4ad602c6da7ce3e36a8588.tar.gz core-b73db446ac9681fdfc4ad602c6da7ce3e36a8588.zip |
java: combine nested if statements
Change-Id: I0457b81668e9427a3c8d6a4af93438b7fb2bb7ba
Diffstat (limited to 'jurt/com/sun/star/comp/bridgefactory')
-rw-r--r-- | jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java index a43cb094cf0d..614631711b84 100644 --- a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java +++ b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java @@ -109,9 +109,8 @@ public class BridgeFactory implements XBridgeFactory/*, XEventListener*/ { for(int i = 0; i < iBridges.length; ++ i) { XBridge xBridge = UnoRuntime.queryInterface(XBridge.class, iBridges[i]); - if(xBridge != null) { - if(xBridge.getName().equals(sName)) - throw new BridgeExistsException(sName + " already exists"); + if(xBridge != null && xBridge.getName().equals(sName)) { + throw new BridgeExistsException(sName + " already exists"); } } } |