You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2023/07/11 21:40:00 UTC
[jira] [Resolved] (GROOVY-2990) Change instance method that return void to return this instead
[ https://issues.apache.org/jira/browse/GROOVY-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles resolved GROOVY-2990.
---------------------------------
Resolution: Information Provided
> Change instance method that return void to return this instead
> --------------------------------------------------------------
>
> Key: GROOVY-2990
> URL: https://issues.apache.org/jira/browse/GROOVY-2990
> Project: Groovy
> Issue Type: Improvement
> Components: groovy-jdk
> Environment: All
> Reporter: G. Ralph Kuntz
> Priority: Major
>
> Change all instance methods in the GDK that return 'void' to return 'this' instead. This would allow method "chaining".
> Example: (proc = "ls -l".execute()).consumeProcessOutput(System.out, System.err).waitFor()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)