summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-07-26 02:57:50 +0200
committerMichael Bien <[email protected]>2011-07-26 02:57:50 +0200
commit2ad887d6a87e5c11b1e628c4cd44a3ec4efd0bd8 (patch)
treeebba3f44b27079ac4226b0fcdc6a53fba083c8f1
parent2cda8a85437df106320f4237caeadd7ed1bd7578 (diff)
fixed generics and vargs warning.
-rw-r--r--src/com/jogamp/opencl/util/CLMultiContext.java1
-rw-r--r--src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/jogamp/opencl/util/CLMultiContext.java b/src/com/jogamp/opencl/util/CLMultiContext.java
index 327cdd9a..789ed0f5 100644
--- a/src/com/jogamp/opencl/util/CLMultiContext.java
+++ b/src/com/jogamp/opencl/util/CLMultiContext.java
@@ -35,6 +35,7 @@ public class CLMultiContext implements CLResource {
/**
* Creates a multi context with all devices of the specified platforms.
*/
+ @SuppressWarnings("unchecked")
public static CLMultiContext create(CLPlatform... platforms) {
return create(platforms, CLDeviceFilters.type(ALL));
}
diff --git a/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java b/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java
index 4a548b10..fe0b7e1c 100644
--- a/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java
+++ b/src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java
@@ -60,7 +60,7 @@ public class CLTaskCompletionService<R> {
* Creates an CLTaskCompletionService using the supplied pool for base
* task execution the supplied queue as its completion queue.
*/
- public CLTaskCompletionService(CLCommandQueuePool pool, BlockingQueue queue) {
+ public CLTaskCompletionService(CLCommandQueuePool pool, BlockingQueue<Future<R>> queue) {
this.service = new ExecutorCompletionService<R>(pool.getExcecutor(), queue);
this.pool = pool;
}