mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
suppressed findbugs redundant null check
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.owasp.dependencycheck.utils;
|
package org.owasp.dependencycheck.utils;
|
||||||
|
|
||||||
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.Authenticator;
|
import java.net.Authenticator;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
@@ -48,6 +49,7 @@ public final class URLConnectionFactory {
|
|||||||
* @return an HttpURLConnection
|
* @return an HttpURLConnection
|
||||||
* @throws URLConnectionFailureException thrown if there is an exception
|
* @throws URLConnectionFailureException thrown if there is an exception
|
||||||
*/
|
*/
|
||||||
|
@SuppressFBWarnings(value = "RCN_REDUNDANT_NULLCHECK_OF_NULL_VALUE", justification = "Just being extra safe")
|
||||||
public static HttpURLConnection createHttpURLConnection(URL url) throws URLConnectionFailureException {
|
public static HttpURLConnection createHttpURLConnection(URL url) throws URLConnectionFailureException {
|
||||||
HttpURLConnection conn = null;
|
HttpURLConnection conn = null;
|
||||||
Proxy proxy;
|
Proxy proxy;
|
||||||
|
|||||||
Reference in New Issue
Block a user