Skip to content

Commit

Permalink
Fix android strict mode warning (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriopilo-tomtom committed Apr 22, 2024
1 parent d6ca347 commit 85baec7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import net.bytebuddy.utility.nullability.AlwaysNull;
import net.bytebuddy.utility.nullability.MaybeNull;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
Expand Down Expand Up @@ -167,7 +168,7 @@ public Map<TypeDescription, Class<?>> load(@MaybeNull ClassLoader classLoader, M
if (!jar.createNewFile()) {
throw new IllegalStateException("Cannot create " + jar);
}
JarOutputStream outputStream = new JarOutputStream(new FileOutputStream(jar));
JarOutputStream outputStream = new JarOutputStream(new BufferedOutputStream(new FileOutputStream(jar)));
try {
outputStream.putNextEntry(new JarEntry(DEX_CLASS_FILE));
conversion.drainTo(outputStream);
Expand Down

0 comments on commit 85baec7

Please sign in to comment.