Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Don't use IOUtils in SolrJ! Sorry, hope maven build did not start in this time frame *g*

Uwe Schindler5a940c12d8cd
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java b/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java
index 05543cdd3d7..b47f89e36a3 100755
--- a/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java
+++ b/solr/solrj/src/java/org/apache/solr/common/util/ContentStreamBase.java
@@ -29,8 +29,6 @@ import java.net.URL;
import java.net.URLConnection;
import java.util.Locale;
-import org.apache.lucene.util.IOUtils;
-
/**
* Three concrete implementations for ContentStream - one for File/URL/String
*
@@ -120,7 +118,9 @@ public abstract class ContentStreamBase implements ContentStream
}
} catch(Exception ex) {
} finally {
- IOUtils.closeWhileHandlingException(stream);
+ if (stream != null) try {
+ stream.close();
+ } catch (IOException ioe) {}
}
}
return contentType;