diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 12:44:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:23 +0200 |
commit | 68cd011c907d00493bf2bfde531c1e244819596b (patch) | |
tree | 0225318c908b00faaa701a19aaf7aa567c3582a0 /connectivity/com/sun | |
parent | 70f56bc22fe952c75ec714e05e1bb5296491a36a (diff) |
java: reduce scope, make some methods private
found by UCDetector
Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'connectivity/com/sun')
3 files changed, 3 insertions, 3 deletions
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 <code>len</code> bytes from the specified byte array * starting at offset <code>off</code> to this output stream. |