mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 01:51:49 +01:00
Add missing final keyword to local variables.
This commit is contained in:
@@ -50,7 +50,7 @@ public abstract class Filter<T> {
|
|||||||
if (next == null) {
|
if (next == null) {
|
||||||
throw new NoSuchElementException();
|
throw new NoSuchElementException();
|
||||||
}
|
}
|
||||||
T returnValue = next;
|
final T returnValue = next;
|
||||||
toNext();
|
toNext();
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
@@ -63,7 +63,7 @@ public abstract class Filter<T> {
|
|||||||
private void toNext() {
|
private void toNext() {
|
||||||
next = null;
|
next = null;
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
T item = iterator.next();
|
final T item = iterator.next();
|
||||||
if (item != null && passes(item)) {
|
if (item != null && passes(item)) {
|
||||||
next = item;
|
next = item;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user