Skip to content

v2.2.1

Compare
Choose a tag to compare
@Chrimle Chrimle released this 01 Dec 19:57
· 52 commits to main since this release
14b56d2

What's Changed

Bug Fixes

  • Support non-String values in fromValue() methods of generated enum classes by @Chrimle in #235

    Fixed 2 bugs related to the fromValue()-method in generated enum classes. The first, affected all generated enum classes where the type-property was not set to string. The fromValue()-method would always generate the method parameter as String, leading to issues caused by comparing incompatible types. The second issue is encountered under the same conditions, but when the configOption useEnumCaseInsensitive is set to true. This would invoke equalsIgnoreCase on non-String objects - which caused compilation errors. Both of these bug fixes are contained to the fromValue()-method and are fully backwards-compatible.

Full Changelog: v2.2.0...v2.2.1