diff options
author | Sven Gothel <[email protected]> | 2012-02-23 22:35:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-23 22:35:27 +0100 |
commit | 429c20d2f4335ddc5409dcbfc183336dc8d3155f (patch) | |
tree | 4350e498bc3991f11d678ffa875929a06d9139fa /src | |
parent | 852aefc9840030ee6581c5470b9f34da47481589 (diff) |
MemoryObject: Use proper generics style
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/MemoryObject.java | 4 |
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; |