aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/CleanUp.java
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-30 15:10:15 +0700
committerGravatar Alexander Alexeev2016-11-30 15:10:15 +0700
commit1d837a835c04078ec66325e9fb9de21ac401874e (patch)
tree428217d2c617b9caf2eb6d42a7716789881d0937 /juick-notifications/src/main/java/com/juick/components/CleanUp.java
parentb45c000ed478f2407288aab1532425288f998689 (diff)
prevent string concatenation for disabled loggers
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/CleanUp.java')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/CleanUp.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/CleanUp.java b/juick-notifications/src/main/java/com/juick/components/CleanUp.java
index 06d96471..924d6134 100644
--- a/juick-notifications/src/main/java/com/juick/components/CleanUp.java
+++ b/juick-notifications/src/main/java/com/juick/components/CleanUp.java
@@ -36,7 +36,7 @@ public class CleanUp {
Collection<String> devices = apns.getInactiveDevices().keySet();
int count = devices.size();
if (count > 0) {
- logger.info(String.format("%d tokens to delete", count));
+ logger.info("{} tokens to delete", count);
TokensList list = new TokensList();
list.setType("apns");
list.setTokens(new ArrayList<>(devices));