mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Use getConstructor().newInstance() in ExtractorSampleSource.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=126306436
This commit is contained in:
parent
2e77f02e7e
commit
a476e090bc
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ public final class ExtractorSampleSource implements SampleSource, ExtractorOutpu
|
|||
Extractor[] extractors = new Extractor[defaultExtractorClasses.size()];
|
||||
for (int i = 0; i < extractors.length; i++) {
|
||||
try {
|
||||
extractors[i] = defaultExtractorClasses.get(i).newInstance();
|
||||
extractors[i] = defaultExtractorClasses.get(i).getConstructor().newInstance();
|
||||
} catch (Exception e) {
|
||||
// Should never happen.
|
||||
throw new IllegalStateException("Unexpected error creating default extractor", e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue