killbill-aplcache

server: trivial cleanups in PushNotificationListener Signed-off-by:

3/18/2015 1:51:58 PM

Details

diff --git a/profiles/killbill/src/main/java/org/killbill/billing/server/notifications/PushNotificationListener.java b/profiles/killbill/src/main/java/org/killbill/billing/server/notifications/PushNotificationListener.java
index 9999351..577f392 100644
--- a/profiles/killbill/src/main/java/org/killbill/billing/server/notifications/PushNotificationListener.java
+++ b/profiles/killbill/src/main/java/org/killbill/billing/server/notifications/PushNotificationListener.java
@@ -1,7 +1,7 @@
 /*
  * Copyright 2010-2013 Ning, Inc.
- * Copyright 2014 Groupon, Inc
- * Copyright 2014 The Billing Project, LLC
+ * Copyright 2014-2015 Groupon, Inc
+ * Copyright 2014-2015 The Billing Project, LLC
  *
  * The Billing Project licenses this file to you under the Apache License, version 2.0
  * (the "License"); you may not use this file except in compliance with the
@@ -66,7 +66,6 @@ public class PushNotificationListener {
 
     @Subscribe
     public void triggerPushNotifications(final ExtBusEvent event) {
-
         final TenantContext context = contextFactory.createTenantContext(event.getTenantId());
         try {
             final List<String> callbacks = getCallbacksForTenant(context);
@@ -87,11 +86,10 @@ public class PushNotificationListener {
     }
 
     private boolean doPost(final UUID tenantId, final String url, final String body, final int timeoutSec) {
-
         final BoundRequestBuilder builder = httpClient.preparePost(url);
         builder.setBody(body == null ? "{}" : body);
 
-        Response response = null;
+        final Response response;
         try {
             final ListenableFuture<Response> futureStatus =
                     builder.execute(new AsyncCompletionHandler<Response>() {