From 2ad887d6a87e5c11b1e628c4cd44a3ec4efd0bd8 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Tue, 26 Jul 2011 02:57:50 +0200 Subject: fixed generics and vargs warning. --- src/com/jogamp/opencl/util/CLMultiContext.java | 1 + src/com/jogamp/opencl/util/concurrent/CLTaskCompletionService.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 { * 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> queue) { this.service = new ExecutorCompletionService(pool.getExcecutor(), queue); this.pool = pool; } -- cgit v1.2.3