[ 
https://issues.apache.org/jira/browse/GROOVY-11908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071537#comment-18071537
 ] 

ASF GitHub Bot commented on GROOVY-11908:
-----------------------------------------

paulk-asert opened a new pull request, #2444:
URL: https://github.com/apache/groovy/pull/2444

   (no comment)




> 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
>
> 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)

Reply via email to