Removed inline comments

This commit is contained in:
atomicint
2016-01-22 15:55:40 -05:00
parent 637a18d155
commit 5156e0bc19
2 changed files with 0 additions and 7 deletions
@@ -52,7 +52,6 @@ public final class MobRepository<T extends Mob> implements Iterable<T> {
public boolean hasNext() {
int index = current;
// return true iff there is a non-null element within the repository
while (index <= repository.size()) {
Mob mob = repository.mobs[index++];
if (mob != null) {
@@ -66,7 +66,6 @@ public final class MobRepositoryTest {
players.add(player);
// Ensure validity of added Player otherwise this test cannot continue
assertEquals(1, players.size());
assertEquals(player, players.get(player.getIndex()));
@@ -81,7 +80,6 @@ public final class MobRepositoryTest {
public void testCapacityExceeded() {
MobRepository<Player> players = new MobRepository<>(CAPACITY);
// Fill up the repository
for (int index = 0; index < CAPACITY; index++) {
Player player = mock(Player.class);
when(player.getIndex()).thenReturn(index + 1);
@@ -89,7 +87,6 @@ public final class MobRepositoryTest {
assertTrue(players.add(player));
}
// Try to add one more Player.
Player player = mock(Player.class);
when(player.getIndex()).thenReturn(CAPACITY);
@@ -186,7 +183,6 @@ public final class MobRepositoryTest {
iterator.next();
iterator.next();
// There should only be two elements in the iterator, this is invalid.
iterator.next();
}
@@ -206,8 +202,6 @@ public final class MobRepositoryTest {
Iterator<Player> iterator = players.iterator();
// remove() may only be called once per call to next(), we have not
// called next()
iterator.remove();
}