summaryrefslogtreecommitdiff
path: root/src/it/it0012-jni-dep-lib-static
diff options
context:
space:
mode:
Diffstat (limited to 'src/it/it0012-jni-dep-lib-static')
-rw-r--r--src/it/it0012-jni-dep-lib-static/src/main/java/it0012/HelloWorldSharedLibJNI.java2
-rw-r--r--src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/it/it0012-jni-dep-lib-static/src/main/java/it0012/HelloWorldSharedLibJNI.java b/src/it/it0012-jni-dep-lib-static/src/main/java/it0012/HelloWorldSharedLibJNI.java
index de48437..effc91b 100644
--- a/src/it/it0012-jni-dep-lib-static/src/main/java/it0012/HelloWorldSharedLibJNI.java
+++ b/src/it/it0012-jni-dep-lib-static/src/main/java/it0012/HelloWorldSharedLibJNI.java
@@ -26,7 +26,7 @@ public class HelloWorldSharedLibJNI
NarSystem.loadLibrary();
}
- public native String sayHello();
+ public final native String sayHello();
public static void main( String[] args )
{
diff --git a/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java b/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java
index 28dedd1..1a7e4b2 100644
--- a/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java
+++ b/src/it/it0012-jni-dep-lib-static/src/test/java/it0012/test/HelloWorldSharedLibJNITest.java
@@ -25,8 +25,7 @@ import org.junit.Test;
public class HelloWorldSharedLibJNITest
{
- @Test
- public void testNativeHelloWorldSharedLibJNI()
+ @Test public final void testNativeHelloWorldSharedLibJNI()
throws Exception
{
HelloWorldSharedLibJNI app = new HelloWorldSharedLibJNI();