Skip to content

Commit

Permalink
Fix: A little bit of reflection.
Browse files Browse the repository at this point in the history
  • Loading branch information
teesloane committed May 15, 2020
1 parent d287521 commit 07245b4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions clojure/src/firn/util.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
(ns firn.util
(:require [clojure.java.io :as io]
[clojure.string :as s]
[sci.core :as sci]))
[sci.core :as sci])
(:import (java.lang Integer)))


(set! *warn-on-reflection* true)

;; Some of these are borrowed from me.raynes.fs because I need to add ;; type hints for GraalVM

Expand Down Expand Up @@ -159,8 +163,8 @@
NOTE: figure out what's idiomatic for handling bad inputs?"
[tstr]
(let [split (s/split tstr #":")
hours (Integer. (first split))
minutes (Integer. (second split))]
hours (Integer. ^java.lang.Integer (first split))
minutes (Integer. ^java.lang.Integer (second split))]
[hours minutes]))

(defn timevec->time-str
Expand Down

0 comments on commit 07245b4

Please sign in to comment.