Moti Asayag has posted comments on this change. Change subject: uutils: Extract connectionBuilder class ......................................................................
Patch Set 6: (1 comment) http://gerrit.ovirt.org/#/c/33479/6/backend/manager/modules/uutils/src/main/java/org/ovirt/engine/core/uutils/http/ConnectionBuilder.java File backend/manager/modules/uutils/src/main/java/org/ovirt/engine/core/uutils/http/ConnectionBuilder.java: Line 97: Line 98: public HttpURLConnection create() throws IOException, GeneralSecurityException { Line 99: URLConnection connection = new URL(url).openConnection(); Line 100: if (!(connection instanceof HttpsURLConnection)) { Line 101: throw new RuntimeException("The connection is not an HTTP or HTTPS connection"); shouldn't you check if it is instance of HttpURLConnection ? instead of Http*s*URLConnection ? else no need to re-examine the instance in line 108 Line 102: } Line 103: connection.setAllowUserInteraction(false); Line 104: connection.setUseCaches(false); Line 105: if (readTimeout != null) { -- To view, visit http://gerrit.ovirt.org/33479 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I85ea4e7301b3a018b0438fff25cefad80ebd7256 Gerrit-PatchSet: 6 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: Alon Bar-Lev <[email protected]> Gerrit-Reviewer: Moti Asayag <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
