From 0b0a4735f71f1e34adf426a1c033b94aca01ab75 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 24 Feb 2010 16:00:35 +0100 Subject: code review, spell checks and scope. --- test/com/mbien/opencl/CLBufferTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/com') diff --git a/test/com/mbien/opencl/CLBufferTest.java b/test/com/mbien/opencl/CLBufferTest.java index 39f85a75..7a16e9d7 100644 --- a/test/com/mbien/opencl/CLBufferTest.java +++ b/test/com/mbien/opencl/CLBufferTest.java @@ -26,7 +26,7 @@ public class CLBufferTest { CLContext context = CLContext.create(); - // the CL.MEM_* flag is probably completly irrelevant in our case since we do not use a kernel in this test + // the CL.MEM_* flag is probably completely irrelevant in our case since we do not use a kernel in this test CLBuffer clBufferA = context.createByteBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); CLBuffer clBufferB = context.createByteBuffer(elements*SIZEOF_INT, Mem.READ_ONLY); @@ -101,9 +101,9 @@ public class CLBufferTest { final int elements = NUM_ELEMENTS; final int sizeInBytes = elements*SIZEOF_INT; - CLContext context = null; - CLBuffer clBufferA = null; - CLBuffer clBufferB = null; + CLContext context; + CLBuffer clBufferA; + CLBuffer clBufferB; // We will have to allocate mappable NIO memory on non CPU contexts // since we can't map e.g GPU memory. -- cgit v1.2.3