alibaba / fastjson2

🚄 FASTJSON2 is a Java JSON library with excellent performance.
Apache License 2.0
3.79k stars 495 forks source link

Fix non deterministic test for issue#3098 #3106

Closed Mukta13 closed 1 month ago

Mukta13 commented 1 month ago

What this PR does / why we need it?

This is a fix for: #3098

Summary of your change

Changed the HashMap to a Linked HashMap to avoid the non determinism introduced due to Hash Map.

This fix can be checked using:

mvn -pl core edu.illinois:nondex-maven-plugin:2.1.7:nondex -Dtest=com.alibaba.fastjson2.issues_2600.Issue2672#test

Please indicate you've done the following: