-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Do not override value with loop variable
- The enum conversion code uses value, which was also used as the name for a loop variable that iterates attributes. As a result, the loop variable overrode value, which is then checked if it is an enum. If the last attribute in a class instance happens to be an enum, the class instance will replace that enum value in the map.
- Loading branch information
1 parent
6534b0f
commit c416a8b
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters