Description
The @ClosureParams for StringGroovyMethods.replaceFirst and StringGroovyMethods.replaceAll seems to be wrong. It says {"List<String>", "String[]"}, so without static compilation IntelliJ shows a warning and with static compilation an error for the String it parts of
def pascalCasedWorkflowName = workflowName .replaceAll(/-\w/) { String it -> it[1].toUpperCase() } .replaceFirst(/^\w/) { String it -> it[0].toUpperCase() }
while it compiles and works perfectly fine. I'd guess it should be {"String", "List<String>", "String[]"}
Attachments
Issue Links
- relates to
-
GROOVY-11089 STC: closure param type inference for array and list
- Closed