From bd861c0d8009bbd51137bb97d15d5aeb8902eb2f Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Tue, 19 Nov 2013 00:32:43 +0000 Subject: [PATCH] Statement unnecessarily nested within else clause. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1543244 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections4/iterators/SingletonIterator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java b/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java index 042d06766..990489de3 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/SingletonIterator.java @@ -106,10 +106,9 @@ public class SingletonIterator if (removeAllowed) { if (removed || beforeFirst) { throw new IllegalStateException(); - } else { - object = null; - removed = true; } + object = null; + removed = true; } else { throw new UnsupportedOperationException(); }