Class GrowOnlyChecker

All Implemented Interfaces:
Processor, OptionConfiguration

A type-checker that enforces rules about mutable-length sequences.

This checker ensures that references annotated as @GrowOnly are not used to call methods that can shrink the sequence (e.g., remove(), clear()). This allows other checkers, like the Upper Bound Checker, to reason that indices for @GrowOnly collections remain valid after mutations.

See the Checker Framework Manual:
Index Checker
  • Constructor Details

    • GrowOnlyChecker

      public GrowOnlyChecker()
      Creates a new GrowOnlyChecker.