Make fields final if possible to ensure immutability
This commit is contained in:
@@ -6,7 +6,7 @@ public class ChainedIterator<T> implements Iterator<T>
|
||||
{
|
||||
|
||||
int offset = 0;
|
||||
T[] list;
|
||||
final T[] list;
|
||||
|
||||
public ChainedIterator(T... list) {
|
||||
this.list = list;
|
||||
|
||||
Reference in New Issue
Block a user