fix missing annotation

This commit is contained in:
Christoph Sturm 2019-08-13 15:52:49 +02:00
parent c6f07ed945
commit a8494a993a
2 changed files with 4 additions and 0 deletions

View file

@ -18,6 +18,7 @@
package bisq.core.notifications; package bisq.core.notifications;
import javax.inject.Inject; import javax.inject.Inject;
import javax.inject.Singleton;
import com.google.common.base.Charsets; import com.google.common.base.Charsets;
@ -33,6 +34,7 @@ import java.security.NoSuchAlgorithmException;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
@Singleton
public class MobileMessageEncryption { public class MobileMessageEncryption {
private SecretKeySpec keySpec; private SecretKeySpec keySpec;
private Cipher cipher; private Cipher cipher;

View file

@ -24,6 +24,7 @@ import bisq.core.app.WalletAppSetup;
import bisq.core.locale.CurrencyUtil; import bisq.core.locale.CurrencyUtil;
import bisq.core.locale.Res; import bisq.core.locale.Res;
import bisq.core.network.p2p.seed.DefaultSeedNodeRepository; import bisq.core.network.p2p.seed.DefaultSeedNodeRepository;
import bisq.core.notifications.MobileMessageEncryption;
import bisq.core.notifications.MobileModel; import bisq.core.notifications.MobileModel;
import bisq.core.notifications.MobileNotificationService; import bisq.core.notifications.MobileNotificationService;
import bisq.core.notifications.MobileNotificationValidator; import bisq.core.notifications.MobileNotificationValidator;
@ -118,6 +119,7 @@ public class GuiceSetupTest {
assertSingleton(PersistenceProtoResolver.class); assertSingleton(PersistenceProtoResolver.class);
assertSingleton(CorePersistenceProtoResolver.class); assertSingleton(CorePersistenceProtoResolver.class);
assertTrue(injector.getInstance(PersistenceProtoResolver.class) instanceof CorePersistenceProtoResolver); assertTrue(injector.getInstance(PersistenceProtoResolver.class) instanceof CorePersistenceProtoResolver);
assertSingleton(MobileMessageEncryption.class);
assertSingleton(MobileNotificationService.class); assertSingleton(MobileNotificationService.class);
assertSingleton(MobileNotificationValidator.class); assertSingleton(MobileNotificationValidator.class);
assertSingleton(MobileModel.class); assertSingleton(MobileModel.class);