Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that serialized signatures use HashSets #24

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Ensure that serialized signatures use HashSets #24

merged 2 commits into from
Nov 7, 2023

Conversation

ogolberg
Copy link
Member

@ogolberg ogolberg commented Nov 7, 2023

Because Animal Sniffer signatures are serialized using Java Serialization, we need to make sure that the types embedded into the signatures are available on the classpath when Animal Sniffer is run. Specifically, for Clazz.signatures, when the set is empty, Kotlin's toSet method will return a kotlin.collections.EmptySet. This change ensures that a plain HashSet is always used.

Fixes #23.

@ogolberg ogolberg merged commit 0d778e6 into main Nov 7, 2023
@ogolberg ogolberg deleted the hashset branch November 7, 2023 18:16
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.

NoClassDefFoundError: kotlin.collections.EmptySet
1 participant