From d6d9ac316cb558b99bc76a8939a063578e582835 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Thu, 16 Sep 2021 15:13:50 -0500 Subject: [PATCH] Remove reflection warning on scopes --- src/coffi/ffi.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 3cbe06a..c1bd3c2 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -28,7 +28,7 @@ The memory allocated within this scope is cheap to allocate, like a native stack." - [] + ^ResourceScope [] (ResourceScope/newConfinedScope)) (defn shared-scope @@ -36,7 +36,7 @@ This scope can be shared across threads and memory allocated in it will only be cleaned up once every thread accessing the scope closes it." - [] + ^ResourceScope [] (ResourceScope/newSharedScope)) (defn connected-scope @@ -47,7 +47,7 @@ This type of scope cannot be closed, and therefore should not be created in a [[with-open]] clause." - [] + ^ResourceScope [] (ResourceScope/newImplicitScope)) (defn alloc