Skip to content

Commit 268aa68

Browse files
committed
Remove some JVM-specific calls to make this usable from ClojureCLR
1 parent 0805347 commit 268aa68

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Changelog
22
========================================
3+
* next
4+
* Remove JVM-specific code to make this usable for ClojureCLR
35
* Release 1.1.0 on 14 Sep 2021
46
* TANAL-134: Remove :init from :def's :children when absent
57
* Added :refer-clojure :exclude for `update-keys` and `update-vals` being added in Clojure 1.11

src/main/clojure/clojure/tools/analyzer/passes/warn_earmuff.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
(let [name (str (:name ast))]
1818
(when (and (= :def (:op ast))
1919
(> (count name) 2) ;; Allow * and ** as non-dynamic names
20-
(.startsWith name "*")
21-
(.endsWith name "*")
20+
(= (nth name 0) \*)
21+
(= (nth name (dec (count name))) \*)
2222
(not (dynamic? (:var ast) (:val (:meta ast)))))
2323
(binding [*out* *err*]
2424
(println "Warning:" name "not declared dynamic and thus is not dynamically rebindable,"

0 commit comments

Comments
 (0)