All Implemented Interfaces:
Processor, OptionConfiguration

A type-checker that warns, at compile time, if a program might throw UnsupportedOperationException at run time due to calling a shrink method on a collection.

The checker enforces the Modifiability type system, where @Shrinkable collections can be safely mutated, @Unshrinkable collections cannot be shrunk, and @MaybeShrinkable collections have unknown shrink behavior.

See the Checker Framework Manual:
Modifiability Checker
  • Constructor Details

    • ShrinkChecker

      public ShrinkChecker()
      Creates a Shrink checker.