|
3 | 3 |
|
4 | 4 | import ca.weblite.nativeutils.NativeUtils; |
5 | 5 | import com.sun.jna.Pointer; |
6 | | -import com.sun.jna.Structure; |
7 | | -import com.sun.jna.Union; |
8 | 6 | import com.sun.jna.ptr.ByReference; |
9 | 7 | import com.sun.jna.ptr.ByteByReference; |
10 | 8 | import com.sun.jna.ptr.DoubleByReference; |
|
14 | 12 | import com.sun.jna.ptr.PointerByReference; |
15 | 13 | import com.sun.jna.ptr.ShortByReference; |
16 | 14 | import java.io.IOException; |
17 | | -import java.lang.reflect.Method; |
18 | 15 | import java.util.Arrays; |
19 | | -import java.util.BitSet; |
20 | | -import java.util.List; |
21 | | -import java.util.Map; |
22 | | -import java.util.logging.Level; |
23 | | -import java.util.logging.Logger; |
24 | 16 |
|
25 | 17 |
|
26 | 18 | /** |
@@ -48,14 +40,19 @@ public class RuntimeUtils { |
48 | 40 | /** |
49 | 41 | * Short reference to the runtime instance for interacting with Objective-C |
50 | 42 | */ |
51 | | - public static Runtime rt = Runtime.INSTANCE; |
| 43 | + private static final Runtime rt = Runtime.INSTANCE; |
| 44 | + |
| 45 | + |
| 46 | + private RuntimeUtils() { |
| 47 | + |
| 48 | + } |
52 | 49 |
|
53 | 50 | /** |
54 | 51 | * Flag to indicate whether the jcocoa native library was loaded successfully. |
55 | 52 | * If it fails to load, then this flag will be false. Therefore, if this |
56 | 53 | * flag is false, you shouldn't try to use the the api at all. |
57 | 54 | */ |
58 | | - public static boolean loaded = false; |
| 55 | + private static boolean loaded = false; |
59 | 56 | static { |
60 | 57 | try { |
61 | 58 | //System.loadLibrary("jcocoa"); |
|
0 commit comments