summaryrefslogtreecommitdiff
path: root/bridges/source/jni_uno/java
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 17:44:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-01 05:21:45 -0600
commit6660b9d2c57e90ecd77de3eb02bcd2a9f4518684 (patch)
treee18d4ab053b21545738ca11e54d1438aec44e8e5 /bridges/source/jni_uno/java
parent875129a8d4eca6b8ac184c4ae3539ffce8194e39 (diff)
Remove visual noise from bridges
Change-Id: I53fa23d335ff62795f09f9838d4064cea71aeb65 Reviewed-on: https://gerrit.libreoffice.org/8237 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'bridges/source/jni_uno/java')
-rw-r--r--bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java3
-rw-r--r--bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java12
2 files changed, 3 insertions, 12 deletions
diff --git a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
index 4285eccd95c2..dd5f3511347c 100644
--- a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
+++ b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
@@ -21,7 +21,6 @@ package com.sun.star.bridges.jni_uno;
import com.sun.star.lib.util.NativeLibraryLoader;
-//==============================================================================
public final class JNI_info_holder
{
static {
@@ -49,10 +48,8 @@ public final class JNI_info_holder
private static long s_jni_info_handle;
- //__________________________________________________________________________
private native void finalize( long jni_info_handle );
- //__________________________________________________________________________
protected void finalize()
{
finalize( s_jni_info_handle );
diff --git a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
index 31861d62a39c..6dcc106ed194 100644
--- a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
+++ b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
@@ -27,7 +27,7 @@ import com.sun.star.uno.IEnvironment;
import com.sun.star.uno.IQueryInterface;
-//==============================================================================
+
public final class JNI_proxy implements java.lang.reflect.InvocationHandler
{
static {
@@ -63,7 +63,7 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
protected String m_oid;
protected Class m_class;
- //__________________________________________________________________________
+
public static String get_stack_trace( Throwable throwable )
throws Throwable
{
@@ -92,10 +92,8 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
return "\njava stack trace:\n" + trace;
}
- //__________________________________________________________________________
private native void finalize( long bridge_handle );
- //__________________________________________________________________________
public void finalize()
{
AsynchronousFinalizer.add(new AsynchronousFinalizer.Job() {
@@ -105,7 +103,6 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
});
}
- //__________________________________________________________________________
private JNI_proxy(
long bridge_handle, IEnvironment java_env,
long receiver_handle, long td_handle, Type type, String oid )
@@ -119,7 +116,6 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
m_class = m_type.getZClass();
}
- //__________________________________________________________________________
public static Object create(
long bridge_handle, IEnvironment java_env,
long receiver_handle, long td_handle, Type type, String oid,
@@ -132,7 +128,6 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
return java_env.registerInterface( proxy, new String [] { oid }, type );
}
- //__________________________________________________________________________
public static java.lang.reflect.Constructor get_proxy_ctor( Class clazz )
throws Throwable
{
@@ -143,13 +138,12 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
return proxy_class.getConstructor( s_InvocationHandler );
}
- //__________________________________________________________________________
private native Object dispatch_call(
long bridge_handle, String method, Object args [] )
throws Throwable;
// InvocationHandler impl
- //__________________________________________________________________________
+
public Object invoke(
Object proxy, java.lang.reflect.Method method, Object args [] )
throws Throwable