Skip to content

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

Merged
nedtwigg merged 3 commits intodiffplug:mainfrom
gnodet:i1642
Apr 5, 2023
Merged

Make sure the order of formatters is deterministic, fixes #1642#1643
nedtwigg merged 3 commits intodiffplug:mainfrom
gnodet:i1642

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