diff options
author | Michael Bien <[email protected]> | 2011-07-26 02:57:50 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2011-07-26 02:57:50 +0200 |
commit | 2ad887d6a87e5c11b1e628c4cd44a3ec4efd0bd8 (patch) | |
tree | ebba3f44b27079ac4226b0fcdc6a53fba083c8f1 /src | |
parent | 2cda8a85437df106320f4237caeadd7ed1bd7578 (diff) |
fixed generics and vargs warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/jogamp/opencl/util/CLMultiContext.java | 1 | ||||
-rw-r--r-- | src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java | 2 |
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; } |