Skip to content

properly deal with reflection warning#94

Merged
borkdude merged 1 commit intoclj-commons:masterfrom
erdos:master
Apr 20, 2026
Merged

properly deal with reflection warning#94
borkdude merged 1 commit intoclj-commons:masterfrom
erdos:master

Conversation

@erdos
Copy link
Copy Markdown
Contributor

@erdos erdos commented May 24, 2025

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 dakrone/clj-http#650 for this change.

@borkdude
Copy link
Copy Markdown
Contributor

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.

@borkdude borkdude merged commit e345147 into clj-commons:master Apr 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants