FasterXML / java-classmate

Library for introspecting generic type information of types, member/static methods, fields. Especially useful for POJO/Bean introspection.
http://fasterxml.com
Apache License 2.0
258 stars 42 forks source link

Fix flaky tests in GhostTypeParameterInFieldTest #68

Closed NanaOkada closed 2 years ago

NanaOkada commented 2 years ago

The tests testGhostTypeParameterWithClass() and testGhostTypeParameterWithInterface() are flaky because getMemberFields() will return fields in nondeterministic order. I sort the array so the order of fields in the array will always be the same.

cowtowncoder commented 2 years ago

Thank you!