Class KeyForSubchecker

All Implemented Interfaces:
Processor, OptionConfiguration

@SupportedOptions("assumeKeyFor") public class KeyForSubchecker extends BaseTypeChecker
A type-checker for determining which values are keys for which maps. Typically used as part of the compound checker for the nullness type system.

You can use the following SuppressWarnings prefixes with this checker:

  • @SuppressWarnings("nullness") suppresses warnings from the Nullness, Initialization, and KeyFor Checkers
  • @SuppressWarnings("nullnesskeyfor") suppresses warnings from the Nullness and KeyFor Checkers only, warnings from the Initialization Checker are not suppressed @SuppressWarnings("nullnessnoinit") has the same effect as @SuppressWarnings("nullnesskeyfor")
  • @SuppressWarnings("keyfor") suppresses warnings from the KeyFor Checker only, warnings from the Nullness and Initialization Checkers are not suppressed
See the Checker Framework Manual:
Map Key Checker, Nullness Checker
  • Constructor Details

    • KeyForSubchecker

      public KeyForSubchecker()
      Default constructor for KeyForSubchecker.
  • Method Details