diff options
author | Sven Gothel <[email protected]> | 2011-08-31 03:25:48 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-31 03:25:48 +0200 |
commit | c75785dcc4758b3d865c5ccf6677389ab112d2fb (patch) | |
tree | d3c035106df01c6116c6c70f1479f8c352d74a07 /src/jogl/classes/com/jogamp/opengl/cg | |
parent | 490a6ebf64d767f5395554da78dda96ebb59b0fc (diff) |
DynamicLibraryBundle*: Use generics for better spec - following gluegen commit cfb9e118e020707842e6b5136b07f5ab149540c1
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/cg')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java b/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java index 08c755cd3..9e4d76869 100644 --- a/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java +++ b/src/jogl/classes/com/jogamp/opengl/cg/CgDynamicLibraryBundleInfo.java @@ -32,9 +32,9 @@ import com.jogamp.common.os.DynamicLibraryBundleInfo; import java.util.*; public class CgDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { - private static List/*<String>*/ glueLibNames; + private static List<String> glueLibNames; static { - glueLibNames = new ArrayList(); + glueLibNames = new ArrayList<String>(); // glueLibNames.addAll(getGlueLibNamesPreload()); glueLibNames.add("jogl_cg"); } @@ -54,7 +54,7 @@ public class CgDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { public boolean shallLookupGlobal() { return false; } /** Tool has none **/ - public final List getToolGetProcAddressFuncNameList() { + public final List<String> getToolGetProcAddressFuncNameList() { return null; } @@ -67,16 +67,20 @@ public class CgDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { return false; } - public List/*<List<String>>*/ getToolLibNames() { - List/*<List>*/ libNamesList = new ArrayList(); + public List<List<String>> getToolLibNames() { + final List<List<String>> libsList = new ArrayList<List<String>>(); + final List<String> libsCg = new ArrayList<String>(); + libsCg.add("Cg"); + libsList.add(libsCg); + + final List<String> libsCgGL = new ArrayList<String>(); + libsCgGL.add("CgGL"); + libsList.add(libsCgGL); - libNamesList.add("Cg"); - libNamesList.add("CgGL"); - - return libNamesList; + return libsList; } - public final List/*<String>*/ getGlueLibNames() { + public final List<String> getGlueLibNames() { return glueLibNames; } } |