mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [1/2] incubator-mnemonic git commit: MNEMONIC-180: Missing throw for NoSuchElementException();
Date Thu, 26 Jan 2017 21:57:08 GMT
Repository: incubator-mnemonic
Updated Branches:
  refs/heads/0.5.0-dev d5a47e45b -> b2d186022


MNEMONIC-180: Missing throw for NoSuchElementException();


Project: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/commit/8ca921c0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/tree/8ca921c0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/diff/8ca921c0

Branch: refs/heads/0.5.0-dev
Commit: 8ca921c01512827e26a6563f1c9f4ac9c7f0ad83
Parents: d5a47e4
Author: Wang, Gang(Gary) <gang1.wang@intel.com>
Authored: Mon Jan 9 10:14:14 2017 -0800
Committer: Wang, Gang(Gary) <gang1.wang@intel.com>
Committed: Mon Jan 9 10:14:14 2017 -0800

----------------------------------------------------------------------
 .../org/apache/mnemonic/collections/DurableSinglyLinkedList.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mnemonic/blob/8ca921c0/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableSinglyLinkedList.java
----------------------------------------------------------------------
diff --git a/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableSinglyLinkedList.java
b/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableSinglyLinkedList.java
index 545ecdd..8557d5e 100644
--- a/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableSinglyLinkedList.java
+++ b/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableSinglyLinkedList.java
@@ -162,7 +162,7 @@ public abstract class DurableSinglyLinkedList<E> implements Durable,
Iterable<E>
     @Override
     public E next() {
       if (null == next) {
-        new NoSuchElementException();
+        throw new NoSuchElementException();
       }
       E ret = next.getItem();
       next = next.getNext();


Mime
View raw message