apache / accumulo

Apache Accumulo
https://accumulo.apache.org
Apache License 2.0
1.06k stars 445 forks source link

Convert multi-assignments to separate assignments #3689

Open ctubbsii opened 1 year ago

ctubbsii commented 1 year ago

Most of our code uses separate assignment statements, such as:

String a = "something";
String b = "something else";

However, some of our code uses multi-assignments, like:

String a = "something", b = "something else";

This is less than ideal style, and these should be changed to separate assignments wherever it makes sense to do so, throughout the code. There may be some places, such as in for loop initialization, where we want to keep the multi-assignment, but most places we don't.

ctubbsii commented 1 year ago

This should only be done in the main branch. It doesn't need to be done for earlier branches. It's also low-priority.