From 3d3159d7c416e9db2e76b7b9305273ed9e0031cf Mon Sep 17 00:00:00 2001 From: Tobias Gerdin Date: Fri, 18 Oct 2024 11:13:19 +0100 Subject: [PATCH] Make use of Clojure 1.12 functional interface support --- .../resources/io/github/kit_clj/kit/src/clj/core.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj index 7a4b7db..44488d3 100644 --- a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj +++ b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj @@ -29,11 +29,10 @@ ;; log uncaught exceptions in threads (Thread/setDefaultUncaughtExceptionHandler - (reify Thread$UncaughtExceptionHandler - (uncaughtException [_ thread ex] + (fn [thread ex] (log/error {:what :uncaught-exception :exception ex - :where (str "Uncaught exception on" (.getName thread))})))) + :where (str "Uncaught exception on" (.getName thread))}))) (defonce system (atom nil))