mirror of https://github.com/apache/lucene.git
SOLR-2854: go ahead and set sourceInfo in URLStream ctor, no need to lazy set that
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1189724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2126cc24f3
commit
ff3222e9ff
|
@ -75,6 +75,7 @@ public abstract class ContentStreamBase implements ContentStream
|
|||
|
||||
public URLStream( URL url ) throws IOException {
|
||||
this.url = url;
|
||||
sourceInfo = "url";
|
||||
}
|
||||
|
||||
public InputStream getStream() throws IOException {
|
||||
|
@ -83,7 +84,6 @@ public abstract class ContentStreamBase implements ContentStream
|
|||
contentType = conn.getContentType();
|
||||
name = url.toExternalForm();
|
||||
size = new Long( conn.getContentLength() );
|
||||
sourceInfo = "url";
|
||||
return conn.getInputStream();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue