We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
groovy-contracts
Consider the following:
import groovy.contracts.* @Invariant({ speed >= 0 }) class Rocket { int speed boolean started = true @Requires({ isStarted() && inc > 0 }) @Ensures ({ isStarted() && old.speed < speed }) int accelerate(int inc) { speed += inc } }
Editor support for the condition expressions is pretty minimal.
The text was updated successfully, but these errors were encountered:
Fix for #1501: disable groovy-contracts transform and update templates
8346dad
Also supported by: apache/groovy@710de13
Sorry, something went wrong.
eric-milles
No branches or pull requests
Consider the following:
Editor support for the condition expressions is pretty minimal.
The text was updated successfully, but these errors were encountered: