Commit bda0801
committed
Improve readability of discriminator detection logic
Extract predicates into named boolean variables to make the
discriminator variant detection code easier to follow. Replace
the nested loop with a stream-based lookup for finding variant
models.1 parent 46dd226 commit bda0801
1 file changed
Lines changed: 12 additions & 11 deletions
File tree
- modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
492 | 495 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
| |||
0 commit comments