Update TelegramBotStarterConfiguration.java

#465 code refactoring
This commit is contained in:
EgorBochkarev 2018-06-02 09:34:03 +03:00 committed by GitHub
parent 97d3aab956
commit c236916c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,8 @@ public class TelegramBotStarterConfiguration {
public TelegramBotStarterConfiguration(@Autowired Optional<List<LongPollingBot>> longPollingBots,
@Autowired Optional<List<WebhookBot>> webHookBots) {
this.longPollingBots = longPollingBots.orElse(new ArrayList<>());
this.webHookBots = webHookBots.orElse(new ArrayList<>());
this.longPollingBots = longPollingBots.orElse(new ArrayList<LongPollingBot>());
this.webHookBots = webHookBots.orElse(new ArrayList<WebhookBot>());
}
@PostConstruct