Skip to content

Conversation

@EgorkaKulikov
Copy link
Collaborator

Description

Our code generation created some useless statements to set field values to null, 0, false, that are default values of type. This PR removes such statements

How to test

Manual tests

Generate tests for spring-boot-testing project, OrderController class. Test size is about ten lines smaller.

Self-check list

  • I've set the proper labels for my PR (at least, for category and component).
  • PR title and description are clear and intelligible.
  • I've added enough comments to my code, particularly in hard-to-understand areas.
  • The functionality I've repaired, changed or added is covered with automated tests.
  • Manual tests have been provided optionally.
  • The documentation for the functionality I've been working on is up-to-date.

@EgorkaKulikov EgorkaKulikov added ctg-enhancement New feature, improvement or change request comp-codegen Issue is related to code generator labels Jul 25, 2023
@EgorkaKulikov EgorkaKulikov merged commit 33cf8ad into main Jul 25, 2023
@EgorkaKulikov EgorkaKulikov deleted the egor/do_not_set_defaults branch July 25, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-codegen Issue is related to code generator ctg-enhancement New feature, improvement or change request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants