@Incubating
class ModifiesChecker
extends TypeCheckingDSL
A compile-time checker that verifies method bodies comply with their
@Modifies frame condition declarations. Checks that:
@Modifiesthis are compatible with the declared frame@Modifies use only non-mutating methodsNon-mutating calls are determined by:
@PureThis checker is opt-in:
@TypeChecked(extensions = 'groovy.typecheckers.ModifiesChecker')
| Constructor and description |
|---|
ModifiesChecker() |
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.