summaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorMark Raynsford <[email protected]>2014-06-30 13:20:36 +0000
committerMark Raynsford <[email protected]>2014-06-30 13:20:36 +0000
commitdc1fee7a307ed24c1b6b02fa0936641450c24984 (patch)
tree97668d32174387ef06ee5ef94a0152a9b0e4dbbd /src/java
parent46430b8202c3fde3ee60f72c38c621729bac52ec (diff)
Do not keep re-indexing into the same array.
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/jogamp/common/jvm/JNILibLoaderBase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
index e845190..0617204 100644
--- a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
+++ b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
@@ -330,13 +330,13 @@ public class JNILibLoaderBase {
ok = true;
for (int i = 0; i < classesFromJavaJars.length; ++i) {
- Class<?> c = classesFromJavaJars[i];
+ final Class<?> c = classesFromJavaJars[i];
if (c == null) {
continue;
}
- final ClassLoader cl = classesFromJavaJars[i].getClassLoader();
- final URI classJarURI = JarUtil.getJarURI(classesFromJavaJars[i].getName(), cl);
+ final ClassLoader cl = c.getClassLoader();
+ final URI classJarURI = JarUtil.getJarURI(c.getName(), cl);
final String jarName = JarUtil.getJarBasename(classJarURI);
if (jarName == null) {
@@ -362,7 +362,7 @@ public class JNILibLoaderBase {
final String nativeJarBasename = String.format("%s-natives-%s.jar", jarBasename, PlatformPropsImpl.os_and_arch);
- ok = JNILibLoaderBase.addNativeJarLibsImpl(classesFromJavaJars[i], classJarURI, jarName, nativeJarBasename);
+ ok = JNILibLoaderBase.addNativeJarLibsImpl(c, classJarURI, jarName, nativeJarBasename);
if (ok) {
count++;
}