Skip to content

Commit

Permalink
remove 21+ class from imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Jan 16, 2025
1 parent 86f8365 commit 00c5d31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/clojure/clojure/core/async.clj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ to catch and handle."
[java.util.concurrent.locks Lock]
[java.util.concurrent Executors Executor ThreadLocalRandom ExecutorService]
[java.util Arrays ArrayList]
[clojure.lang Var]
[java.lang Thread$Builder]))
[clojure.lang Var]))

(alias 'core 'clojure.core)

Expand Down Expand Up @@ -469,7 +468,7 @@ to catch and handle."
(def ^ExecutorService io-thread-exec
(if (= "21" (System/getProperty "java.vm.specification.version"))
(eval '(Executors/newThreadPerTaskExecutor (-> (Thread/ofVirtual)
(Thread$Builder/.name "io-thread-" 0)
(java.lang.Thread$Builder/.name "io-thread-" 0)
.factory)))
thread-macro-executor))

Expand Down

0 comments on commit 00c5d31

Please sign in to comment.