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

Make sure the order of formatters is deterministic, fixes #1642 #1643

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 28, 2023

This PR fixes #1642 which causes the serialised fingerprint to not be deterministic, as it depends on the order in which the map holding the formatters is iterated.
Using a LinkedHashMap to hold the Formatter list solves the problem.

@nedtwigg

@nedtwigg nedtwigg merged commit 3d0d16f into diffplug:main Apr 5, 2023
@nedtwigg
Copy link
Member

nedtwigg commented Apr 6, 2023

Published in plugin-maven 2.36.0.

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.

Non reproducible index serialization
2 participants