Commit 170da2e
refactor(render,codegen-spring): FR-010 Plan 3 clarity cleanup (no behavior change)
- OutputFormatRenderer: extract resolveInstruction(field, overrides) helper to
eliminate the two-line override-then-field-default pattern duplicated between
inlineContent() and renderGuide().
- OutputFormatSpecEmitter: simplify resolvePromptStyleEnum by using
OutputTemplate.getPromptStyle() (which already normalises the attr read +
null-default) instead of double hasMetaAttr/getMetaAttr lookup + manual null
check; adds OutputTemplate import.
- Verify.checkOutputPrompt: move requiredFieldNames null-guard above haystack
init so the early-return fires before the defensive string copy.
render 211/211 · codegen-spring 71/71 — no assertions weakened.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 04f981e commit 170da2e
3 files changed
Lines changed: 12 additions & 11 deletions
File tree
- server/java
- codegen-spring/src/main/java/com/metaobjects/generator/spring
- render/src/main/java/com/metaobjects/render
- prompt
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | | - | |
89 | | - | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
0 commit comments