From 8df1ef59865a47556a34f615bf8eadb881787426 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Tue, 5 Aug 2014 09:26:04 -0400 Subject: [PATCH] removed unused values for variables and fixed javadoc Former-commit-id: 1fb0be5d88301c5a1043d88b93c052edcebe3c5c --- .../org/owasp/dependencycheck/utils/URLConnectionFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/URLConnectionFactory.java b/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/URLConnectionFactory.java index 5ae1b94ef..06ddf1ddf 100644 --- a/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/URLConnectionFactory.java +++ b/dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/URLConnectionFactory.java @@ -50,7 +50,7 @@ public final class URLConnectionFactory { */ public static HttpURLConnection createHttpURLConnection(URL url) throws URLConnectionFailureException { HttpURLConnection conn = null; - Proxy proxy = null; + Proxy proxy; final String proxyUrl = Settings.getString(Settings.KEYS.PROXY_SERVER); try { if (proxyUrl != null) { @@ -96,7 +96,7 @@ public final class URLConnectionFactory { * Utility method to create an HttpURLConnection. The use of a proxy here is optional as there may be cases where a * proxy is configured but we don't want to use it (for example, if there's an internal repository configured) * - * @param url the url to connect to + * @param url the URL to connect to * @param proxy whether to use the proxy (if configured) * @return a newly constructed HttpURLConnection * @throws URLConnectionFailureException thrown if there is an exception