From 68cd011c907d00493bf2bfde531c1e244819596b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Aug 2014 12:44:57 +0200 Subject: java: reduce scope, make some methods private found by UCDetector Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e --- connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java | 2 +- .../com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java | 2 +- .../com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'connectivity/com/sun') diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java index 3dc947091397..b2e08164f44c 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java @@ -45,7 +45,7 @@ public class NativeStorageAccess { throw new java.io.IOException(); } } - public native void openStream(String name,String key, int mode); + private native void openStream(String name,String key, int mode); public native void close(String name,String key) throws java.io.IOException; public native long getFilePointer(String name,String key) throws java.io.IOException; diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java index bea6af9375d7..caeb103c23ca 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java @@ -30,7 +30,7 @@ public class StorageNativeInputStream { public StorageNativeInputStream(String key,String _file) { openStream(key,_file, NativeStorageAccess.READ); } - public native void openStream(String key,String name, int mode); + private native void openStream(String key,String name, int mode); public native int read(String key,String name) throws java.io.IOException; public native int read(String key,String name,byte[] b, int off, int len) throws java.io.IOException; public native void close(String key,String name) throws java.io.IOException; diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java index 281c9b173d6d..94b431965d71 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java @@ -37,7 +37,7 @@ public class StorageNativeOutputStream { openStream(name, (String)key, NativeStorageAccess.WRITE | NativeStorageAccess.TRUNCATE); } - public native void openStream(String name,String key, int mode); + private native void openStream(String name,String key, int mode); /** * Writes len bytes from the specified byte array * starting at offset off to this output stream. -- cgit