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:
Erik Hatcher 2011-10-27 12:51:02 +00:00
parent 2126cc24f3
commit ff3222e9ff
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}