Skip to content

Commit a1307a8

Browse files
author
Vadim Platonov
committed
Fix primitive return type annotations
1 parent 177884e commit a1307a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/java_time/convert.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
[o]
9191
(java.sql.Timestamp/from (jt.t/instant o)))
9292

93-
(defn ^long to-millis-from-epoch
93+
(defn to-millis-from-epoch
9494
"Converts a date entity to a `long` representing the number of milliseconds
9595
from epoch."
96-
[o]
96+
^long [o]
9797
(if (number? o) (long o)
9898
(.toEpochMilli (jt.t/instant o))))

src/java_time/single_field.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[java.time.format DateTimeFormatter]
1111
[java.time Clock Year Month YearMonth MonthDay DayOfWeek ZoneId Instant]))
1212

13-
(defn- ^long get-only-unit-value [^TemporalAmount a, ^TemporalUnit u]
13+
(defn- get-only-unit-value ^long [^TemporalAmount a, ^TemporalUnit u]
1414
(let [non-zero-units
1515
(->> (.getUnits a)
1616
(map (fn [^TemporalUnit tu] (vector tu (.get a tu))))

0 commit comments

Comments
 (0)