From 826dacffbae941a35a7cc74515751ddb1d5711a2 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 19 Jun 2011 22:31:05 +0200 Subject: - added isReleased() to CLResource, made CLObject public. - a CLResource will throw an Exception if released twice. --- src/com/jogamp/opencl/CLObject.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/com/jogamp/opencl/CLObject.java') 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. @@ -53,20 +52,6 @@ abstract class CLObject implements AutoCloseable { this.ID = ID; } - /** - * 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. */ -- cgit v1.2.3