summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/utils/Collection.java2
-rw-r--r--core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/utils/Collection.java b/core/src/ch/asynk/gdx/boardgame/utils/Collection.java
index b546217..220e4c7 100644
--- a/core/src/ch/asynk/gdx/boardgame/utils/Collection.java
+++ b/core/src/ch/asynk/gdx/boardgame/utils/Collection.java
@@ -2,7 +2,7 @@ package ch.asynk.gdx.boardgame.utils;
import java.util.Iterator;
-public interface Collection<E> extends Iterator, Iterable<E>
+public interface Collection<E> extends Iterator<E>, Iterable<E>
{
public int size();
diff --git a/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java b/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java
index 1edf84f..f592baa 100644
--- a/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java
+++ b/core/src/ch/asynk/gdx/boardgame/utils/IterableArray.java
@@ -116,11 +116,10 @@ public class IterableArray<E> implements Collection<E>
return false;
}
- @SuppressWarnings("unchecked")
@Override public Iterator<E> iterator()
{
this.idx = 0;
- return (Iterator<E>) this;
+ return this;
}
@Override public boolean hasNext()