mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Some minor changes.
This commit is contained in:
parent
5bef2a4eeb
commit
cd9827300d
2 changed files with 4 additions and 4 deletions
|
@ -196,7 +196,7 @@ public enum UserManager {
|
||||||
Calendar calendarRemove = Calendar.getInstance();
|
Calendar calendarRemove = Calendar.getInstance();
|
||||||
calendarRemove.add(Calendar.MINUTE, -8);
|
calendarRemove.add(Calendar.MINUTE, -8);
|
||||||
List<User> toRemove = new ArrayList<>();
|
List<User> toRemove = new ArrayList<>();
|
||||||
logger.info("Start Check Expired");
|
logger.debug("Start Check Expired");
|
||||||
ArrayList<User> userList = new ArrayList<>();
|
ArrayList<User> userList = new ArrayList<>();
|
||||||
final Lock r = lock.readLock();
|
final Lock r = lock.readLock();
|
||||||
r.lock();
|
r.lock();
|
||||||
|
@ -227,7 +227,7 @@ public enum UserManager {
|
||||||
handleException(ex);
|
handleException(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.info("Users to remove " + toRemove.size());
|
logger.debug("Users to remove " + toRemove.size());
|
||||||
final Lock w = lock.readLock();
|
final Lock w = lock.readLock();
|
||||||
w.lock();
|
w.lock();
|
||||||
try {
|
try {
|
||||||
|
@ -237,7 +237,7 @@ public enum UserManager {
|
||||||
} finally {
|
} finally {
|
||||||
w.unlock();
|
w.unlock();
|
||||||
}
|
}
|
||||||
logger.info("End Check Expired");
|
logger.debug("End Check Expired");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
handleException(ex);
|
handleException(ex);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class CaughtInTheBrights extends CardImpl {
|
||||||
// Enchant creature
|
// Enchant creature
|
||||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||||
this.getSpellAbility().addTarget(auraTarget);
|
this.getSpellAbility().addTarget(auraTarget);
|
||||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Benefit));
|
this.getSpellAbility().addEffect(new AttachEffect(Outcome.LoseAbility));
|
||||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue