clj-kondo 2024-09-23

Can I make Java interoperability rules with clj-kondo?

(.getBytes "KO") ;; warning about missing Charset
(.getBytes "OK" "UTF-8") 

currently this one isn't possible yet. feel free to provide an issue

👍🏽 1

It is possible with static method calls btw

💡 1

Perhaps with the new Clojure syntax, it's easier to support this, e.g.: (String/.getBytes "KO") I think this is probably already supported

but nobody uses this syntax yet

Right that would solve this, and perhaps making it more explicit as well.