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]
|
(:require [babashka.pods.impl :as impl]
|
||||||
[sci.core :as sci]
|
[sci.core :as sci]
|
||||||
[clojure.java.io :as io]
|
[clojure.java.io :as io]
|
||||||
[babashka.pods.impl.resolver :as resolver]
|
[babashka.pods.impl.resolver :as resolver])
|
||||||
[clojure.edn :as edn]
|
(:import (java.io PushbackInputStream File)))
|
||||||
[clojure.walk :as walk])
|
|
||||||
(:import (java.io DataInputStream PushbackInputStream)))
|
(set! *warn-on-reflection* true)
|
||||||
|
|
||||||
(defn- process-namespace [ctx {:keys [:name :vars]}]
|
(defn- process-namespace [ctx {:keys [:name :vars]}]
|
||||||
(let [env (:env ctx)
|
(let [env (:env ctx)
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
(string? var-value)
|
(string? var-value)
|
||||||
(sci/eval-string* ctx 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})
|
(io/file (resolver/cache-dir {:pod/name pod-spec :pod/version version})
|
||||||
"metadata.cache"))
|
"metadata.cache"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue