Commit 7c367c5
refactor(java): post-review simplifications in Stage 2 Unit 1
- ValidationPhase: replace manual MetaSource child iteration in
validateObjectPrimarySource with obj.getSources() (own-only)
- ValidationPhase: replace 5-way &&-chain @kind check with
MetaSource.VALID_KINDS.contains(), matching REFERENTIAL_ACTIONS pattern
- ValidationPhase: replace 6-way &&-chain @ROLE check with
MetaSource.VALID_ROLES.contains()
- MetaSource: add VALID_KINDS and VALID_ROLES Set constants, symmetric
to the existing READ_ONLY_KINDS and the relationship REFERENTIAL_ACTIONS
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d266fcc commit 7c367c5
2 files changed
Lines changed: 19 additions & 18 deletions
File tree
- server/java/metadata/src/main/java/com/metaobjects
- loader
- source
Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 207 | + | |
212 | 208 | | |
213 | 209 | | |
214 | 210 | | |
| |||
222 | 218 | | |
223 | 219 | | |
224 | 220 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 221 | + | |
231 | 222 | | |
232 | 223 | | |
233 | 224 | | |
| |||
287 | 278 | | |
288 | 279 | | |
289 | 280 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
297 | 284 | | |
298 | 285 | | |
299 | 286 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| |||
0 commit comments