Commit 04b79f3
refactor(java): simplify loader-unification code
- MetaDataLoader.fromUris: replace stream/Collectors with a plain
for-loop over an ArrayList sized from the input, matching the
existing style in loadSourceURIsIfPresent / fromResources /
processSources in the same file.
- MetaDataLoader: drop the now-unused java.util.stream.Collectors
import that was only there for fromUris.
- MetaDataSource Javadoc: extend the "Concrete implementations" list
and @see block to include the new FileSource and DirectorySource
classes added in this branch (the list previously only mentioned
InMemoryStringSource and UriSource).
No behavior changes; full reactor mvn test passes (17/17 modules).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8edfb83 commit 04b79f3
2 files changed
Lines changed: 6 additions & 4 deletions
File tree
- server/java/metadata/src/main/java/com/metaobjects/loader
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 240 | + | |
| 241 | + | |
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
0 commit comments