Commit 3ae6c81
committed
Route OSInfo.getArchName() through LlamaSystemProperties.getOsinfoArchitecture()
OSInfo.getArchName() read the override system property via a hard-coded
string literal:
String override = System.getProperty("net.ladenthin.llama.osinfo.architecture");
bypassing LlamaSystemProperties.getOsinfoArchitecture(), the registry-side
getter built specifically to be the single source of truth for that
property name. The deep scan that produced the README System Properties
Reference (e36f631) surfaced this as one of two registry-bypass smells;
fixing it here closes the first.
Routing through the registry keeps the property name in exactly one
place, mirrors the recent BAF Radix.HEX consolidation (where every
literal '16' radix was replaced by a single Radix.HEX constant), and
means future renames or scope tightenings of the property only have to
land in LlamaSystemProperties.
Tests: OSInfoTest 16/16 pass (the override-set branch is already
covered by the test that sets ARCH_OVERRIDE_PROP); mvn compile clean.1 parent e36f631 commit 3ae6c81
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
0 commit comments