From 7d297b2a7569f45fa034c4d80a6b6534aa7a682c Mon Sep 17 00:00:00 2001 From: Joachim Lingner Date: Wed, 27 Mar 2002 12:03:56 +0000 Subject: #98379# HolderProxy.isSame --- .../com/sun/star/lib/uno/environments/java/java_environment.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'jurt') diff --git a/jurt/com/sun/star/lib/uno/environments/java/java_environment.java b/jurt/com/sun/star/lib/uno/environments/java/java_environment.java index 99bc297b1909..c4b8e6e90092 100644 --- a/jurt/com/sun/star/lib/uno/environments/java/java_environment.java +++ b/jurt/com/sun/star/lib/uno/environments/java/java_environment.java @@ -2,9 +2,9 @@ * * $RCSfile: java_environment.java,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: kr $ $Date: 2001-05-04 11:52:11 $ + * last change: $Author: jl $ $Date: 2002-03-27 13:03:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -91,7 +91,7 @@ import com.sun.star.uno.XInterface; * interface defined in the uno runtime. *

*

- * @version $Revision: 1.5 $ $ $Date: 2001-05-04 11:52:11 $ + * @version $Revision: 1.6 $ $ $Date: 2002-03-27 13:03:56 $ * @author Kay Ramme * @see com.sun.star.uno.UnoRuntime * @see com.sun.star.uno.IEnvironment @@ -187,6 +187,9 @@ public class java_environment implements IEnvironment, Disposable { } public boolean isSame(Object object) { + if (object instanceof HolderProxy) + object=((HolderProxy) object).object; + return UnoRuntime.areSame(this.object, object); } -- cgit