From 61d365bd7c352262bff711b3954731e7928c203f Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 27 Feb 2011 02:07:37 +0100 Subject: code review using findbugs keyset iterations, typos, @Override, synchronization, varargs --- src/com/jogamp/opencl/CLContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/jogamp/opencl/CLContext.java') diff --git a/src/com/jogamp/opencl/CLContext.java b/src/com/jogamp/opencl/CLContext.java index a5f4e52e..81eb5f37 100644 --- a/src/com/jogamp/opencl/CLContext.java +++ b/src/com/jogamp/opencl/CLContext.java @@ -494,6 +494,7 @@ public class CLContext extends CLObject implements CLResource { /** * Releases this context and all resources. */ + @Override public synchronized void release() { try{ @@ -700,7 +701,8 @@ public class CLContext extends CLObject implements CLResource { private CLErrorHandler[] clientHandlers = new CLErrorHandler[0]; - public void onError(String errinfo, ByteBuffer private_info, long cb) { + @Override + public synchronized void onError(String errinfo, ByteBuffer private_info, long cb) { CLErrorHandler[] handlers = this.clientHandlers; for (int i = 0; i < handlers.length; i++) { handlers[i].onError(errinfo, private_info, cb); -- cgit v1.2.3