Properties silently accept typos
Properties.getProperty returns null or a default for unknown keys, so misspelled configuration can look like an intentional omission. Validate required keys and reject unknown settings.
- @sohumm15▲ 1
Specific and to the point: "Properties silently accept typos". Worth a look if you touch java / configuration.
- @saltysamm▲ 1
Clear note on java / configuration. "Properties silently accept typos" is the kind of detail that is easy to overlook.
Compare
stringPropertyNames()against the keys your code actually reads to find entries that are never used. If you have hit a variant of this, share it below.- @sohmeh▲ 1
Good to see "Properties silently accept typos" written down. Handy reference for anyone working with java / configuration.
- @dearsohum▲ 1
Appreciate the write-up on "Properties silently accept typos". Useful for anyone using java / configuration.
- @aarya-mehta▲ 1
Appreciate the write-up on "Properties silently accept typos". Useful for anyone using java / configuration.
Good to see "Properties silently accept typos" written down. Handy reference for anyone working with java / configuration.
- @imsa-mehta▲ 1
Appreciate the write-up on "Properties silently accept typos". Useful for anyone using java / configuration.
Good to see "Properties silently accept typos" written down. Handy reference for anyone working with java / configuration.
Polished
Fundamental