Commit 78e7c3c5 by eguven Committed by Oliver Woodman

Make CacheDataSourceFactory createDataSource return specific type

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=149533820
parent 45c7fe9b
...@@ -65,7 +65,7 @@ public final class CacheDataSourceFactory implements DataSource.Factory { ...@@ -65,7 +65,7 @@ public final class CacheDataSourceFactory implements DataSource.Factory {
} }
@Override @Override
public DataSource createDataSource() { public CacheDataSource createDataSource() {
return new CacheDataSource(cache, upstreamFactory.createDataSource(), return new CacheDataSource(cache, upstreamFactory.createDataSource(),
cacheReadDataSourceFactory.createDataSource(), cacheReadDataSourceFactory.createDataSource(),
cacheWriteDataSinkFactory.createDataSink(), flags, eventListener); cacheWriteDataSinkFactory.createDataSink(), flags, eventListener);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment