Code clean

This commit is contained in:
Oleg Agafonov 2023-05-08 22:59:30 +04:00
parent 1dea98cf1f
commit 6882a9a49e
6 changed files with 56 additions and 33 deletions

View file

@ -71,7 +71,7 @@ public abstract class Plane extends CommandObjectImpl {
this.sourceObject = null;
// choose set code due source
TokenInfo foundInfo = TokenRepository.instance.generateTokenInfoBySetCode(this.getClass().getName(), null);
TokenInfo foundInfo = TokenRepository.instance.findPreferredTokenInfoForClass(this.getClass().getName(), null);
if (foundInfo != null) {
this.setExpansionSetCode(foundInfo.getSetCode());
this.setCardNumber("");