mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 16:33:07 +00:00
Code formatting
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jserver.service.game.spawn;
|
||||
|
||||
|
||||
/**
|
||||
* Exception thrown when the object is already spawned and registered in the
|
||||
* world
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.l2jserver.service.game.spawn;
|
||||
|
||||
|
||||
/**
|
||||
* Exception thrown when trying to unspawn an object that is not spawned
|
||||
*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user