|
|
@ -253,6 +253,7 @@ public final class OkhttpCacheDataSource implements DataSource { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@NonNull |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public OkhttpCacheDataSource createDataSource() { |
|
|
|
public OkhttpCacheDataSource createDataSource() { |
|
|
|
return createDataSourceInternal( |
|
|
|
return createDataSourceInternal( |
|
|
@ -683,7 +684,6 @@ public final class OkhttpCacheDataSource implements DataSource { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("NullableProblems") |
|
|
|
|
|
|
|
@Nullable |
|
|
|
@Nullable |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Uri getUri() { |
|
|
|
public Uri getUri() { |
|
|
@ -693,7 +693,6 @@ public final class OkhttpCacheDataSource implements DataSource { |
|
|
|
@NonNull |
|
|
|
@NonNull |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, List<String>> getResponseHeaders() { |
|
|
|
public Map<String, List<String>> getResponseHeaders() { |
|
|
|
// TODO: Implement.
|
|
|
|
|
|
|
|
return isReadingFromUpstream() |
|
|
|
return isReadingFromUpstream() |
|
|
|
? upstreamDataSource.getResponseHeaders() |
|
|
|
? upstreamDataSource.getResponseHeaders() |
|
|
|
: Collections.emptyMap(); |
|
|
|
: Collections.emptyMap(); |
|
|
|