From 13155f6f18abf53d5580e195f66f27b4be0fc001 Mon Sep 17 00:00:00 2001 From: Luc Boudreau Date: Mon, 20 Jul 2009 17:09:18 +0000 Subject: [PATCH] Fixes coding issues. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@269 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- src/org/olap4j/driver/xmla/proxy/XmlaOlap4jHttpProxy.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/olap4j/driver/xmla/proxy/XmlaOlap4jHttpProxy.java b/src/org/olap4j/driver/xmla/proxy/XmlaOlap4jHttpProxy.java index 6dd4dba..f34075f 100644 --- a/src/org/olap4j/driver/xmla/proxy/XmlaOlap4jHttpProxy.java +++ b/src/org/olap4j/driver/xmla/proxy/XmlaOlap4jHttpProxy.java @@ -106,11 +106,10 @@ public byte[] getResponse(URL url, String request) // In order to prevent the JDK from keeping this connection // in WAIT mode, we need to empty the error stream cache. try { - final int espCode = + final int espCode = ((HttpURLConnection)urlConnection).getResponseCode(); InputStream errorStream = ((HttpURLConnection)urlConnection).getErrorStream(); - final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final byte[] buf = new byte[1024];