X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=integration%2Ftest-standalone%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fneutron%2Fe2etest%2FHttpUtils.java;h=e4552d98798439fadfc78596dacdcae82995301d;hb=fbab29a87a5a0e44161d5476a009d1eff580a6e5;hp=e34c70d15b18a45f5123b3c4e1e11d61ead57b30;hpb=c11647d3c5c562001397ffcdf205230fe5a50b9e;p=neutron.git diff --git a/integration/test-standalone/src/main/java/org/opendaylight/neutron/e2etest/HttpUtils.java b/integration/test-standalone/src/main/java/org/opendaylight/neutron/e2etest/HttpUtils.java index e34c70d15..e4552d987 100644 --- a/integration/test-standalone/src/main/java/org/opendaylight/neutron/e2etest/HttpUtils.java +++ b/integration/test-standalone/src/main/java/org/opendaylight/neutron/e2etest/HttpUtils.java @@ -31,6 +31,7 @@ public final class HttpUtils { } + // TODO: Java 11+ has HttpClient, we should be using that instead static HttpURLConnection httpURLConnectionFactoryGet(URL url) throws IOException { HttpURLConnection httpConn = (HttpURLConnection) url.openConnection(); httpConn.setRequestMethod("GET"); @@ -180,7 +181,7 @@ public final class HttpUtils { } private static String fetchResponse(String urlStr, String context) { - StringBuffer response = new StringBuffer(); + StringBuilder response = new StringBuilder(); try { URL url = new URL(urlStr);