v2.2.1
What's Changed
Bug Fixes
- Support non-
String
values infromValue()
methods of generatedenum
classes by @Chrimle in #235Fixed 2 bugs related to the
fromValue()
-method in generatedenum
classes. The first, affected all generatedenum
classes where thetype
-property was not set tostring
. ThefromValue()
-method would always generate the method parameter asString
, leading to issues caused by comparing incompatible types. The second issue is encountered under the same conditions, but when the configOptionuseEnumCaseInsensitive
is set totrue
. This would invokeequalsIgnoreCase
on non-String
objects - which caused compilation errors. Both of these bug fixes are contained to thefromValue()
-method and are fully backwards-compatible.
Full Changelog: v2.2.0...v2.2.1