summaryrefslogtreecommitdiff
path: root/jurt/com/sun/star/comp/bridgefactory
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2011-03-10 12:58:23 +0100
committerOcke Janssen <oj@openoffice.org>2011-03-10 12:58:23 +0100
commita8b68a6b9d60ce4f11d82a6f4932b9587289d969 (patch)
treeca333cde5dfbb1f853dabe1cc0451c59c2c6e382 /jurt/com/sun/star/comp/bridgefactory
parentadf7a306ec2f5f27c0c95e1fb16b179ad316ae52 (diff)
dba34d: automatic code corrections
Diffstat (limited to 'jurt/com/sun/star/comp/bridgefactory')
-rw-r--r--jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java
index 1c4819326268..b0c093ffa2bb 100644
--- a/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java
+++ b/jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java
@@ -108,7 +108,7 @@ public class BridgeFactory implements XBridgeFactory/*, XEventListener*/ {
com.sun.star.uno.RuntimeException
{
boolean hasName = sName.length() != 0;
- Object context = hasName ? (Object) sName : (Object) new UniqueToken();
+ Object context = hasName ? sName : new UniqueToken();
// UnoRuntime.getBridgeByName internally uses context.toString() to
// distinguish bridges, so the result of
// new UniqueToken().toString() might clash with an explicit
@@ -128,7 +128,7 @@ public class BridgeFactory implements XBridgeFactory/*, XEventListener*/ {
}
}
- XBridge xBridge = null;
+ XBridge xBridge;
try {
IBridge iBridge = UnoRuntime.getBridgeByName("java", context, "remote", context, hasName ? new Object[]{sProtocol, aConnection, anInstanceProvider, sName} : new Object[]{sProtocol, aConnection, anInstanceProvider});