From c75785dcc4758b3d865c5ccf6677389ab112d2fb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 31 Aug 2011 03:25:48 +0200 Subject: DynamicLibraryBundle*: Use generics for better spec - following gluegen commit cfb9e118e020707842e6b5136b07f5ab149540c1 --- .../opengl/cg/CgDynamicLibraryBundleInfo.java | 24 +++++++++++++--------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'src/jogl/classes/com') 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/**/ glueLibNames; + private static List glueLibNames; static { - glueLibNames = new ArrayList(); + glueLibNames = new ArrayList(); // 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 getToolGetProcAddressFuncNameList() { return null; } @@ -67,16 +67,20 @@ public class CgDynamicLibraryBundleInfo implements DynamicLibraryBundleInfo { return false; } - public List/*>*/ getToolLibNames() { - List/**/ libNamesList = new ArrayList(); + public List> getToolLibNames() { + final List> libsList = new ArrayList>(); + final List libsCg = new ArrayList(); + libsCg.add("Cg"); + libsList.add(libsCg); + + final List libsCgGL = new ArrayList(); + libsCgGL.add("CgGL"); + libsList.add(libsCgGL); - libNamesList.add("Cg"); - libNamesList.add("CgGL"); - - return libNamesList; + return libsList; } - public final List/**/ getGlueLibNames() { + public final List getGlueLibNames() { return glueLibNames; } } -- cgit v1.2.3