Class PropertyFileUtils

java.lang.Object
org.checkerframework.checker.propkey.PropertyFileUtils

public final class PropertyFileUtils extends Object
Utilities for loading property files and resource bundles.
  • Method Details

    • load

      public static Map<String,Object> load(SourceChecker checker, Class<?> contextClass)
      Loads the entries in the property files named by the -Apropfiles command-line option and in the resource bundles named by the -Abundlenames command-line option. Reports a warning for each file or bundle that cannot be loaded.
      Parameters:
      checker - the checker whose options name the files and bundles, and which reports warnings
      contextClass - the class whose class loader loads property-file resources
      Returns:
      a map from each loaded key to its value