Another thread could get the list which is still in the initialization stage, due to first element added. So we need a local variable to avoid this. Also, notice this happens only in concurrency class loader env. |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||
Another thread could get the list which is still in the initialization stage, due to first element added. So we need a local variable to avoid this. Also, notice this happens only in concurrency class loader env. |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||