mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Code shrinking doesn't like Class.super.defaultMethodName
Just not doing it seems simplier and more obviously correct than suppressing the warnings in our proguard file. Issue: #4890 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217675527
This commit is contained in:
parent
86fdcb08d8
commit
05a98a7b79
2 changed files with 4 additions and 4 deletions
|
|
@ -23,6 +23,7 @@ import com.google.android.exoplayer2.util.Log;
|
|||
import com.google.android.exoplayer2.util.Util;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
|
@ -261,9 +262,7 @@ public final class DefaultDataSource implements DataSource {
|
|||
|
||||
@Override
|
||||
public Map<String, List<String>> getResponseHeaders() {
|
||||
return dataSource == null
|
||||
? DataSource.super.getResponseHeaders()
|
||||
: dataSource.getResponseHeaders();
|
||||
return dataSource == null ? Collections.emptyMap() : dataSource.getResponseHeaders();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import java.io.InterruptedIOException;
|
|||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
|
@ -367,7 +368,7 @@ public final class CacheDataSource implements DataSource {
|
|||
// TODO: Implement.
|
||||
return isReadingFromUpstream()
|
||||
? upstreamDataSource.getResponseHeaders()
|
||||
: DataSource.super.getResponseHeaders();
|
||||
: Collections.emptyMap();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue