summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/com/jogamp/common/os/DynamicLibraryBundle.java2
-rw-r--r--src/native/common/JVMUtil.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
index 6ac8d94..4013203 100644
--- a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
+++ b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
@@ -74,7 +74,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper {
private long toolGetProcAddressHandle;
private boolean toolGetProcAddressComplete;
private HashSet<String> toolGetProcAddressFuncNameSet;
- private List<String> toolGetProcAddressFuncNameList;
+ private final List<String> toolGetProcAddressFuncNameList;
/** Returns an AWT-EDT {@link RunnableExecutor} implementation if AWT is available, otherwise {@link RunnableExecutor#currentThreadExecutor}. */
public static RunnableExecutor getDefaultRunnableExecutor() {
diff --git a/src/native/common/JVMUtil.c b/src/native/common/JVMUtil.c
index 28ef209..6df2aff 100644
--- a/src/native/common/JVMUtil.c
+++ b/src/native/common/JVMUtil.c
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright (c) 2014 JogAmp Community. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -48,6 +49,6 @@ Java_jogamp_common_jvm_JVMUtil_initialize(JNIEnv *env, jclass _unused, jobject n
if (nioBuffer != NULL) {
ptr = (void *) (*env)->GetDirectBufferAddress(env, nioBuffer);
}
- return ( NULL==ptr ) ? JNI_FALSE : JNI_TRUE ;
+ return NULL != ptr ? JNI_TRUE : JNI_FALSE;
}