[
https://issues.apache.org/jira/browse/GROOVY-11908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King resolved GROOVY-11908.
--------------------------------
Fix Version/s: 6.0.0-alpha-1
Resolution: Fixed
> Support parameterized type checking extensions
> ----------------------------------------------
>
> Key: GROOVY-11908
> URL: https://issues.apache.org/jira/browse/GROOVY-11908
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Assignee: Paul King
> Priority: Major
> Fix For: 6.0.0-alpha-1
>
>
> Add support for passing named parameters to type checking extensions via the
> extension string, e.g.:
> {code:groovy}
> @TypeChecked(extensions = 'groovy.typecheckers.NullChecker(strict: true)')
> {code}
> Parameters are parsed as key-value pairs and made available to extensions via
> a getOptions() method on TypeCheckingExtension. This avoids the need for
> separate extension classes that differ only in configuration.
> As a first use, StrictNullChecker is removed in favour of NullChecker(strict:
> true).
> Since we haven't released that yet, it seems like a good candidate.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)