From f050ce62134f2b52f722796b27be57631be4d81b Mon Sep 17 00:00:00 2001 From: Omertron Date: Tue, 6 Dec 2011 13:10:25 +0000 Subject: [PATCH] Source code cleanup --- themoviedbapi/pom.xml | 4 ++-- .../java/com/moviejukebox/themoviedb/tools/WebBrowser.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/themoviedbapi/pom.xml b/themoviedbapi/pom.xml index fd0b362ae..2e20e6364 100644 --- a/themoviedbapi/pom.xml +++ b/themoviedbapi/pom.xml @@ -9,7 +9,7 @@ com.moviejukebox themoviedbapi 1.2-SNAPSHOT - The MovieDB API + API-The MovieDB Google Code @@ -42,7 +42,7 @@ commons-codec commons-codec - 1.4 + 1.5 diff --git a/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/tools/WebBrowser.java b/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/tools/WebBrowser.java index 53c66d1c8..f61c959aa 100644 --- a/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/tools/WebBrowser.java +++ b/themoviedbapi/src/main/java/com/moviejukebox/themoviedb/tools/WebBrowser.java @@ -15,7 +15,6 @@ package com.moviejukebox.themoviedb.tools; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; -import java.io.StringWriter; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; @@ -293,7 +292,7 @@ public final class WebBrowser { public static void setProxyPassword(String proxyPassword) { WebBrowser.proxyPassword = proxyPassword; - if (proxyUsername != null && !proxyPassword.isEmpty()) { + if (proxyUsername != null) { proxyEncodedPassword = proxyUsername + ":" + proxyPassword; proxyEncodedPassword = "Basic " + new String(Base64.encodeBase64((proxyUsername + ":" + proxyPassword).getBytes())); }