hickory
hickory copied to clipboard
properly deal with reflection warning
Followup to PR https://github.com/clj-commons/hickory/pull/92/files
Function hickory.core/parse calls Jsoup.parse unary method. In current JSoup version 1.20.1 it is overloaded for File, String and Path classes.
Current implementation uses reflection to dispatch to the correct overloaded method implementation. However, proper approach would be dispatching based on type, and I took inspiration from https://github.com/dakrone/clj-http/pull/650 for this change.
I'm fine with this change. You too @slipset ? I also bumped Jsoup to 1.21.1 now on master. We could do a release after this one is merged.