A type-checker that checks that only valid keys are used to access property files
and resource bundles.
Subclasses can specialize this class for the different uses of property files,
for examples see the I18n Checker and Compilermsgs Checker.
Currently, the checker supports two methods to check:
- Property files:
A common method for localization using a property file, mapping the
keys to values.
Programmers pass the property file locations via
propfiles
option (e.g. -Apropfiles=/path/to/messages.properties
),
separating multiple files by a colon ":".
ResourceBundle
:
Programmers pass the baseName
name of the bundle via
bundlename
(e.g. -Abundlename=MyResource
. The checker uses
the resource associated with the default Locale
in the compilation
system.