From 3859c9616d0a7a04e68427d173b863161b818140 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 20 Dec 2016 14:28:00 +0300 Subject: StringUtils.EMPTY --- .../src/main/java/com/juick/components/Notifications.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'juick-notifications') diff --git a/juick-notifications/src/main/java/com/juick/components/Notifications.java b/juick-notifications/src/main/java/com/juick/components/Notifications.java index 0a4d1292..f41db9e3 100644 --- a/juick-notifications/src/main/java/com/juick/components/Notifications.java +++ b/juick-notifications/src/main/java/com/juick/components/Notifications.java @@ -25,6 +25,7 @@ import com.juick.components.mpns.MPNSToken; import com.notnoop.apns.APNS; import com.notnoop.apns.ApnsService; import org.apache.commons.lang3.StringEscapeUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.math.NumberUtils; import org.apache.http.*; import org.apache.http.client.HttpClient; @@ -80,13 +81,13 @@ public class Notifications implements AutoCloseable { public Notifications(final Environment env, final RestTemplate rest) { this.rest = rest; - wns_application_sip = env.getProperty("wns_application_sip", ""); - wns_client_secret = env.getProperty("wns_client_secret", ""); - GCMSender = new Sender(env.getProperty("gcm_key", ""), Endpoint.GCM); + wns_application_sip = env.getProperty("wns_application_sip", StringUtils.EMPTY); + wns_client_secret = env.getProperty("wns_client_secret", StringUtils.EMPTY); + GCMSender = new Sender(env.getProperty("gcm_key", StringUtils.EMPTY), Endpoint.GCM); pushJid = env.getProperty("push_jid"); xmppHost = env.getProperty("xmpp_host", "localhost"); xmppPort = NumberUtils.toInt(env.getProperty("xmpp_port"), 5347); - xmppPushPassword = env.getProperty("push_xmpp_password", ""); + xmppPushPassword = env.getProperty("push_xmpp_password", StringUtils.EMPTY); mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); -- cgit v1.2.3