summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-07-15 21:46:29 -0700
committerHarvey Harrison <[email protected]>2013-07-15 21:46:29 -0700
commitaf1f56c6f4a962720f5d63397e65505a29d6b0cb (patch)
tree06ef4d857f5ded7fcf99a1a77feb3dbbf50a3156
parent8a3fe617f28bbdfafede3bc6aa474b3b3bc2142a (diff)
gluegen: remove unneeded casts to JarEntry
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--src/java/com/jogamp/common/util/JarUtil.java2
-rw-r--r--src/java/com/jogamp/common/util/cache/TempJarCache.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/util/JarUtil.java b/src/java/com/jogamp/common/util/JarUtil.java
index 9ea6f70..5604c3d 100644
--- a/src/java/com/jogamp/common/util/JarUtil.java
+++ b/src/java/com/jogamp/common/util/JarUtil.java
@@ -522,7 +522,7 @@ public class JarUtil {
Enumeration<JarEntry> entries = jarFile.entries();
while (entries.hasMoreElements()) {
- JarEntry entry = (JarEntry) entries.nextElement();
+ JarEntry entry = entries.nextElement();
String entryName = entry.getName();
// Match entries with correct prefix and suffix (ignoring case)
diff --git a/src/java/com/jogamp/common/util/cache/TempJarCache.java b/src/java/com/jogamp/common/util/cache/TempJarCache.java
index 4c505f9..30dea45 100644
--- a/src/java/com/jogamp/common/util/cache/TempJarCache.java
+++ b/src/java/com/jogamp/common/util/cache/TempJarCache.java
@@ -429,7 +429,7 @@ public class TempJarCache {
validateCertificates(certClass, jarFile);
final Enumeration<JarEntry> entries = jarFile.entries();
while (entries.hasMoreElements()) {
- final JarEntry entry = (JarEntry) entries.nextElement();
+ final JarEntry entry = entries.nextElement();
final String entryName = entry.getName();
if( entryName.indexOf('/') == -1 &&