Maintenance: changed upcast to use method type parameter.

Closes #3933
// FREEBIE
This commit is contained in:
Sam Lanning 2015-08-13 00:39:08 +01:00 committed by Moxie Marlinspike
parent 99adbe5784
commit 201da6f2a2

View File

@ -66,8 +66,7 @@ public class TextSecureCommunicationModule {
TextSecurePreferences.getLocalNumber(context),
TextSecurePreferences.getPushServerPassword(context),
new TextSecureAxolotlStore(context),
Optional.of((TextSecureMessageSender.EventListener)
new SecurityEventListener(context)));
Optional.<TextSecureMessageSender.EventListener>of(new SecurityEventListener(context)));
}
};
}