cognitect-labs / test-runner

A test runner for clojure.test
Eclipse Public License 2.0
288 stars 32 forks source link

Reflection warning #24

Closed sirmspencer closed 3 years ago

sirmspencer commented 3 years ago

Reflection warning, cognitect/test_runner.clj:71:7 - call to method startsWith can't be resolved (target class is unknown).

The code block is:

(defn- parse-kw
  [s]
  (if (.startsWith s ":") (read-string s) (keyword s)))

I would just create the PR, but im not 100% what the type of s is. If you are not familiar with reflection warnings s needs a type hint. something like ^String for a java.String. Just make sure to import the type you are hinting.