1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-10 09:22:49 +00:00

Fixed compiler warnings

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-26 13:46:47 -03:00
parent fc0dcd221e
commit 566c4e2037
20 changed files with 36 additions and 33 deletions

View File

@@ -41,6 +41,7 @@ public abstract class AbstractService implements Service {
this.running = true;
} catch (ServiceStartException e) {
this.running = false;
throw e;
}
}

View File

@@ -18,6 +18,7 @@ package com.l2jserver.service.admin;
import java.util.List;
import com.l2jserver.model.id.object.CharacterID;
import com.l2jserver.model.world.L2Character;
import com.l2jserver.service.AbstractService;
@@ -27,7 +28,8 @@ import com.l2jserver.service.AbstractService;
*/
public class AdministratorServiceImpl extends AbstractService implements
AdministratorService {
private List<L2Character> online;
@SuppressWarnings("unused")
private List<CharacterID> online;
@Override
public void command(L2Character character, String command, String... args) {

View File

@@ -39,6 +39,7 @@ public class AttackServiceImpl extends AbstractService implements AttackService
* The {@link WorldEventDispatcher} is used to dispatch attack events to the
* world
*/
@SuppressWarnings("unused")
private final WorldEventDispatcher eventDispatcher;
@Inject
@@ -66,10 +67,12 @@ public class AttackServiceImpl extends AbstractService implements AttackService
/**
* The attacker
*/
@SuppressWarnings("unused")
private final Actor attacker;
/**
* The target
*/
@SuppressWarnings("unused")
private final Actor target;
public AttackCallable(Actor attacker, Actor target) {

View File

@@ -40,18 +40,22 @@ public class AIServiceImpl extends AbstractService implements AIService {
/**
* The {@link WorldService}
*/
@SuppressWarnings("unused")
private final WorldService worldService;
/**
* The {@link WorldService} event dispatcher
*/
@SuppressWarnings("unused")
private final WorldEventDispatcher eventDispatcher;
/**
* The {@link ThreadService}
*/
@SuppressWarnings("unused")
private final ThreadService threadService;
/**
* The {@link NetworkService}
*/
@SuppressWarnings("unused")
private final NetworkService networkService;
@Inject

View File

@@ -56,6 +56,7 @@ public class NPCServiceImpl extends AbstractService implements NPCService {
/**
* The {@link CharacterService}
*/
@SuppressWarnings("unused")
private final CharacterService characterService;
/**

View File

@@ -16,9 +16,6 @@
*/
package com.l2jserver.service.game.spawn;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Preconditions;
import com.google.inject.Inject;
import com.l2jserver.game.net.Lineage2Connection;
@@ -50,11 +47,6 @@ import com.l2jserver.util.dimensional.Point;
*/
@Depends({ WorldService.class })
public class SpawnServiceImpl extends AbstractService implements SpawnService {
/**
* The logger
*/
private final Logger log = LoggerFactory.getLogger(this.getClass());
/**
* The {@link WorldService}
*/