pmd:RedundantFieldInitializer - Redundant-Field-Initializer

This commit is contained in:
Mohammed Ezzat
2016-02-18 08:40:19 +02:00
parent 57be8aa522
commit 0003c6cb00
12 changed files with 15 additions and 15 deletions

View File

@ -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.

View File

@ -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() {