diff options
| author | Michael Koch <konqueror@gmx.de> | 2004-04-20 10:43:48 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-04-20 10:43:48 +0000 |
| commit | 0150fc2287534cf7b09ddf294ccd0c8f0ff3bdf5 (patch) | |
| tree | 79bfc460bd7b5ba705a5b2a6766109d9f3f5497b /libjava/gnu/java/nio/FileLockImpl.java | |
| parent | 7431acbe5a56fb7a34777b040845a23d8135bfb7 (diff) | |
| download | gcc-0150fc2287534cf7b09ddf294ccd0c8f0ff3bdf5.zip gcc-0150fc2287534cf7b09ddf294ccd0c8f0ff3bdf5.tar.gz gcc-0150fc2287534cf7b09ddf294ccd0c8f0ff3bdf5.tar.bz2 | |
2004-04-20 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileLockImpl.java
(static): Removed, not needed anymore.
* gnu/java/nio/channels/FileChannelImpl.java
(FileChannelImpl): Made final.
(mode): Made private.
(READ, WRITE, APPEND): Made public.
(EXCL, SYNC, DSYNC): Likewise.
(static): Load native JNI library, when needed.
(length): Unused, removed.
(available): Made public.
(implPosition): Throws IOException.
(seek): Likewise.
(implTruncate): Likewise.
(unlock): Likewise.
(lock): Likewise.
From-SVN: r80891
Diffstat (limited to 'libjava/gnu/java/nio/FileLockImpl.java')
| -rw-r--r-- | libjava/gnu/java/nio/FileLockImpl.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libjava/gnu/java/nio/FileLockImpl.java b/libjava/gnu/java/nio/FileLockImpl.java index 23f67b8..c61b9ca 100644 --- a/libjava/gnu/java/nio/FileLockImpl.java +++ b/libjava/gnu/java/nio/FileLockImpl.java @@ -38,9 +38,8 @@ exception statement from your version. */ package gnu.java.nio; -import java.io.FileDescriptor; import java.io.IOException; -import java.nio.channels.*; +import java.nio.channels.FileLock; import gnu.classpath.Configuration; import gnu.java.nio.channels.FileChannelImpl; @@ -50,15 +49,6 @@ import gnu.java.nio.channels.FileChannelImpl; */ public class FileLockImpl extends FileLock { - static - { - // load the shared library needed for native methods. - if (Configuration.INIT_LOAD_LIBRARY) - { - System.loadLibrary ("javanio"); - } - } - private FileChannelImpl ch; public FileLockImpl (FileChannelImpl channel, long position, |
