Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove some reflection warning

  • Loading branch information...
commit 985e060d71d1b82d12d39fd77f9461f09224bb6f 1 parent 2dfd528
@sunng87 authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  project.clj
  2. +2 −2 src/clojalk/utils.clj
View
1  project.clj
@@ -6,4 +6,5 @@
:dev-dependencies [[org.clojars.sunng/beanstalk "1.0.5"]
[lein-exec "0.1"]
[lein-marginalia "0.6.0"]]
+ :warn-on-reflection true
:main clojalk.main)
View
4 src/clojalk/utils.clj
@@ -2,7 +2,7 @@
(:require [clojure.contrib.logging :as logging])
(:require [clojure.contrib.string :as string])
(:import [java.util UUID])
- (:import [java.util.concurrent Executors TimeUnit]))
+ (:import [java.util.concurrent Executors TimeUnit ExecutorService]))
(defn current-time []
(System/currentTimeMillis))
@@ -79,7 +79,7 @@
;; schedule a delayed task to thread pool and return thread pool itself
(defn- do-schedule [threads task delay]
- (.schedule threads ^Runnable task ^long (long delay) ^TimeUnit TimeUnit/SECONDS)
+ (.schedule ^ExecutorService threads ^Runnable task ^long (long delay) ^TimeUnit TimeUnit/SECONDS)
threads)
;; schedule a delayed task, can be used within an stm
Please sign in to comment.
Something went wrong with that request. Please try again.