diff options
author | Sven Gothel <[email protected]> | 2011-11-26 08:24:56 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-26 08:24:56 +0100 |
commit | 26e6aac665d0fede32c322b66d90e82a622624ac (patch) | |
tree | 9d83021273fc3cdfb27359478833522356d21f2c /src/jogl/classes/jogamp/opengl/SharedResourceRunner.java | |
parent | 6c1aa039afc4b81eeacdc97993cd7c7b2efc6ea4 (diff) |
SharedResourceRunner: Use generics ; X11GLXDrawableFactory.SharedRunnable shutdown: don't attempt to close Display device.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/SharedResourceRunner.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/SharedResourceRunner.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/SharedResourceRunner.java b/src/jogl/classes/jogamp/opengl/SharedResourceRunner.java index 5979056f3..e24a9f8ed 100644 --- a/src/jogl/classes/jogamp/opengl/SharedResourceRunner.java +++ b/src/jogl/classes/jogamp/opengl/SharedResourceRunner.java @@ -50,7 +50,7 @@ public class SharedResourceRunner implements Runnable { Resource mapPut(String connection, Resource resource); Resource mapGet(String connection); - Collection/*<Resource>*/ mapValues(); + Collection<Resource> mapValues(); } Implementation impl = null; @@ -246,10 +246,9 @@ public class SharedResourceRunner implements Runnable { } private void releaseSharedResources() { - Collection/*<Resource>*/ sharedResources = impl.mapValues(); - for (Iterator iter = sharedResources.iterator(); iter.hasNext();) { - Resource sr = (Resource) iter.next(); - impl.releaseSharedResource(sr); + Collection<Resource> sharedResources = impl.mapValues(); + for (Iterator<Resource> iter = sharedResources.iterator(); iter.hasNext();) { + impl.releaseSharedResource(iter.next()); } impl.clear(); } |