dasMulli / data-builder-generator

Code generator to easily create data builder patterns for your model classes
MIT License
116 stars 11 forks source link

Use default operator in constructor calls of Build method #10

Open algrn-abirke opened 2 years ago

algrn-abirke commented 2 years ago

Hides an issue where the default literal yields 0 instead of null on nullable value types unlike the default operator which yields null. This can lead to the Build() method of Builder class converting null to 0 which can have unexpected side effects.