We are using Java as a backend development language.We are using a List variable asmethod() {  List recordsList = new ArrayList<Record>();  .  .  recordsList.add(records);  .  .  recordsList.flush();  .  .   recordsList.add(new Record());}Should we consider Split Temporary Variable refactoring pattern in this case, thus creating a new List as method() {  List recordsList = new ArrayList<Record>();  .  .  recordsList.add(records);  .  .  recordsList.flush();  .  .   List newRecordList = new ArrayList<Record>();  newRecordList.add(new Record());}
Refactoring pattern Split Temporary Variable vs collection variable
java;refactoring