Skip to content

Commit

Permalink
improved generics and fixed javadoc warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbien committed Feb 28, 2010
1 parent c3f0716 commit f244773
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/com/mbien/opencl/CLBuildConfiguration.java
Expand Up @@ -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);

Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/mbien/opencl/CLProgramBuilder.java
Expand Up @@ -153,7 +153,7 @@ public CLProgramBuilder withDefine(String name, Object value) {
}

@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)));
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/mbien/opencl/CLProgramConfiguration.java
Expand Up @@ -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();
Expand Down

0 comments on commit f244773

Please sign in to comment.