Type hint a File return value to avoid reflection
This commit is contained in:
parent
f1277a70bf
commit
f0ba916f32
1 changed files with 5 additions and 5 deletions
|
|
@ -2,10 +2,10 @@
|
|||
(:require [babashka.pods.impl :as impl]
|
||||
[sci.core :as sci]
|
||||
[clojure.java.io :as io]
|
||||
[babashka.pods.impl.resolver :as resolver]
|
||||
[clojure.edn :as edn]
|
||||
[clojure.walk :as walk])
|
||||
(:import (java.io DataInputStream PushbackInputStream)))
|
||||
[babashka.pods.impl.resolver :as resolver])
|
||||
(:import (java.io PushbackInputStream File)))
|
||||
|
||||
(set! *warn-on-reflection* true)
|
||||
|
||||
(defn- process-namespace [ctx {:keys [:name :vars]}]
|
||||
(let [env (:env ctx)
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
(string? var-value)
|
||||
(sci/eval-string* ctx var-value))))))
|
||||
|
||||
(defn metadata-cache-file [pod-spec {:keys [:version]}]
|
||||
(defn metadata-cache-file ^File [pod-spec {:keys [:version]}]
|
||||
(io/file (resolver/cache-dir {:pod/name pod-spec :pod/version version})
|
||||
"metadata.cache"))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue