diff options
Diffstat (limited to 'luxc/src/lux/compiler.clj')
-rw-r--r-- | luxc/src/lux/compiler.clj | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/luxc/src/lux/compiler.clj b/luxc/src/lux/compiler.clj index 78fe301fd..b9b4e8de0 100644 --- a/luxc/src/lux/compiler.clj +++ b/luxc/src/lux/compiler.clj @@ -124,15 +124,15 @@ (defn init! "(-> (List Text) Null)" - [resources-dirs target-dir] + [resources-dirs ^String target-dir] (do (reset! &&/!output-dir target-dir) (&¶llel/setup!) (reset! !source->last-line {}) - (.mkdirs (java.io.File. target-dir)) + (.mkdirs (new java.io.File target-dir)) (let [class-loader (ClassLoader/getSystemClassLoader) addURL (doto (.getDeclaredMethod java.net.URLClassLoader "addURL" (into-array [java.net.URL])) (.setAccessible true))] - (doseq [resources-dir (&/->seq resources-dirs)] + (doseq [^String resources-dir (&/->seq resources-dirs)] (.invoke addURL class-loader (to-array [(->> resources-dir (new java.io.File) .toURI .toURL)])))))) |