summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-28 02:23:29 +0100
committerMichael Bien <[email protected]>2010-02-28 02:23:29 +0100
commitf24477382cc1c26d5f5fd0a09e2c42c7f60cb974 (patch)
tree68b9f5f84890ea1c0f5e11aabf841aa1ac7bd24c /src/com/mbien/opencl
parentc3f0716ba1de6c0a7ff8c5d25e9e599b9a1b83b2 (diff)
improved generics and fixed javadoc warnings.
Diffstat (limited to 'src/com/mbien/opencl')
-rw-r--r--src/com/mbien/opencl/CLBuildConfiguration.java6
-rw-r--r--src/com/mbien/opencl/CLProgramBuilder.java2
-rw-r--r--src/com/mbien/opencl/CLProgramConfiguration.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/com/mbien/opencl/CLBuildConfiguration.java b/src/com/mbien/opencl/CLBuildConfiguration.java
index eee641a0..875f8d3a 100644
--- a/src/com/mbien/opencl/CLBuildConfiguration.java
+++ b/src/com/mbien/opencl/CLBuildConfiguration.java
@@ -61,7 +61,7 @@ public interface CLBuildConfiguration extends Cloneable {
/**
* Adds the definition to the build configuration.
- * @see CLProgram#define(java.lang.String, java.lang.String)
+ * @see CLProgram#define(java.lang.String, java.lang.Object)
*/
public CLBuildConfiguration withDefine(String name, Object value);
@@ -73,9 +73,9 @@ public interface CLBuildConfiguration extends Cloneable {
/**
* Adds the definitions to the build configuration.
- * @see CLProgram#define(java.lang.String, java.lang.String)
+ * @see CLProgram#define(java.lang.String, java.lang.Object)
*/
- public CLBuildConfiguration withDefines(Map<String, String> defines);
+ public CLBuildConfiguration withDefines(Map<String, ? extends Object> defines);
/**
* Adds the compiler option to the build configuration.
diff --git a/src/com/mbien/opencl/CLProgramBuilder.java b/src/com/mbien/opencl/CLProgramBuilder.java
index fef7d878..14300ef0 100644
--- a/src/com/mbien/opencl/CLProgramBuilder.java
+++ b/src/com/mbien/opencl/CLProgramBuilder.java
@@ -153,7 +153,7 @@ public final class CLProgramBuilder implements CLProgramConfiguration, Serializa
}
@Override
- public CLProgramBuilder withDefines(Map<String, String> defines) {
+ public CLProgramBuilder withDefines(Map<String, ? extends Object> defines) {
for (String name : defines.keySet()) {
defineSet.add(CLProgram.define(name, defines.get(name)));
}
diff --git a/src/com/mbien/opencl/CLProgramConfiguration.java b/src/com/mbien/opencl/CLProgramConfiguration.java
index fc074f33..405b911d 100644
--- a/src/com/mbien/opencl/CLProgramConfiguration.java
+++ b/src/com/mbien/opencl/CLProgramConfiguration.java
@@ -36,7 +36,7 @@ public interface CLProgramConfiguration extends CLBuildConfiguration {
@Override public CLProgramConfiguration withDefine(String name);
@Override public CLProgramConfiguration withDefine(String name, Object value);
@Override public CLProgramConfiguration withDefines(String... names);
- @Override public CLProgramConfiguration withDefines(Map<String, String> defines);
+ @Override public CLProgramConfiguration withDefines(Map<String, ? extends Object> defines);
@Override public CLProgramConfiguration withOption(String option);
@Override public CLProgramConfiguration withOptions(String... options);
@Override public CLProgramConfiguration reset();