Hi,
I'd try to take a look at them during the weekend, as time permits.
I've seen tons of "code cleanup" PRs that have very little value and are
too granular.
- Changing "new Integer(0)" with "0" in three files in a project with >
500k LOC is not worth the effort and does not provide real value.
- Changing "new String("Hello")" with "Hello" makes sense only if you're
allocating tons of Strings (in a loop, for instance), but not in a
method that you call each ten minutes.
On the contrary, these PRs consume reviewers' time and burn trees
running our 3-flavoured JDK CI/CD pipelines for very little value. Not
worth running those heavy pipelines for just three syntactic sugar
issues in three files.
I'd ask these people concerned with "syntactic sugar" issues to group
those little commits in a single PR, that can be reviewed at once and
that is worth running a single CI/CD run.
Cheers,
Antonio
P.S.: We may also want to define what "readability" means for us.
There're people modifying test code because they think that static
imports are more readable than normal imports. In my book (doing Java
for more than twenty years) I don't see any advantage in using static
imports, on the contrary, you have to scroll up and see what is static
imported.
On 26/1/23 18:59, Michael Bien wrote:
Everyone is invited to review them for correctness and also whether or
not they are actually worth it. Just because there is an easy to use
code inspection available for something doesn't mean we should run it on
400+ projects blindly. This is also part of the problem: Running code
inspections is trivial, reviewing them however is time consuming.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists