diff graal/com.oracle.nfi/src/com/oracle/nfi/NativeFunctionInterfaceRuntime.java @ 16704:3cd605c98060

NFI: cleanup
author Matthias Grimmer <grimmer@ssw.jku.at>
date Wed, 06 Aug 2014 08:27:42 +0200
parents dd8449afc086
children 13f8c249edb8
line wrap: on
line diff
--- a/graal/com.oracle.nfi/src/com/oracle/nfi/NativeFunctionInterfaceRuntime.java	Tue Aug 05 16:35:28 2014 -0700
+++ b/graal/com.oracle.nfi/src/com/oracle/nfi/NativeFunctionInterfaceRuntime.java	Wed Aug 06 08:27:42 2014 +0200
@@ -24,9 +24,19 @@
 
 import com.oracle.nfi.api.*;
 
+/**
+ * Class for obtaining the Native Function Interface runtime singleton object of this virtual
+ * machine.
+ */
 public final class NativeFunctionInterfaceRuntime {
     private static final NativeFunctionInterface INTERFACE;
 
+    /**
+     * Creates a new {@link NativeFunctionInterface} instance if running on top of Graal.
+     *
+     * @throws UnsatisfiedLinkError if not running on top of Graal and initialize the
+     *             {@link NativeFunctionInterface} instance with <code>null</code>.
+     */
     private static native NativeFunctionInterface createInterface();
 
     public static NativeFunctionInterface getNativeFunctionInterface() {
@@ -38,8 +48,6 @@
         try {
             instance = createInterface();
         } catch (UnsatisfiedLinkError e) {
-            System.err.println("Graal Native Function Interface not supported!");
-            e.printStackTrace();
             instance = null;
         }
         INTERFACE = instance;