summaryrefslogtreecommitdiff
path: root/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java')
-rw-r--r--jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
index ae2719f1c07d..631bda3a19b2 100644
--- a/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
+++ b/jurt/com/sun/star/lib/uno/bridges/java_remote/ProxyFactory.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -148,22 +148,11 @@ final class ProxyFactory {
private Object request(String operation, Object[] args) throws Throwable
{
- Object res = requestHandler.sendRequest(oid, type, operation, args);
- // Avoid early finalization of this object, while an invoke ->
- // request call is still ongoing; as finalize also calls request,
- // this should fulfil the condition from The Java Language
- // Specification, 3rd ed., that "if an object's finalizer can result
- // in synchronization on that object, then that object must be alive
- // and considered reachable whenever a lock is held on it:"
- synchronized (this) {
- ++dummy;
- }
- return res;
+ return requestHandler.sendRequest(oid, type, operation, args);
}
private final String oid;
private final Type type;
- private int dummy = 0;
}
private static final Method METHOD_EQUALS;