(friends.iterator());
}
+ /**
+ * Load an {@link Collection} of {@link CharacterID} to this object.
+ *
+ * Note that this is normally used by DAOs do load data.
+ *
+ * @param list
+ * the id list
+ */
public void load(Collection list) {
friends.addAll(list);
}
diff --git a/src/main/java/com/l2jserver/model/world/character/CharacterInventory.java b/src/main/java/com/l2jserver/model/world/character/CharacterInventory.java
index 31f3d87ef..621981999 100644
--- a/src/main/java/com/l2jserver/model/world/character/CharacterInventory.java
+++ b/src/main/java/com/l2jserver/model/world/character/CharacterInventory.java
@@ -8,7 +8,15 @@ import com.l2jserver.model.world.Item;
import com.l2jserver.model.world.L2Character;
import com.l2jserver.util.factory.CollectionFactory;
+/**
+ * This class controls an {@link L2Character} inventory
+ *
+ * @author Rogiel
+ */
public class CharacterInventory implements Iterable- {
+ /**
+ * The character
+ */
private final L2Character character;
/**
@@ -16,6 +24,12 @@ public class CharacterInventory implements Iterable
- {
*/
private final Set
- items = CollectionFactory.newSet(Item.class);
+ /**
+ * Creates a new instance
+ *
+ * @param character
+ * the character
+ */
public CharacterInventory(L2Character character) {
this.character = character;
}
@@ -43,10 +57,31 @@ public class CharacterInventory implements Iterable
- {
return items.iterator();
}
+ /**
+ * Location of an item
+ *
+ * @author Rogiel
+ */
public enum InventoryLocation {
- PAPERDOLL, INVENTORY;
+ /**
+ * The item is equipped
+ */
+ PAPERDOLL,
+ /**
+ * The item is stored in the inventory
+ */
+ INVENTORY,
+ /**
+ * The item is in the warehouse
+ */
+ WAREHOUSE;
}
+ /**
+ * {@link InventoryLocation#PAPERDOLL Paperdoll} slots for items
+ *
+ * @author Rogiel
+ */
public enum InventoryPaperdoll {
UNDERWEAR, HEAD, HAIR1, HAIR2, NECK, RIGHT_HAND, LEFT_HAND, RIGHT_EAR, LEFT_EAR, GLOVES, LEGS, LEFT_FEET, RIGHT_FEET, RIGHT_FINGER, LEFT_FINGER, LEFT_BRACELET, RIGHT_BRACELET, DECORATION_1, DECOREATION_2, DECORATION_3, DECORATION_4, DECORATION_5, DECORATION_6, CLOAK, BELT;
}
diff --git a/src/main/java/com/l2jserver/model/world/clan/ClanEvent.java b/src/main/java/com/l2jserver/model/world/clan/ClanEvent.java
index 021326a1b..a3555f031 100644
--- a/src/main/java/com/l2jserver/model/world/clan/ClanEvent.java
+++ b/src/main/java/com/l2jserver/model/world/clan/ClanEvent.java
@@ -3,6 +3,14 @@ package com.l2jserver.model.world.clan;
import com.l2jserver.model.world.Clan;
import com.l2jserver.model.world.event.WorldEvent;
+/**
+ * Base event for {@link Clan} objects
+ *
+ * @author Rogiel
+ */
public interface ClanEvent extends WorldEvent {
+ /**
+ * @return the clan
+ */
Clan getClan();
}
diff --git a/src/main/java/com/l2jserver/model/world/clan/ClanListener.java b/src/main/java/com/l2jserver/model/world/clan/ClanListener.java
index 1c753aff5..bf79e5505 100644
--- a/src/main/java/com/l2jserver/model/world/clan/ClanListener.java
+++ b/src/main/java/com/l2jserver/model/world/clan/ClanListener.java
@@ -2,5 +2,10 @@ package com.l2jserver.model.world.clan;
import com.l2jserver.model.world.event.WorldListener;
+/**
+ * Base listener for {@link ClanEvent}
+ *
+ * @author Rogiel
+ */
public interface ClanListener extends WorldListener {
}
diff --git a/src/main/java/com/l2jserver/model/world/clan/ClanMembers.java b/src/main/java/com/l2jserver/model/world/clan/ClanMembers.java
index 001089f89..f4881cdf0 100644
--- a/src/main/java/com/l2jserver/model/world/clan/ClanMembers.java
+++ b/src/main/java/com/l2jserver/model/world/clan/ClanMembers.java
@@ -26,6 +26,12 @@ public class ClanMembers implements Iterable {
private final Set members = CollectionFactory
.newSet(CharacterID.class);
+ /**
+ * Creates a new instance
+ *
+ * @param clan
+ * the clan
+ */
public ClanMembers(Clan clan) {
this.clan = clan;
}
diff --git a/src/main/java/com/l2jserver/model/world/event/SpawnEvent.java b/src/main/java/com/l2jserver/model/world/event/SpawnEvent.java
index 8a8954ce8..f585a7cae 100644
--- a/src/main/java/com/l2jserver/model/world/event/SpawnEvent.java
+++ b/src/main/java/com/l2jserver/model/world/event/SpawnEvent.java
@@ -3,7 +3,13 @@ package com.l2jserver.model.world.event;
import com.l2jserver.model.world.capability.Spawnable;
import com.l2jserver.util.Coordinate;
+/**
+ * Event for objects spawning
+ *
+ * @author Rogiel
+ */
public interface SpawnEvent extends WorldEvent {
+ @Override
Spawnable getObject();
Coordinate getCoordinate();
diff --git a/src/main/java/com/l2jserver/model/world/event/WorldEvent.java b/src/main/java/com/l2jserver/model/world/event/WorldEvent.java
index e580ffd90..add525d55 100644
--- a/src/main/java/com/l2jserver/model/world/event/WorldEvent.java
+++ b/src/main/java/com/l2jserver/model/world/event/WorldEvent.java
@@ -4,7 +4,13 @@ import com.l2jserver.model.world.WorldObject;
import com.l2jserver.model.world.capability.Listenable;
public interface WorldEvent {
+ /**
+ * @return the object that issued this event
+ */
WorldObject getObject();
+ /**
+ * @return the list of objects that will be notified of this event
+ */
Listenable, ?>[] getDispatchableObjects();
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/AndFilter.java b/src/main/java/com/l2jserver/model/world/filter/AndFilter.java
index 7e5fab92b..fbf959fb5 100644
--- a/src/main/java/com/l2jserver/model/world/filter/AndFilter.java
+++ b/src/main/java/com/l2jserver/model/world/filter/AndFilter.java
@@ -2,9 +2,27 @@ package com.l2jserver.model.world.filter;
import com.l2jserver.model.world.WorldObject;
+/**
+ * AND filter that accepts all values in which all other
+ * filters return true.
+ *
+ * @author Rogiel
+ *
+ * @param
+ * the item type
+ */
public class AndFilter implements WorldObjectFilter {
+ /**
+ * The filters
+ */
private WorldObjectFilter[] filters;
+ /**
+ * Creates a new instance
+ *
+ * @param filters
+ * filters to be used with AND operator
+ */
public AndFilter(WorldObjectFilter... filters) {
this.filters = filters;
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/NotFilter.java b/src/main/java/com/l2jserver/model/world/filter/NotFilter.java
index 44fafcd5c..a6bf12e8f 100644
--- a/src/main/java/com/l2jserver/model/world/filter/NotFilter.java
+++ b/src/main/java/com/l2jserver/model/world/filter/NotFilter.java
@@ -2,9 +2,27 @@ package com.l2jserver.model.world.filter;
import com.l2jserver.model.world.WorldObject;
+/**
+ * And filter that accepts all values in which the other filter return
+ * false.
+ *
+ * @author Rogiel
+ *
+ * @param
+ * the item type
+ */
public class NotFilter implements WorldObjectFilter {
+ /**
+ * The filter
+ */
private WorldObjectFilter filter;
+ /**
+ * Creates a new instance
+ *
+ * @param filter
+ * the filter
+ */
public NotFilter(WorldObjectFilter filter) {
this.filter = filter;
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/OrFilter.java b/src/main/java/com/l2jserver/model/world/filter/OrFilter.java
index de02a4782..f85e9a725 100644
--- a/src/main/java/com/l2jserver/model/world/filter/OrFilter.java
+++ b/src/main/java/com/l2jserver/model/world/filter/OrFilter.java
@@ -2,9 +2,27 @@ package com.l2jserver.model.world.filter;
import com.l2jserver.model.world.WorldObject;
+/**
+ * OR filter that accepts all values in which at least one of the
+ * filters return true.
+ *
+ * @author Rogiel
+ *
+ * @param
+ * the item type
+ */
public class OrFilter implements WorldObjectFilter {
+ /**
+ * The filters
+ */
private WorldObjectFilter[] filters;
+ /**
+ * Creates a new instance
+ *
+ * @param filters
+ * filters to be used with OR operator
+ */
public OrFilter(WorldObjectFilter... filters) {
this.filters = filters;
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/WorldFilters.java b/src/main/java/com/l2jserver/model/world/filter/WorldFilters.java
index 0104df905..0945f4e2e 100644
--- a/src/main/java/com/l2jserver/model/world/filter/WorldFilters.java
+++ b/src/main/java/com/l2jserver/model/world/filter/WorldFilters.java
@@ -2,18 +2,50 @@ package com.l2jserver.model.world.filter;
import com.l2jserver.model.world.WorldObject;
+/**
+ * Utility class for common filter types
+ *
+ * @author Rogiel
+ */
public final class WorldFilters {
+ /**
+ * Performs an AND operation
+ *
+ * @param
+ * the object type
+ * @param filters
+ * the filters
+ * @return the {@link AndFilter}
+ */
public static final WorldObjectFilter and(
WorldObjectFilter... filters) {
return new AndFilter(filters);
}
+ /**
+ * Performs an OR operation
+ *
+ * @param
+ * the object type
+ * @param filters
+ * the filters
+ * @return the {@link OrFilter}
+ */
public static final WorldObjectFilter or(
WorldObjectFilter... filters) {
return new OrFilter(filters);
}
- public static final WorldObjectFilter notf(
+ /**
+ * Performs an NOTA operation
+ *
+ * @param
+ * the object type
+ * @param filters
+ * the filters
+ * @return the {@link NotFilter}
+ */
+ public static final WorldObjectFilter not(
WorldObjectFilter filter) {
return new NotFilter(filter);
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/impl/IDFilter.java b/src/main/java/com/l2jserver/model/world/filter/impl/IDFilter.java
index ca379cd02..0f2e6ac72 100644
--- a/src/main/java/com/l2jserver/model/world/filter/impl/IDFilter.java
+++ b/src/main/java/com/l2jserver/model/world/filter/impl/IDFilter.java
@@ -4,9 +4,23 @@ import com.l2jserver.model.id.ID;
import com.l2jserver.model.world.capability.Positionable;
import com.l2jserver.model.world.filter.WorldObjectFilter;
+/**
+ * Filter objects based on its ID.
+ *
+ * @author Rogiel
+ */
public class IDFilter implements WorldObjectFilter {
+ /**
+ * The object id
+ */
private final ID id;
+ /**
+ * Creates a new instance
+ *
+ * @param id
+ * the desired object ID
+ */
public IDFilter(final ID id) {
this.id = id;
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/impl/InstanceFilter.java b/src/main/java/com/l2jserver/model/world/filter/impl/InstanceFilter.java
index f693a05a3..2acd220db 100644
--- a/src/main/java/com/l2jserver/model/world/filter/impl/InstanceFilter.java
+++ b/src/main/java/com/l2jserver/model/world/filter/impl/InstanceFilter.java
@@ -3,10 +3,26 @@ package com.l2jserver.model.world.filter.impl;
import com.l2jserver.model.world.WorldObject;
import com.l2jserver.model.world.filter.WorldObjectFilter;
+/**
+ * Filter object based on their types
+ *
+ * @author Rogiel
+ * @param
+ * the instance type
+ */
public class InstanceFilter implements
WorldObjectFilter {
+ /**
+ * The object's type
+ */
private final Class> type;
+ /**
+ * Creates a new instance
+ *
+ * @param instance
+ * the instance type
+ */
public InstanceFilter(Class> instance) {
this.type = instance;
}
diff --git a/src/main/java/com/l2jserver/model/world/filter/impl/RangeFilter.java b/src/main/java/com/l2jserver/model/world/filter/impl/RangeFilter.java
index 6fc2136e3..b5955c943 100644
--- a/src/main/java/com/l2jserver/model/world/filter/impl/RangeFilter.java
+++ b/src/main/java/com/l2jserver/model/world/filter/impl/RangeFilter.java
@@ -4,15 +4,42 @@ import com.l2jserver.model.world.capability.Positionable;
import com.l2jserver.model.world.filter.WorldObjectFilter;
import com.l2jserver.util.Coordinate;
+/**
+ * Filter objects that are in the range of coordinate
+ *
+ * @author Rogiel
+ */
public class RangeFilter implements WorldObjectFilter {
+ /**
+ * The coordinate point
+ */
private final Coordinate coordinate;
+ /**
+ * The desired maximum distance of the object
+ */
private final int range;
+ /**
+ * Creates a new instance
+ *
+ * @param coordinate
+ * the coordinate as base for range search
+ * @param range
+ * the desired maximum distance of the object
+ */
public RangeFilter(final Coordinate coordinate, final int range) {
this.coordinate = coordinate;
this.range = range;
}
+ /**
+ * Creates a new instance
+ *
+ * @param positionable
+ * the base object
+ * @param range
+ * the desired maximum distance of the object
+ */
public RangeFilter(final Positionable positionable, final int range) {
this(positionable.getPosition(), range);
}
diff --git a/src/main/java/com/l2jserver/model/world/item/ItemDropEvent.java b/src/main/java/com/l2jserver/model/world/item/ItemDropEvent.java
index 3d5b944f5..51482bdfb 100644
--- a/src/main/java/com/l2jserver/model/world/item/ItemDropEvent.java
+++ b/src/main/java/com/l2jserver/model/world/item/ItemDropEvent.java
@@ -7,10 +7,29 @@ import com.l2jserver.model.world.capability.Actor;
import com.l2jserver.model.world.capability.Listenable;
import com.l2jserver.model.world.player.PlayerEvent;
+/**
+ * Event dispatched once an {@link Item} has been dropped on the ground.
+ *
+ * @author Rogiel
+ */
public class ItemDropEvent implements ItemEvent, PlayerEvent {
+ /**
+ * The dropping player
+ */
private final Player player;
+ /**
+ * The item dropped
+ */
private final Item item;
+ /**
+ * Creates a new instance of this event
+ *
+ * @param player
+ * the dropping player
+ * @param item
+ * the dropped item
+ */
public ItemDropEvent(Player player, Item item) {
this.player = player;
this.item = item;
diff --git a/src/main/java/com/l2jserver/model/world/item/ItemEvent.java b/src/main/java/com/l2jserver/model/world/item/ItemEvent.java
index 109d8d39e..6c8535f8d 100644
--- a/src/main/java/com/l2jserver/model/world/item/ItemEvent.java
+++ b/src/main/java/com/l2jserver/model/world/item/ItemEvent.java
@@ -3,6 +3,15 @@ package com.l2jserver.model.world.item;
import com.l2jserver.model.world.Item;
import com.l2jserver.model.world.event.WorldEvent;
+/**
+ * Base event for items
+ *
+ * @author Rogiel
+ *
+ */
public interface ItemEvent extends WorldEvent {
+ /**
+ * @return the item
+ */
Item getItem();
}
diff --git a/src/main/java/com/l2jserver/model/world/item/ItemListener.java b/src/main/java/com/l2jserver/model/world/item/ItemListener.java
index 55d54d115..5bc6f1715 100644
--- a/src/main/java/com/l2jserver/model/world/item/ItemListener.java
+++ b/src/main/java/com/l2jserver/model/world/item/ItemListener.java
@@ -2,5 +2,10 @@ package com.l2jserver.model.world.item;
import com.l2jserver.model.world.event.WorldListener;
+/**
+ * Listener for {@link ItemEvent}
+ *
+ * @author Rogiel
+ */
public interface ItemListener extends WorldListener {
}
diff --git a/src/main/java/com/l2jserver/model/world/iterator/FilterIterator.java b/src/main/java/com/l2jserver/model/world/iterator/FilterIterator.java
index 5829bf3c6..5b5bf5410 100644
--- a/src/main/java/com/l2jserver/model/world/iterator/FilterIterator.java
+++ b/src/main/java/com/l2jserver/model/world/iterator/FilterIterator.java
@@ -5,12 +5,38 @@ import java.util.Iterator;
import com.l2jserver.model.world.WorldObject;
import com.l2jserver.model.world.filter.WorldObjectFilter;
+/**
+ * The {@link FilterIterator} takes an {@link WorldObject} and a
+ * {@link WorldObjectFilter} and dynamically iterates over the items and find
+ * the next matching object.
+ *
+ * @author Rogiel
+ *
+ * @param
+ * the object type
+ */
public class FilterIterator implements Iterator {
+ /**
+ * The unfiltered object iterator
+ */
private final Iterator objects;
+ /**
+ * The filter
+ */
private final WorldObjectFilter filter;
-
+ /**
+ * The next object found
+ */
private O selected;
+ /**
+ * Creates a new instance
+ *
+ * @param filter
+ * the filter
+ * @param objects
+ * the unfiltered object iterator
+ */
public FilterIterator(final WorldObjectFilter filter,
Iterator objects) {
this.filter = filter;
@@ -36,7 +62,12 @@ public class FilterIterator implements Iterator {
public void remove() {
}
- public O findNext() {
+ /**
+ * Locates the next matching object
+ *
+ * @return the next matching object
+ */
+ private O findNext() {
if (selected != null)
return selected;
while (objects.hasNext()) {
diff --git a/src/main/java/com/l2jserver/model/world/party/PartyEvent.java b/src/main/java/com/l2jserver/model/world/party/PartyEvent.java
index 29f232275..7a7b82755 100644
--- a/src/main/java/com/l2jserver/model/world/party/PartyEvent.java
+++ b/src/main/java/com/l2jserver/model/world/party/PartyEvent.java
@@ -1,8 +1,14 @@
package com.l2jserver.model.world.party;
import com.l2jserver.model.world.Clan;
+import com.l2jserver.model.world.Party;
import com.l2jserver.model.world.event.WorldEvent;
+/**
+ * Base event for {@link Party} objects
+ *
+ * @author Rogiel
+ */
public interface PartyEvent extends WorldEvent {
Clan getClan();
}
diff --git a/src/main/java/com/l2jserver/model/world/party/PartyListener.java b/src/main/java/com/l2jserver/model/world/party/PartyListener.java
index d0739e43e..ce9aac527 100644
--- a/src/main/java/com/l2jserver/model/world/party/PartyListener.java
+++ b/src/main/java/com/l2jserver/model/world/party/PartyListener.java
@@ -2,5 +2,10 @@ package com.l2jserver.model.world.party;
import com.l2jserver.model.world.event.WorldListener;
+/**
+ * Listener for {@link PartyEvent}
+ *
+ * @author Rogiel
+ */
public interface PartyListener extends WorldListener {
}
diff --git a/src/main/java/com/l2jserver/model/world/player/PlayerEvent.java b/src/main/java/com/l2jserver/model/world/player/PlayerEvent.java
index c51b14533..087f3e50a 100644
--- a/src/main/java/com/l2jserver/model/world/player/PlayerEvent.java
+++ b/src/main/java/com/l2jserver/model/world/player/PlayerEvent.java
@@ -3,6 +3,14 @@ package com.l2jserver.model.world.player;
import com.l2jserver.model.world.Player;
import com.l2jserver.model.world.actor.ActorEvent;
+/**
+ * Base event for {@link Player} objects
+ *
+ * @author Rogiel
+ */
public interface PlayerEvent extends ActorEvent {
+ /**
+ * @return the player
+ */
Player getPlayer();
}
diff --git a/src/main/java/com/l2jserver/model/world/player/PlayerListener.java b/src/main/java/com/l2jserver/model/world/player/PlayerListener.java
index e8937edd8..e54c02082 100644
--- a/src/main/java/com/l2jserver/model/world/player/PlayerListener.java
+++ b/src/main/java/com/l2jserver/model/world/player/PlayerListener.java
@@ -5,6 +5,11 @@ import com.l2jserver.model.world.actor.ActorListener;
import com.l2jserver.model.world.event.WorldEvent;
import com.l2jserver.model.world.event.WorldListener;
+/**
+ * Listener for {@link PlayerEvent}
+ *
+ * @author Rogiel
+ */
public abstract class PlayerListener implements ActorListener {
@Override
public boolean dispatch(ActorEvent e) {
diff --git a/src/main/java/com/l2jserver/model/world/player/PlayerSpawnEvent.java b/src/main/java/com/l2jserver/model/world/player/PlayerSpawnEvent.java
index ba42efc6e..1fd5edbec 100644
--- a/src/main/java/com/l2jserver/model/world/player/PlayerSpawnEvent.java
+++ b/src/main/java/com/l2jserver/model/world/player/PlayerSpawnEvent.java
@@ -7,10 +7,29 @@ import com.l2jserver.model.world.capability.Spawnable;
import com.l2jserver.model.world.event.SpawnEvent;
import com.l2jserver.util.Coordinate;
+/**
+ * Event dispatcher once an player has spawned in the world
+ *
+ * @author Rogiel
+ */
public class PlayerSpawnEvent implements PlayerEvent, SpawnEvent {
+ /**
+ * The spawned player
+ */
private final Player player;
+ /**
+ * The spawning coordinate
+ */
private final Coordinate coordinate;
+ /**
+ * Creates a new instance
+ *
+ * @param player
+ * the spawned player
+ * @param coordinate
+ * the spawn coordinate
+ */
public PlayerSpawnEvent(Player player, Coordinate coordinate) {
this.player = player;
this.coordinate = coordinate;
diff --git a/src/main/java/com/l2jserver/model/world/player/PlayerTeleportEvent.java b/src/main/java/com/l2jserver/model/world/player/PlayerTeleportEvent.java
index aa446755f..0cfbc8ab3 100644
--- a/src/main/java/com/l2jserver/model/world/player/PlayerTeleportEvent.java
+++ b/src/main/java/com/l2jserver/model/world/player/PlayerTeleportEvent.java
@@ -3,7 +3,20 @@ package com.l2jserver.model.world.player;
import com.l2jserver.model.world.Player;
import com.l2jserver.util.Coordinate;
+/**
+ * Event dispatched once an player is teleported.
+ *
+ * @author Rogiel
+ */
public class PlayerTeleportEvent extends PlayerSpawnEvent {
+ /**
+ * Creates a new instance
+ *
+ * @param player
+ * the teleported player
+ * @param coordinate
+ * the coordinate
+ */
public PlayerTeleportEvent(Player player, Coordinate coordinate) {
super(player, coordinate);
}
diff --git a/src/main/java/com/l2jserver/model/world/player/TestEvent.java b/src/main/java/com/l2jserver/model/world/player/TestEvent.java
deleted file mode 100644
index 5035a9280..000000000
--- a/src/main/java/com/l2jserver/model/world/player/TestEvent.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.l2jserver.model.world.player;
-
-import com.l2jserver.model.world.event.WorldEvent;
-
-public interface TestEvent extends WorldEvent {
-}
diff --git a/src/main/java/com/l2jserver/routines/GameServerInitializationRoutine.java b/src/main/java/com/l2jserver/routines/GameServerInitializationRoutine.java
index 46df5662e..7424ee7e9 100644
--- a/src/main/java/com/l2jserver/routines/GameServerInitializationRoutine.java
+++ b/src/main/java/com/l2jserver/routines/GameServerInitializationRoutine.java
@@ -8,9 +8,23 @@ import com.l2jserver.service.game.scripting.ScriptingService;
import com.l2jserver.service.game.template.TemplateService;
import com.l2jserver.service.network.NetworkService;
+/**
+ * Routine used to initialize the server. Starts all services.
+ *
+ * @author Rogiel
+ */
public class GameServerInitializationRoutine implements Routine {
+ /**
+ * The service manager
+ */
private final ServiceManager serviceManager;
+ /**
+ * Creates a new instance
+ *
+ * @param serviceManager
+ * the service manager
+ */
@Inject
public GameServerInitializationRoutine(ServiceManager serviceManager) {
this.serviceManager = serviceManager;
diff --git a/src/main/java/com/l2jserver/routines/Routine.java b/src/main/java/com/l2jserver/routines/Routine.java
index ee66b9b80..a4de09569 100644
--- a/src/main/java/com/l2jserver/routines/Routine.java
+++ b/src/main/java/com/l2jserver/routines/Routine.java
@@ -2,5 +2,13 @@ package com.l2jserver.routines;
import java.util.concurrent.Callable;
+/**
+ * An routine is a set of operations that can be performed on another thread.
+ *
+ * @author Rogiel
+ *
+ * @param
+ * the routine return type
+ */
public interface Routine extends Callable {
}
diff --git a/src/test/java/com/l2jserver/model/id/factory/IDFactoryTest.java b/src/test/java/com/l2jserver/model/id/factory/IDFactoryTest.java
index e3cf26d76..c950a21dc 100644
--- a/src/test/java/com/l2jserver/model/id/factory/IDFactoryTest.java
+++ b/src/test/java/com/l2jserver/model/id/factory/IDFactoryTest.java
@@ -9,6 +9,7 @@ import com.google.inject.Guice;
import com.google.inject.Injector;
import com.l2jserver.db.dao.DAOModuleMySQL5;
import com.l2jserver.model.id.ID;
+import com.l2jserver.model.id.factory.IDFactoryModule;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.id.object.factory.CharacterIDFactory;
import com.l2jserver.model.world.L2Character;