java: mark all EvmcVm native methods as "private static"
@@ -50,7 +50,7 @@ public final class EvmcVm implements AutoCloseable {
* @param Path to the dynamic object representing the EVM implementation.
* @return Internal object pointer.
*/
- native ByteBuffer load_and_create(String filename);
+ private static native ByteBuffer load_and_create(String filename);
/**
* EVMC ABI version implemented by the VM instance.
@@ -58,7 +58,7 @@ public final class EvmcVm implements AutoCloseable {
* <p>Can be used to detect ABI incompatibilities. The EVMC ABI version represented by this file
* is in ::EVMC_ABI_VERSION.
*/
- public native int abi_version();
+ public static native int abi_version();
/**
* The name of the EVMC VM implementation.
@@ -66,7 +66,7 @@ public final class EvmcVm implements AutoCloseable {
* <p>It MUST be a NULL-terminated not empty string. The content MUST be UTF-8 encoded (this
* implies ASCII encoding is also allowed).
*/
- native String name(ByteBuffer nativeVm);
+ private static native String name(ByteBuffer nativeVm);
/** Function is a wrapper around native name(). */
public String name() {
@@ -79,7 +79,7 @@ public final class EvmcVm implements AutoCloseable {
* <p>It MUST be a NULL-terminated not empty string. The content MUST be UTF-8 encoded (this
* implies ASCII encoding is also allowed).
*/
- native String version(ByteBuffer nativeVm);
+ private static native String version(ByteBuffer nativeVm);
/** Function is a wrapper around native version(). */
public String version() {
@@ -91,14 +91,14 @@ public final class EvmcVm implements AutoCloseable {
*
* <p>This is a mandatory method and MUST NOT be set to NULL.
*/
- native void destroy(ByteBuffer nativeVm);
+ private static native void destroy(ByteBuffer nativeVm);
/**
* Function to execute a code by the VM instance.
*
* <p>This is a mandatory method and MUST NOT be set to NULL.
*/
- native void execute(
+ private static native void execute(
ByteBuffer nativeVm,
int context_index,
int rev,
@@ -132,7 +132,7 @@ public final class EvmcVm implements AutoCloseable {
*
* <p>This is a mandatory method and MUST NOT be set to NULL.
*/
- native int get_capabilities(ByteBuffer nativeVm);
+ private static native int get_capabilities(ByteBuffer nativeVm);
/** Function is a wrapper around native get_capabilities(). */
public int get_capabilities() {
@@ -144,7 +144,7 @@ public final class EvmcVm implements AutoCloseable {
*
* <p>If the VM does not support this feature the pointer can be NULL.
*/
- native int set_option(ByteBuffer nativeVm, String name, String value);
+ private static native int set_option(ByteBuffer nativeVm, String name, String value);
/** Function is a wrapper around native set_option(). */
public int set_option(String name, String value) {
@@ -152,7 +152,7 @@ public final class EvmcVm implements AutoCloseable {
}
/** get size of result struct */
- native int get_result_size();
+ private static native int get_result_size();
/**
* This method cleans up resources
