summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLObject.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-06-19 22:31:05 +0200
committerMichael Bien <[email protected]>2011-06-19 22:31:05 +0200
commit826dacffbae941a35a7cc74515751ddb1d5711a2 (patch)
tree5cf5d5f67ceda1cbf136a6f30295f4ffa8c6c640 /src/com/jogamp/opencl/CLObject.java
parent00096ac5b2c824fc7e8d7203229c8f246caf833c (diff)
- added isReleased() to CLResource, made CLObject public.
- a CLResource will throw an Exception if released twice.
Diffstat (limited to 'src/com/jogamp/opencl/CLObject.java')
-rw-r--r--src/com/jogamp/opencl/CLObject.java17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/com/jogamp/opencl/CLObject.java b/src/com/jogamp/opencl/CLObject.java
index 3273c4db..58a6333c 100644
--- a/src/com/jogamp/opencl/CLObject.java
+++ b/src/com/jogamp/opencl/CLObject.java
@@ -28,13 +28,12 @@
package com.jogamp.opencl;
-import com.jogamp.common.AutoCloseable;
/**
* Common superclass for all OpenCL objects.
* @author Michael Bien
*/
-abstract class CLObject implements AutoCloseable {
+public abstract class CLObject {
/**
* The OpenCL object handle.
@@ -54,20 +53,6 @@ abstract class CLObject implements AutoCloseable {
}
/**
- * Implementation detail.
- * TODO remove as soon we have extension methods.
- * @deprecated This method is not intended to be called from client code.
- * @see java.lang.AutoCloseable
- */
- @Deprecated
- @Override
- public final void close() {
- if(this instanceof CLResource) {
- ((CLResource)this).release();
- }
- }
-
- /**
* Returns the context for this OpenCL object.
*/
public CLContext getContext() {