mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 14:59:25 +00:00
pmd:RedundantFieldInitializer - Redundant-Field-Initializer
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ public abstract class DecoratingIterator<TYPE> implements Iterator<TYPE> {
|
||||
|
||||
protected final Iterator<TYPE> fromIterator;
|
||||
|
||||
private TYPE next = null;
|
||||
private TYPE next;
|
||||
|
||||
/**
|
||||
* Creates an iterator that decorates the given iterator.
|
||||
|
||||
+2
-2
@@ -111,7 +111,7 @@ public class LazyFluentIterable<TYPE> implements FluentIterable<TYPE> {
|
||||
@Override
|
||||
public Iterator<TYPE> iterator() {
|
||||
return new DecoratingIterator<TYPE>(iterable.iterator()) {
|
||||
int currentIndex = 0;
|
||||
int currentIndex;
|
||||
|
||||
@Override
|
||||
public TYPE computeNext() {
|
||||
@@ -156,7 +156,7 @@ public class LazyFluentIterable<TYPE> implements FluentIterable<TYPE> {
|
||||
private int stopIndex;
|
||||
private int totalElementsCount;
|
||||
private List<TYPE> list;
|
||||
private int currentIndex = 0;
|
||||
private int currentIndex;
|
||||
|
||||
@Override
|
||||
public TYPE computeNext() {
|
||||
|
||||
Reference in New Issue
Block a user