Refactor ProjectsCollector.collectProjects#388
Refactor ProjectsCollector.collectProjects#388mthmulders wants to merge 2 commits intoapache:masterfrom
Conversation
This method now returns it result instead of modifying one of its arguments.
|
Can you tell what the purpose is behind this change? |
I identified this opportunity for improvement when I was working on MNG-6118, but that was complex enough already so I decided to postpone this little improvement and refactor it separately. I think methods that List<?> whatever = new ArrayList<>();
doSomething(whatever, other, arguments, that, are, needed);which obscures the fact that the List<?> whatever = doSomething(other, arguments, that, are, needed);This is shorter and more clear (intention-revealing) IMO. |
|
There are two issues here:
I expect collectors to use used in a uniform fashion throughout the Core codebase. |
|
|
@mthmulders I join @rfscholte opinion. The current naming isn't optimal. |
|
Jenkins build is green. |
|
Renamed both the class and the (public) method to be |
|
Resolve #9734 |
This method now returns its result instead of modifying one of its arguments.
Following this checklist to help us incorporate your
contribution quickly and easily:
mvn clean verifyto make sure basic checks pass. A more thorough check will be performed on your pull request automatically.If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement if you are unsure please ask on the developers list.