Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CINCU-1 - fix reflection warnings and turn on warnings during build

  • Loading branch information...
commit 98672b9f627631215b47744fe193550f389d1095 1 parent 16aed87
@puredanger puredanger authored
View
4 pom.xml
@@ -16,4 +16,8 @@
<url>git@github.com:clojure/core.incubator.git</url>
<tag>HEAD</tag>
</scm>
+
+ <properties>
+ <clojure.warnOnReflection>true</clojure.warnOnReflection>
+ </properties>
</project>
View
2  src/main/clojure/clojure/core/incubator.clj
@@ -87,6 +87,6 @@
(instance? clojure.lang.Seqable x)
(nil? x)
(instance? Iterable x)
- (-> x .getClass .isArray)
+ (.isArray (.getClass ^Object x))
(string? x)
(instance? java.util.Map x)))
View
2  src/main/clojure/clojure/core/strint.clj
@@ -37,7 +37,7 @@
(cons (subs s 0 2) (interpolate (subs s 2))))))
([^String s]
(if-let [start (->> ["~{" "~("]
- (map #(.indexOf s %))
+ (map #(.indexOf s ^String %))
(remove #(== -1 %))
sort
first)]
Please sign in to comment.
Something went wrong with that request. Please try again.