summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/MemoryObject.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-23 22:35:27 +0100
committerSven Gothel <[email protected]>2012-02-23 22:35:27 +0100
commit429c20d2f4335ddc5409dcbfc183336dc8d3155f (patch)
tree4350e498bc3991f11d678ffa875929a06d9139fa /src/jogl/classes/jogamp/opengl/MemoryObject.java
parent852aefc9840030ee6581c5470b9f34da47481589 (diff)
MemoryObject: Use proper generics style
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/MemoryObject.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/MemoryObject.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/MemoryObject.java b/src/jogl/classes/jogamp/opengl/MemoryObject.java
index 8b2cf0c4c..292700701 100644
--- a/src/jogl/classes/jogamp/opengl/MemoryObject.java
+++ b/src/jogl/classes/jogamp/opengl/MemoryObject.java
@@ -110,8 +110,8 @@ public class MemoryObject {
* @param obj0 the MemoryObject
* @return either the already mapped MemoryObject - not changing the map, or the newly mapped one.
*/
- public static MemoryObject getOrAddSafe(HashMap/*<MemoryObject,MemoryObject>*/ map, MemoryObject obj0) {
- MemoryObject obj1 = (MemoryObject) map.get(obj0); // get identity (fast)
+ public static MemoryObject getOrAddSafe(HashMap<MemoryObject,MemoryObject> map, MemoryObject obj0) {
+ MemoryObject obj1 = map.get(obj0); // get identity (fast)
if(null == obj1) {
map.put(obj0, obj0);
obj1 = obj0;