From 2039d03337f8f6003d68ebfca2c0bd244d25f4e5 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Mon, 11 Nov 2019 15:18:24 +0530 Subject: ListIterator.java- extract the expression Issue-ID: AAF-876 Change-Id: I1dc239d250c9356d0cf91cbad4fd20dd4461fe0e Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/misc/rosetta/marshal/ListIterator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/marshal/ListIterator.java b/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/marshal/ListIterator.java index 4bc23449..d26544c7 100644 --- a/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/marshal/ListIterator.java +++ b/misc/rosetta/src/main/java/org/onap/aaf/misc/rosetta/marshal/ListIterator.java @@ -44,7 +44,8 @@ final class ListIterator implements Iterator { @Override public T next() { - return curr = delg.hasNext()?delg.next():null; + curr = delg.hasNext()?delg.next():null; + return curr; } public T peek() { -- cgit 1.2.3-korg