final
modifier added to their declaration.
Example:
ArrayList<Integer> list = new ArrayList();
fill(list);
return list;
After the quick-fix is applied:
final ArrayList<Integer> list = new ArrayList();
fill(list);
return list;
Use the inspection's options to define whether parameters or local variables should be reported.