summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaustin2011-12-13 09:28:05 (EST)
committercaustin2011-12-13 09:28:05 (EST)
commit41b81d47d907ed2f6c918f99f9013778af3d81e7 (patch)
treeca99cad6691310f361e4f49d34a90ce524f1ed78
parent491c963b4605b66b79d1e2e7662071bbb72e38a5 (diff)
downloadeclipse.platform.ua-41b81d47d907ed2f6c918f99f9013778af3d81e7.zip
eclipse.platform.ua-41b81d47d907ed2f6c918f99f9013778af3d81e7.tar.gz
eclipse.platform.ua-41b81d47d907ed2f6c918f99f9013778af3d81e7.tar.bz2
Bug 365986 - Compile warning in official buildv20111213-1428
-rw-r--r--org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java
index d066cb3..23ec1df 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java
+++ b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java
@@ -21,7 +21,6 @@ import java.io.Writer;
import java.lang.reflect.UndeclaredThrowableException;
import java.net.URL;
import java.net.URLConnection;
-import java.util.Enumeration;
import java.util.Locale;
import javax.servlet.ServletContext;
@@ -285,10 +284,10 @@ public class EclipseConnector {
*/
private void transferContent(InputStream inputStream, OutputStream out)
throws IOException {
+ // Prepare the input stream for reading
+ BufferedInputStream dataStream = new BufferedInputStream(
+ inputStream);
try {
- // Prepare the input stream for reading
- BufferedInputStream dataStream = new BufferedInputStream(
- inputStream);
// Create a fixed sized buffer for reading.
// We could create one with the size of availabe data...
@@ -302,6 +301,10 @@ public class EclipseConnector {
}
} catch (Exception e) {
}
+
+ try{
+ dataStream.close();
+ }catch(Exception e){}
}
/**