make opcodes nullable in loadDexContainer

This commit is contained in:
Erik Derr 2018-12-23 09:48:51 +01:00 committed by Ben Gruver
parent 5935fe6ef8
commit 72c0d9d89a

View File

@ -230,7 +230,7 @@ public final class DexFileFactory {
* @throws UnsupportedFileTypeException If the given file is not a valid dex/zip/odex/oat file * @throws UnsupportedFileTypeException If the given file is not a valid dex/zip/odex/oat file
*/ */
public static MultiDexContainer<? extends DexBackedDexFile> loadDexContainer( public static MultiDexContainer<? extends DexBackedDexFile> loadDexContainer(
@Nonnull File file, @Nonnull final Opcodes opcodes) throws IOException { @Nonnull File file, @Nullable final Opcodes opcodes) throws IOException {
if (!file.exists()) { if (!file.exists()) {
throw new DexFileNotFoundException("%s does not exist", file.getName()); throw new DexFileNotFoundException("%s does not exist", file.getName());
} }