summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLContext.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-02-27 02:07:37 +0100
committerMichael Bien <[email protected]>2011-02-27 02:07:37 +0100
commit61d365bd7c352262bff711b3954731e7928c203f (patch)
tree38e4ebe7b19e80ca090090b6d722b0086df129a8 /src/com/jogamp/opencl/CLContext.java
parentca1dee15d86d5c6327b3ffb6f4c85c6a5621e621 (diff)
code review using findbugs
keyset iterations, typos, @Override, synchronization, varargs
Diffstat (limited to 'src/com/jogamp/opencl/CLContext.java')
-rw-r--r--src/com/jogamp/opencl/CLContext.java4
1 files changed, 3 insertions, 1 deletions
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);