Added @ThreadSafe.
This commit is contained in:
@@ -5,12 +5,14 @@ import java.io.File;
|
||||
/**
|
||||
* Functions to query and modify a file's POSIX meta-data.
|
||||
*/
|
||||
@ThreadSafe
|
||||
public interface PosixFile extends NativeIntegration {
|
||||
/**
|
||||
* Sets the mode for the given file.
|
||||
*
|
||||
* @throws NativeException On failure.
|
||||
*/
|
||||
@ThreadSafe
|
||||
void setMode(File path, int perms) throws NativeException;
|
||||
|
||||
/**
|
||||
@@ -18,6 +20,7 @@ public interface PosixFile extends NativeIntegration {
|
||||
*
|
||||
* @throws NativeException On failure.
|
||||
*/
|
||||
@ThreadSafe
|
||||
int getMode(File path) throws NativeException;
|
||||
|
||||
/**
|
||||
@@ -25,6 +28,7 @@ public interface PosixFile extends NativeIntegration {
|
||||
*
|
||||
* @throws NativeException On failure.
|
||||
*/
|
||||
@ThreadSafe
|
||||
void symlink(File link, String contents) throws NativeException;
|
||||
|
||||
/**
|
||||
@@ -32,5 +36,6 @@ public interface PosixFile extends NativeIntegration {
|
||||
*
|
||||
* @throws NativeException On failure.
|
||||
*/
|
||||
@ThreadSafe
|
||||
String readLink(File link) throws NativeException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user