From 72c0d9d89a1aadfbfee2b17cc1f591cdd295aeb2 Mon Sep 17 00:00:00 2001 From: Erik Derr Date: Sun, 23 Dec 2018 09:48:51 +0100 Subject: [PATCH] make opcodes nullable in loadDexContainer --- dexlib2/src/main/java/org/jf/dexlib2/DexFileFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexlib2/src/main/java/org/jf/dexlib2/DexFileFactory.java b/dexlib2/src/main/java/org/jf/dexlib2/DexFileFactory.java index eb33315f..2775d18d 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/DexFileFactory.java +++ b/dexlib2/src/main/java/org/jf/dexlib2/DexFileFactory.java @@ -230,7 +230,7 @@ public final class DexFileFactory { * @throws UnsupportedFileTypeException If the given file is not a valid dex/zip/odex/oat file */ public static MultiDexContainer loadDexContainer( - @Nonnull File file, @Nonnull final Opcodes opcodes) throws IOException { + @Nonnull File file, @Nullable final Opcodes opcodes) throws IOException { if (!file.exists()) { throw new DexFileNotFoundException("%s does not exist", file.getName()); }