diff options
author | Vitaly Takmazov | 2016-12-20 14:28:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-20 14:28:00 +0300 |
commit | 3859c9616d0a7a04e68427d173b863161b818140 (patch) | |
tree | cba4d1aea88b7ce0d94cbc30fc05f765c9faaa15 /juick-api/src/main/java/com/juick/api/configuration | |
parent | 8b02f969d3a09e39557474eb90ec821d550e3b1b (diff) |
StringUtils.EMPTY
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/configuration')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java b/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java index b4b9df57..409734e4 100644 --- a/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java +++ b/juick-api/src/main/java/com/juick/api/configuration/ApiAppConfiguration.java @@ -2,6 +2,7 @@ package com.juick.api.configuration; import com.juick.api.ApiServer; import com.juick.api.TGBot; +import org.apache.commons.lang3.StringUtils; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; @@ -25,6 +26,6 @@ public class ApiAppConfiguration { @Bean public TGBot tgBot() { - return new TGBot(env.getProperty("telegram_token", "")); + return new TGBot(env.getProperty("telegram_token", StringUtils.EMPTY)); } } |