1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-08 16:33:07 +00:00

Code formatting

This commit is contained in:
2011-08-07 22:31:55 -03:00
parent 129b527a08
commit 074f216ffc
65 changed files with 378 additions and 393 deletions

View File

@@ -16,7 +16,6 @@
*/
package com.l2jserver.service.game.spawn;
/**
* Exception thrown when the object is already spawned and registered in the
* world

View File

@@ -16,7 +16,6 @@
*/
package com.l2jserver.service.game.spawn;
/**
* Exception thrown when trying to unspawn an object that is not spawned
*

View File

@@ -135,14 +135,13 @@ public class SpawnServiceImpl extends AbstractService implements SpawnService {
Preconditions.checkNotNull(object, "object");
Preconditions.checkArgument(time > 0, "time < 0");
Preconditions.checkNotNull(unit, "unit");
return threadService.async(time, unit,
new Callable<T>() {
@Override
public T call() throws Exception {
spawn(object, point);
return object;
}
});
return threadService.async(time, unit, new Callable<T>() {
@Override
public T call() throws Exception {
spawn(object, point);
return object;
}
});
}
@Override
@@ -176,19 +175,18 @@ public class SpawnServiceImpl extends AbstractService implements SpawnService {
}
@Override
public <T extends PositionableObject> AsyncFuture<T> unspawn(final T object, long time,
TimeUnit unit) {
public <T extends PositionableObject> AsyncFuture<T> unspawn(
final T object, long time, TimeUnit unit) {
Preconditions.checkNotNull(object, "object");
Preconditions.checkArgument(time > 0, "time <= 0");
Preconditions.checkNotNull(unit, "unit");
return threadService.async(time, unit,
new Callable<T>() {
@Override
public T call() throws Exception {
unspawn(object);
return object;
}
});
return threadService.async(time, unit, new Callable<T>() {
@Override
public T call() throws Exception {
unspawn(object);
return object;
}
});
}
@Override