Permalink
Browse files

minor cleanup

  • Loading branch information...
1 parent 9feff7e commit b7cf285273703e2a4d8dce0a7cd6b34b88dd98b8 @notnoop committed Jun 23, 2011
@@ -52,6 +52,7 @@ protected void push(final HttpPost request) {
public void run() {
try {
HttpResponse response = httpClient.execute(request);
+ assert response != null;
} catch (Exception e) {
throw new RuntimeException(e);
}
@@ -49,6 +49,7 @@ public MpnsServiceImpl(HttpClient client) {
protected void push(HttpPost request) {
try {
HttpResponse response = httpClient.execute(request);
+ assert response != null;
} catch (ClientProtocolException e) {
throw new RuntimeException(e);
} catch (IOException e) {
@@ -32,12 +32,9 @@
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
-
-
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
-import java.util.regex.Pattern;
public final class Utilities {
private Utilities() { throw new AssertionError("Uninstantiable class"); }

0 comments on commit b7cf285

Please sign in to comment.